Stripe MCP Server
The Stripe Model Context Protocol server enables seamless integration with Stripe APIs through function calling, supporting various tools to interact with different Stripe services.
Setup
You can run the Stripe MCP server using npx with different configurations:
All Available Tools
npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEYSpecific Tools
npx -y @stripe/mcp --tools=customers.create,customers.read,products.create --api-key=YOUR_STRIPE_SECRET_KEYWith Connected Account
npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY --stripe-account=CONNECTED_ACCOUNT_IDReplace YOUR_STRIPE_SECRET_KEY with your actual Stripe secret key. You can also set STRIPE_SECRET_KEY in your environment variables.
Usage with Claude Desktop
Add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@stripe/mcp",
"--tools=all",
"--api-key=STRIPE_SECRET_KEY"
]
}
}
}Available Tools
| Tool | Description |
|---|---|
| customers.create | Create a new customer |
| customers.read | Read customer information |
| products.create | Create a new product |
Debugging
To debug your server using the MCP Inspector:
1. Build the server
npm run build2. Start the MCP Inspector
npx @modelcontextprotocol/inspector node dist/index.js --tools=all --api-key=YOUR_STRIPE_SECRET_KEYDebug Instructions
- Replace YOUR_STRIPE_SECRET_KEY with 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
- View and test the available tools individually through the inspector interface
