MCP server for Stripe — global payments API (PaymentIntents, Checkout, Billing, Refunds)
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add stripe --env STRIPE_SECRET_KEY='<STRIPE_SECRET_KEY>' -- npx -y @codespar/mcp-stripe~/.codex/config.toml
[mcp_servers.stripe]
command = "npx"
args = ["-y", "@codespar/mcp-stripe"]
env = { STRIPE_SECRET_KEY = "<STRIPE_SECRET_KEY>" }
# codex mcp add stripe --env STRIPE_SECRET_KEY='<STRIPE_SECRET_KEY>' -- npx -y @codespar/mcp-stripe~/.cursor/mcp.json
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe"
],
"env": {
"STRIPE_SECRET_KEY": "<STRIPE_SECRET_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"stripe": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe"
],
"env": {
"STRIPE_SECRET_KEY": "<STRIPE_SECRET_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe"
],
"env": {
"STRIPE_SECRET_KEY": "<STRIPE_SECRET_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe"
],
"env": {
"STRIPE_SECRET_KEY": "<STRIPE_SECRET_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"stripe": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-stripe"
],
"env": {
"STRIPE_SECRET_KEY": "<STRIPE_SECRET_KEY>"
}
}
}
}Environment variables
STRIPE_SECRET_KEY
Replace the placeholders with your own credentials and keep them out of version control.