Stripe Testing Tools MCP Server
A Model Context Protocol (MCP) server that provides testing and debugging tools for Stripe integrations, including test clock management, customer and product management, and subscription testing.
README
Stripe Testing Tools MCP Server
<a href="https://www.producthunt.com/products/stripe-testing-tools-mcp-server?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-stripe-testing-tools-mcp-server" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=976365&theme=light&t=1763732445814" alt="Stripe Testing Tools MCP Server - Supercharge Stripe testing with time simulation | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
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
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-mcp
This 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_here
Important: 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_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
Clean Up Test Data
-
Delete test customers:
Use delete_stripe_test_customers with customer IDs -
Archive 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..mcp.json- the MCP server definition (npx stripe-test-mcp, requiringSTRIPE_API_KEY), so the tools connect automatically when the plugin loads.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).
Make sure STRIPE_API_KEY is set to a Stripe test key in your environment.
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-tools
- Install dependencies:
npm install
- Build the server:
npm run build
- For development with auto-rebuild:
npm run watch
Debugging
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.
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。