Stripe Testing Tools MCP Server
An MCP server that provides Stripe test-mode helpers for simulating time and managing test data.
Test clocks – create a clock at a given Unix
frozen_timeand advance it later to simulate time passing (e.g. billing cycles)Customers – bulk-create test customers with name/email/description/payment method, optionally attached to a test clock (max 3 per clock), and delete them by ID
Subscriptions – create test subscriptions from price/quantity items with configurable
proration_behaviorand a default payment methodProducts – archive (set
active: false) or permanently delete test products by ID or URLSafety – only test keys (
sk_test_...) are accepted; live keys are rejected, so nothing touches real charges
Provides testing and debugging tools for Stripe integrations, including test clock management, customer management, product management, and subscription testing in Stripe's test mode.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Stripe Testing Tools MCP Server Create 5 test customers and attach them to a test clock."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stripe Testing Tools MCP Server
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.
Features
Time Simulation Tools
Test Clock Management - Create and advance Stripe test clocks for time-based testing
Subscription Testing - Test billing cycles and subscription renewals by controlling time
Customer Management
Bulk Customer Creation - Create multiple test customers with customizable properties
Customer Cleanup - Delete test customers to maintain clean test environments
Test Clock Association - Link customers to test clocks for time-controlled testing
Product Management
Product Archiving - Archive test products by ID or URL
Product Deletion - Permanently delete test products to clean up test data
Subscription Testing
Test Subscription Creation - Create subscriptions with configurable proration behavior
Time-based Testing - Test subscription billing cycles using test clocks
Related MCP server: MCP Stripe Server
Available Tools
Test Clock Tools
create_stripe_test_clock
Creates a new Stripe test clock for time simulation.
Parameters:
frozen_time(required): Unix timestamp for the initial frozen timename(optional): Name for the test clock
Example:
Create a test clock starting at January 1, 2024:
frozen_time: 1704067200
name: "New Year Test Clock"advance_stripe_test_clock
Advances 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 to
Customer Management Tools
create_stripe_test_customers
Creates 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_customers
Deletes test customers by their IDs.
Parameters:
customer_ids(required): Array of customer IDs to delete
Product Management Tools
archive_stripe_test_products
Archives test products (sets active: false).
Parameters:
product_ids(optional): Array of product IDs to archiveurls(optional): Array of product URLs to archive
delete_stripe_test_products
Permanently deletes test products.
Parameters:
product_ids(optional): Array of product IDs to deleteurls(optional): Array of product URLs to delete
Subscription Tools
create_stripe_test_subscription
Creates 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)payment_method_id(optional): Payment method ID to set as the subscription's default payment method
Setup
Prerequisites
A Stripe account with test mode enabled
Node.js and npm installed
Claude Desktop or another MCP-compatible client
Installation
No installation is required! You can use this MCP server directly with npx:
npx stripe-test-mcpThis will automatically download and run the latest version of the server.
Configuration
Environment Variables
Set your Stripe test API key as an environment variable:
export STRIPE_API_KEY=sk_test_your_test_key_hereImportant: Only test keys are allowed. The server will reject live API keys for security.
Cursor
Click this link for adding this MCP server:
Claude Desktop Configuration
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"
}
}
}
}Usage Examples
Time-based Subscription Testing
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_1Create subscriptions for the customers:
Use create_stripe_test_subscription with customer IDs and subscription itemsAdvance time to trigger billing:
Use advance_stripe_test_clock to move forward by billing cycle periods
Clean Up Test Data
Delete test customers:
Use delete_stripe_test_customers with customer IDsArchive test products:
Use archive_stripe_test_products with product IDs or URLs
Agent Skills / Plugin
This repository ships as a Claude Code plugin so that agents can use the Stripe testing tools with the right procedures and guardrails built in.
Two lanes for Stripe testing
This repository offers two complementary ways to set up Stripe test data — pick the one that matches your intent:
Imperative lane (MCP tools) — call the Stripe API right now to create and advance test clocks, customers, and subscriptions. Best when you want to run something and see the result immediately. Provided by the
stripe-test-mcpMCP server (above).Declarative lane (
stripe-fixturesskill) — generatestripe fixturesJSON you run with the Stripe CLI. Best for test datasets you want to keep in source control or reproduce in CI. The skill authors and statically validates the JSON; you execute it.
What the plugin bundles
.claude-plugin/plugin.json- the plugin manifest, including the MCP server definition (npx -y stripe-test-mcp@<version>undermcpServers, pinned to the release named byversion), so the tools connect automatically when the plugin loads. The server gets your Stripe key from the plugin'sstripe_api_keyoption, not from your shell environment. The repository has no root.mcp.json, so opening it directly in Claude Code starts no project server; to try the plugin from a checkout, runclaude --plugin-dir ..skills/- four Agent Skills that encode the recommended workflows:stripe-billing-cycle-test- simulate a subscription billing cycle with a test clock (clock -> customer -> subscription -> advance -> verify).stripe-test-clock-constraints- reference for test-clock limits and pitfalls (max 3 customers per clock, creation-time-only attachment, forward-only async advance, Unix-second timestamps).stripe-test-data-lifecycle- setup, verification, and cleanup workflow using the delete/archive tools.stripe-fixtures- author and statically validatestripe fixturesJSON (multi-step subscriptions, test clocks,expected_error_typefailure paths, Connect destination charges, bulk creation) through guided conversation. Seeskills/stripe-fixtures/README.md.
When this plugin is installed in Claude Code, the MCP tools become available
and Claude can load the relevant skill automatically based on the task, or you
can invoke one directly (for example /stripe-test-mcp:stripe-billing-cycle-test
or /stripe-test-mcp:stripe-fixtures).
When you enable the plugin, Claude Code asks for a Stripe test secret key
(sk_test_... or rk_test_...). The field is marked sensitive, so Claude Code
masks it and keeps it in your system's secure credential store, not in
settings.json. The server rejects live keys.
What the plugin runs and sends
Runs:
npx -y stripe-test-mcp@<version>, which downloads that exact version of this package from the npm registry (registry.npmjs.org) and starts it over stdio. Nothing else is started, and the plugin has no hooks.Sends: only requests to the Stripe API (
api.stripe.com), authenticated with the test key you entered, and only when Claude calls one of the tools listed above. The server contacts no other host. The Stripe Node.js SDK adds its standard client headers (User-Agent, andX-Stripe-Client-Telemetrywith the previous request's ID and latency) to those same requests.Changes: the tools create test clocks, customers and subscriptions, advance test clocks, archive or delete test products, and delete test customers in your Stripe test mode. Each tool declares
readOnlyHint: false, and the delete and archive tools also declaredestructiveHint: true.Skills: the four skills are Markdown instructions and reference JSON. The
stripe-fixturesskill writes fixture JSON for you to run with the Stripe CLI yourself; it doesn't run the CLI.
Landing site
The site/ directory holds the marketing landing page (Astro, EN + JA) for the
stripe-fixtures skill. It is a self-contained project that manages its own
dependencies with pnpm and deploys to Cloudflare Workers static assets. See
site/README.md for development and deploy instructions.
Development
Local Development
If you want to contribute or modify the server locally:
Clone the repository:
git clone <repository-url>
cd stripe-testing-toolsInstall dependencies (the repository uses pnpm; the version is pinned by
packageManagerinpackage.json, socorepack enablepicks it up):
pnpm installBuild the server:
pnpm run buildFor development with auto-rebuild:
pnpm run watchDebugging
Since MCP servers communicate over stdio, debugging can be challenging. Use the MCP Inspector:
pnpm run inspectorThe Inspector provides a web interface for testing and debugging MCP tools.
Releasing
Releases are automated. Merging to main runs semantic-release on CircleCI
(workflows/publish/npm-polyrepo-semantic-release.yaml in
hideokamoto/circleci-configurations): it decides the next version from the
Conventional Commits since the last v* tag, pushes the tag, publishes to npm via
OIDC trusted publishing, and creates the GitHub Release. Do not bump version in
package.json or publish by hand.
pnpm run test:package checks the package the way npm publishes it: npm pkg fix
must leave package.json unchanged (otherwise npm publish rewrites it and only
warns), and the stripe-test-mcp bin must be in the tarball, executable and start
with a node shebang, and the packed server must report the version written in its
package.json (semantic-release sets it only at publish time). It runs in the
CircleCI package job, as part of pnpm test,
and as prepublishOnly, so a release stops before publishing a package whose
npx stripe-test-mcp would not start.
The Claude Code plugin pins the server it runs (stripe-test-mcp@<version> under
mcpServers in .claude-plugin/plugin.json) and names the same release as
version in the same file, because the Claude plugin directory refuses an unpinned npx and Claude Code keys
plugin updates on version. semantic-release does not commit back to main, so
after each release raise both to the new version in a follow-up chore: commit
(a chore: commit doesn't start another release). The CircleCI plugin job runs
pnpm run test:plugin, which fails until the pin matches npm latest and prints
the two values to set, and then runs Claude Code's
claude plugin validate --profile directory.
Security
Only Stripe test API keys are accepted
Live API keys are rejected to prevent accidental charges
All operations are performed in Stripe's test mode
Error Handling
Missing API keys will throw descriptive error messages
Live API keys are blocked with security warnings
Test clock customer limits are enforced (max 3 customers per clock)
Invalid parameters are validated using Zod schemas
License
This project is licensed under the MIT License.
The skills/stripe-fixtures skill and the site/ landing page were merged in
from the former stripe-fixtures-skills repository, which was licensed under
Apache-2.0. That skill keeps its original license: Apache-2.0 declaration
in its SKILL.md front matter; everything else in this repository is MIT.
Available Tools
7 toolsadvance_stripe_test_clockAdvance Stripe Test ClockA
Advance a Stripe test clock to a specific time to simulate time progression
Inputs: frozen_time (required), test_clock_id (required).
archive_stripe_test_productsArchive Stripe Test ProductsBDestructive
Archive (deactivate) Stripe products for testing purposes
Inputs: urls, product_ids.
create_stripe_test_clockCreate Stripe Test ClockB
Create a new Stripe test clock for time-based testing
Inputs: frozen_time (required), name.
create_stripe_test_customersCreate Stripe Test CustomersB
Create one or more Stripe test customers for testing purposes
Inputs: name, email, number, test_clock, +2 more.
create_stripe_test_subscriptionCreate Stripe Test SubscriptionA
Create a new Stripe subscription for testing purposes
Inputs: items (required), customer (required), payment_method_id, proration_behavior.
delete_stripe_test_customersDelete Stripe Test CustomersBDestructive
Permanently delete Stripe customers for testing purposes
Inputs: customer_ids (required).
delete_stripe_test_productsDelete Stripe Test ProductsBDestructive
Permanently delete Stripe products for testing purposes
Inputs: urls, product_ids.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct Stripe test resource and action: clocks are created/advanced, products are archived/deleted, and subscriptions/customers are created. The only close pair, archive vs. delete products, is clearly differentiated by deprecation versus permanent deletion.
All tools follow a consistent snake_case verb_stripe_test_resource pattern. Minor pluralization inconsistencies exist, such as singular subscription/clock versus plural products/customers, but the convention remains predictable.
Seven tools is well-scoped for a focused Stripe testing utility. Each tool corresponds to a meaningful test-data or time-simulation operation without obvious filler.
The surface covers core creation and cleanup actions but lacks read/list/get operations for clocks, subscriptions, products, and customers. It also lacks subscription cancellation or clock deletion, creating notable dead ends for inspecting or fully cleaning up test state.
Maintenance
Related MCP Connectors
MCP server integrating with Stripe - tools for customers, products, payments, and more.
Hosted Stripe MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
MCP server for Modern Treasury — payment orders, transactions, counterparties and ledgers.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceThe Stripe Model Context Protocol server allows you to integrate with Stripe APIs through function calling. This protocol supports various tools to interact with different Stripe services.31,367 npm2,100-
- AlicenseNot gradedqualityDmaintenanceA server that integrates with Stripe for handling payments, customers, and refunds through the Model Context Protocol, providing a secure API to manage financial transactions.44MIT
- AlicenseBqualityDmaintenanceA comprehensive Model Context Protocol (MCP) server for BTCPayServer integration, providing tools for payment processing, store management, user administration, webhook handling and more with full API coverage.316 npm3MIT
- FlicenseNot gradedqualityDmaintenanceA standardized MCP server designed for testing integration with the Des MCP Server Testing API. It allows AI agents to interact with testing endpoints using tools implemented via the Model Context Protocol.-