
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
stripe-test-mcp
Advanced tools
A Model Context Protocol (MCP) server that provides testing and debugging tools for Stripe integrations. This server enables developers to efficiently test Stripe workflows, manage test data, and simulate time-based scenarios using Stripe's test helpers.
create_stripe_test_clockCreates a new Stripe test clock for time simulation.
Parameters:
frozen_time (required): Unix timestamp for the initial frozen timename (optional): Name for the test clockExample:
Create a test clock starting at January 1, 2024:
frozen_time: 1704067200
name: "New Year Test Clock"
advance_stripe_test_clockAdvances an existing test clock to a new time.
Parameters:
test_clock_id (required): The ID of the test clock to advancefrozen_time (required): Unix timestamp to advance the clock tocreate_stripe_test_customersCreates one or more test customers.
Parameters:
number (optional, default: 1): Number of customers to createpayment_method_id (optional): Payment method to associate with customersname (optional): Name for the customersemail (optional): Email for the customersdescription (optional): Description for the customerstest_clock (optional): Test clock ID to associate with customers (max 3 customers per clock)delete_stripe_test_customersDeletes test customers by their IDs.
Parameters:
customer_ids (required): Array of customer IDs to deletearchive_stripe_test_productsArchives test products (sets active: false).
Parameters:
product_ids (optional): Array of product IDs to archiveurls (optional): Array of product URLs to archivedelete_stripe_test_productsPermanently deletes test products.
Parameters:
product_ids (optional): Array of product IDs to deleteurls (optional): Array of product URLs to deletecreate_stripe_test_subscriptionCreates a test subscription for a customer.
Parameters:
customer (required): Customer ID to create the subscription foritems (required): Array of subscription items with price and quantityproration_behavior (optional): How to handle prorations (create_prorations, none, always_invoice)No installation is required! You can use this MCP server directly with npx:
npx stripe-test-mcp
This will automatically download and run the latest version of the server.
Set your Stripe test API key as an environment variable:
export STRIPE_API_KEY=sk_test_your_test_key_here
Important: Only test keys are allowed. The server will reject live API keys for security.
Click this link for adding this MCP server:
Add the server to your Claude Desktop configuration:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"stripe-test-mcp": {
"command": "npx",
"args": ["stripe-test-mcp"],
"env": {
"STRIPE_API_KEY": "sk_test_your_test_key_here"
}
}
}
}
Create a test clock:
Use create_stripe_test_clock with frozen_time: 1704067200 (Jan 1, 2024)
Create customers associated with the test clock:
Use create_stripe_test_customers with test_clock: clock_id_from_step_1
Create subscriptions for the customers:
Use create_stripe_test_subscription with customer IDs and subscription items
Advance time to trigger billing:
Use advance_stripe_test_clock to move forward by billing cycle periods
Delete test customers:
Use delete_stripe_test_customers with customer IDs
Archive test products:
Use archive_stripe_test_products with product IDs or URLs
If you want to contribute or modify the server locally:
git clone <repository-url>
cd stripe-testing-tools
npm install
npm run build
npm run watch
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector:
npm run inspector
The Inspector provides a web interface for testing and debugging MCP tools.
FAQs
Simply MCP server for testing for your stripe integrations
The npm package stripe-test-mcp receives a total of 4 weekly downloads. As such, stripe-test-mcp popularity was classified as not popular.
We found that stripe-test-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.