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_KEY

Specific Tools

npx -y @stripe/mcp --tools=customers.create,customers.read,products.create --api-key=YOUR_STRIPE_SECRET_KEY

With Connected Account

npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY --stripe-account=CONNECTED_ACCOUNT_ID

Replace 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

ToolDescription
customers.createCreate a new customer
customers.readRead customer information
products.createCreate a new product

Debugging

To debug your server using the MCP Inspector:

1. Build the server

npm run build

2. Start the MCP Inspector

npx @modelcontextprotocol/inspector node dist/index.js --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

Debug Instructions

  1. Replace YOUR_STRIPE_SECRET_KEY with your actual Stripe API secret key
  2. Run the command to start the MCP Inspector
  3. Open the MCP Inspector UI in your browser and click Connect to start the MCP server
  4. View and test the available tools individually through the inspector interface
Mastodon