
Stripe MCP
MCPLets agents call the Stripe API to manage customers, payments, subscriptions, invoices and refunds, and search Stripe docs and support articles. Maintained by Stripe; the remote server uses OAuth, or run it locally via npx with a secret key.
Stripe Model Context Protocol
The 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.
Setup
Stripe hosts a remote MCP server at https://mcp.stripe.com. View the docs here.
Local
To run the Stripe MCP server locally using npx, use the following command:
# Basic usage
npx -y @stripe/mcp --api-key=YOUR_STRIPE_SECRET_KEY
# To configure a Stripe connected account
npx -y @stripe/mcp --api-key=YOUR_STRIPE_SECRET_KEY --stripe-account=CONNECTED_ACCOUNT_ID
Make sure to replace YOUR_STRIPE_SECRET_KEY with your actual Stripe secret key. Alternatively, you could set the STRIPE_SECRET_KEY in your environment variables.
Note: Tool permissions are controlled by your Restricted API Key (RAK). Create a RAK with the desired permissions at https://dashboard.stripe.com/apikeys
Usage with Claude Desktop
Add the following to your claude_desktop_config.json. See here for more details.
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": ["-y", "@stripe/mcp", "--api-key=STRIPE_SECRET_KEY"]
}
}
}
or if you're using Docker
{
"mcpServers": {
"stripe": {
"command": "docker",
"args": ["run", "--rm", "-i", "mcp/stripe", "--api-key=STRIPE_SECRET_KEY"]
}
}
}
Usage with Gemini CLI
- Install Gemini CLI through your preferred method.
- Install the Stripe MCP extension:
gemini extensions install https://github.com/stripe/ai. - Start Gemini CLI:
gemini. - Go through the OAUTH flow:
/mcp auth stripe.
Available tools
See the Stripe MCP documentation for a list of tools.
Debugging the Server
To debug your server, you can use the MCP Inspector.
First build the server
npm run build
Run the following command in your terminal:
# Start MCP Inspector and server
npx @modelcontextprotocol/inspector node dist/index.js --api-key=YOUR_STRIPE_SECRET_KEY
Build using Docker
First build the server
docker build -t mcp/stripe .
Run the following command in your terminal:
docker run -p 3000:3000 -p 5173:5173 -v /var/run/docker.sock:/var/run/docker.sock mcp/inspector docker run --rm -i mcp/stripe --api-key=YOUR_STRIPE_SECRET_KEY
Instructions
- Replace
YOUR_STRIPE_SECRET_KEYwith your actual Stripe API secret key. - Run the command to start the MCP Inspector.
- Open the MCP Inspector UI in your browser and click Connect to start the MCP server.
- You can see the list of tools you selected and test each tool individually.
관련 리소스

Stripe
PluginStripe's official plugin: bundles the remote Stripe MCP with skills for integration best practices, Connect, Stripe Apps and API upgrades, plus commands that explain errors and list test card numbers. Available in the official Claude and Codex marketplaces.
stripe/ai2k
PayPal Agent Toolkit
MCPPayPal's official agent toolkit, including the @paypal/mcp server: create and send invoices, handle orders and refunds, manage disputes, subscriptions, product catalogs and shipment tracking, and look up transactions. Needs a PayPal developer access token; defaults to the sandbox.
paypal/agent-toolkit195
Stripe CLI
CLIStripe's official CLI: forward and trigger webhook events locally, tail API request logs in real time, and create, read, update or delete Stripe objects to debug payment integrations. Needs a Stripe account; run stripe login first.
stripe/stripe-cli2.2k
Stripe Agent Skills
SkillStripe's official skill collection: payment integration best practices, SDK and API version upgrades, Connect platform onboarding and docs lookup, with content synced automatically from the Stripe docs.
stripe/ai2k
Stripe Best Practices
SkillGuides Stripe integration decisions: Checkout vs PaymentIntents, Connect, subscription billing, tax, webhooks and key security, and steers away from deprecated APIs. Maintained by Stripe.
stripe/ai2k
Customer Billing Ops
SkillResolves subscription billing issues: checks customer and subscription state, separates duplicate purchases, team seats and failed payments, restores self-serve before refunding, and drafts the reply. Needs Stripe or similar tools connected; refunds move real money, so review them.
affaan-m/ECC281k