S

Stripe MCP Server

Interact with Stripe's payment processing APIs directly from Claude Code. Build and debug billing integrations, manage subscriptions, inspect payment objects, and troubleshoot webhook events without switching to the Stripe dashboard.

MCPCommunitybackendv1.0.0MIT
0 views0 copies

MCP Server Configuration

{ "mcpServers": { "stripe": { "command": "npx", "args": ["-y", "@stripe/mcp", "--tools=all"], "env": { "STRIPE_SECRET_KEY": "<your-stripe-secret-key>" } } } }

Available Tools

ToolDescription
list_customersList customers with filters
create_customerCreate a new customer record
list_productsList products in your catalog
create_productCreate a new product
list_pricesList price configurations
create_priceCreate a new price for a product
list_subscriptionsList active subscriptions
create_subscriptionCreate a new subscription
list_payment_intentsList payment intents with status
list_invoicesList invoices with filters
create_checkout_sessionGenerate a Checkout session URL
list_eventsList webhook events for debugging
retrieve_balanceCheck your Stripe account balance
list_refundsList refund records
create_refundProcess a refund

Setup

  1. Get your API key from https://dashboard.stripe.com/apikeys
  2. Use test mode key (sk_test_...) for development
  3. Replace <your-stripe-secret-key> with your key
  4. Optionally limit tools: --tools=customers,products,prices

Usage Examples

Once configured, ask Claude Code:

  • "List recent failed payment intents and show the error reasons"
  • "Create a product with monthly and annual pricing tiers"
  • "Show me all webhook events from the last hour"
  • "Find customer by email and show their subscription status"
  • "Generate a checkout session for the Pro plan"

Security Notes

  • ALWAYS use test mode keys (sk_test_) during development
  • Never commit Stripe keys to version control
  • Store in .claude/settings.local.json and add to .gitignore
  • The --tools=all flag enables write operations - restrict with --tools= for read-only
  • Review all create/update operations before approving
  • Consider using Stripe restricted keys with minimal permissions
Community

Reviews

Write a review

No reviews yet. Be the first to review this template!

Similar Templates