Official Stripe MCP server for payment integration
## Stripe MCP Server: Payment Infrastructure for AI-Powered Commerce The **Stripe MCP Server** integrates the world's leading payment platform into Google Antigravity, enabling developers to manage payments, subscriptions, customers, and financial operations through natural language commands and intelligent automation. ### Why Stripe MCP? - **Complete payment lifecycle** - Create charges, refunds, disputes, and payouts from your IDE - **Subscription management** - Handle recurring billing, plan changes, and invoice automation - **Customer operations** - Manage customer profiles, payment methods, and billing history - **Revenue analytics** - Real-time revenue metrics, MRR tracking, and churn analysis - **Webhook handling** - Process and respond to Stripe events automatically ### Key Features #### 1. Payment Processing ```python # Create and manage payments with antigravity payment = await mcp.call("stripe", "create_payment_intent", { "amount": 9999, "currency": "usd", "customer": "cus_xxx", "payment_method": "pm_xxx", "confirm": True, "metadata": {"order_id": "ORD-12345"} }) if payment["status"] == "succeeded": print(f"Payment successful: {payment[\"id\"]}") print(f"Amount: ${payment[\"amount\"]/100:.2f}") ``` #### 2. Subscription Management ```python # Handle subscription lifecycle operations subscription = await mcp.call("stripe", "create_subscription", { "customer": "cus_xxx", "items": [{"price": "price_premium_monthly"}], "trial_period_days": 14, "payment_behavior": "default_incomplete", "expand": ["latest_invoice.payment_intent"] }) # Upgrade subscription plan await mcp.call("stripe", "update_subscription", { "subscription_id": subscription["id"], "items": [{ "id": subscription["items"]["data"][0]["id"], "price": "price_enterprise_monthly" }], "proration_behavior": "create_prorations" }) ``` #### 3. Customer Management ```python # Comprehensive customer operations customer = await mcp.call("stripe", "create_customer", { "email": "customer@example.com", "name": "John Doe", "metadata": {"user_id": "usr_12345"}, "payment_method": "pm_xxx", "invoice_settings": {"default_payment_method": "pm_xxx"} }) # List customer payment history charges = await mcp.call("stripe", "list_charges", { "customer": customer["id"], "limit": 100 }) ``` #### 4. Revenue Analytics ```python # Get revenue metrics and business insights mrr = await mcp.call("stripe", "get_mrr", { "date_range": "last_30_days", "breakdown": "plan" }) print(f"Current MRR: ${mrr[\"total\"]/100:,.2f}") print(f"New MRR: ${mrr[\"new\"]/100:,.2f}") print(f"Churned MRR: ${mrr[\"churned\"]/100:,.2f}") print(f"Net Growth: {mrr[\"growth_rate\"]:.1f}%") ``` ### Configuration ```json { "mcpServers": { "stripe": { "command": "npx", "args": ["-y", "@anthropic/mcp-stripe"], "env": { "STRIPE_SECRET_KEY": "sk_live_xxx", "STRIPE_WEBHOOK_SECRET": "whsec_xxx", "STRIPE_API_VERSION": "2024-04-10" } } } } ``` ### Use Cases **E-commerce Backend**: Power complete online stores with checkout, payment processing, and order fulfillment through conversational commerce. **SaaS Billing**: Manage subscription tiers, usage-based billing, and enterprise invoicing for software businesses. **Marketplace Payments**: Handle complex multi-party payments with Connect for platforms and marketplaces. **Financial Operations**: Automate refund processing, dispute management, and payout reconciliation. The Stripe MCP Server transforms payment operations from API calls into conversational commerce.
{
"mcpServers": {
"stripe": {
"mcpServers": {
"stripe": {
"args": [
"-y",
"@stripe/mcp",
"--tools=all",
"--api-key=YOUR_STRIPE_SECRET_KEY"
],
"command": "npx"
}
}
}
}
}