←Back to Skill Directory

MCP Server

Payments & BillingSaaS AutomationMIT

Stripe MCP Server

by Community · stripe/stripe-node

Stripe MCP Server connects your AI coding assistant to the Stripe payment platform, the infrastructure that powers millions of businesses worldwide. Your agent can create customers, configure products and prices, manage subscriptions, generate invoices, process refunds, and query transaction history — all without leaving your IDE or opening the Stripe Dashboard.

Whether you are prototyping a new SaaS pricing model, debugging a subscription upgrade flow, or batch-creating test customers for integration tests, Stripe MCP turns what would be dozens of API calls or Dashboard clicks into simple conversational requests. It uses Stripe's official Node.js SDK under the hood, ensuring compatibility with the latest API version and full type safety.

12+
Tools Exposed
customers, subscriptions...
<2min
Setup
API key + config
Test/Live
Mode
sandbox-first recommended
MIT
License
open source

Quick Install

claude mcp add stripe -- npx stripe-mcp-server

Key Features

Customer Management

Create, update, and search customers with metadata, email addresses, and payment methods. The agent can batch-create test customers, look up existing ones by email, or update billing details — all without touching the Stripe Dashboard.

Subscription Lifecycle

Start, upgrade, downgrade, pause, and cancel subscriptions programmatically. Handle proration, trial periods, billing anchors, and metered billing. Perfect for rapidly testing different pricing strategies during SaaS development.

Product & Price Configuration

Create products with multiple price tiers — one-time, recurring, or usage-based. Define pricing in any currency, set billing intervals, and manage price lookups. The agent can prototype an entire pricing page backend in minutes.

Invoice Generation

Generate draft invoices, add line items, apply discounts and tax rates, then finalize and send. The agent can create custom invoices for enterprise deals or preview upcoming subscription invoices to verify billing calculations.

Payment & Refund Processing

List payment intents, check payment status, and issue full or partial refunds. Useful for debugging failed payments, processing customer refund requests, and auditing transaction history from your development environment.

Balance & Transaction Queries

Query account balance, list balance transactions with date and type filters, and export transaction summaries. The agent can generate financial reports, reconcile payments, and answer "how much revenue did we process this month?" directly.

Execution Brief

Use this page as a rollout checklist, not just reference text.

Suggest update

Tool Mapping Lens

Organize Tools by Workflow Phase

Catalog-oriented pages work best when users can map discovery, evaluation, and rollout in a clear path instead of reading an undifferentiated list.

  • Define the job-to-be-done first
  • Group tools by stage
  • Prioritize by adoption friction

Actionable Utility Module

Skill Implementation Board

Use this board for Stripe MCP Server before rollout. Capture inputs, apply one decision rule, execute the checklist, and log outcome.

Input: Objective

Deliver one measurable improvement with stripe mcp server claude code payment billing subscription saas automation

Input: Baseline Window

20-30 minutes

Input: Fallback Window

8-12 minutes

Decision TriggerActionExpected Output
Input: one workflow objective and release owner are definedRun preview execution with fixed acceptance criteria.Go or hold decision backed by repeatable evidence.
Input: output quality below baseline or retries increaseLimit scope, isolate root issue, and rerun controlled test.One confirmed correction path before wider rollout.
Input: checks pass for two consecutive replay windowsPromote to broader traffic with fallback path active.Stable rollout with low operational surprise.

Execution Steps

  1. Record objective, owner, and stop condition.
  2. Execute one controlled preview run.
  3. Measure quality, latency, and correction burden.
  4. Promote only when pass criteria are stable.

Output Template

tool=stripe mcp server claude code payment billing subscription saas automation
objective=
preview_result=pass|fail
primary_metric=
next_step=rollout|patch|hold

What Is Stripe MCP Server?

Stripe MCP Server is a Model Context Protocol bridge that connects AI coding assistants to Stripe, the global payment infrastructure used by millions of businesses from startups to Fortune 500 companies. It wraps the Stripe API into MCP tools — create_customer, create_subscription, generate_invoice, list_payments — that any compatible AI client can call directly from the IDE.

Payment integration is one of the most critical and error-prone parts of SaaS development. Stripe MCP removes friction by letting developers interact with Stripe conversationally. Instead of writing boilerplate API calls, reading SDK documentation, or navigating the Dashboard, you simply tell your agent what you need: "create a monthly subscription product at $29 with a 14-day trial" and it handles the underlying API calls.

The server operates in both test and live modes, determined by the API key you provide. Test-mode keys (sk_test_) run all operations against Stripe's sandbox, generating realistic test data without real charges. This makes it safe to experiment with complex billing scenarios, prototype new pricing models, and generate test data for integration tests.

Stripe MCP fits naturally into the broader MCP ecosystem for building complete SaaS backends. Supabase MCP handles user authentication and database records, Postgres MCP provides direct database access for custom queries, and Twilio MCP enables payment notifications. Together, they form an end-to-end billing infrastructure stack that your agent can orchestrate in real time.

How to Calculate Better Results with stripe mcp server claude code payment billing subscription saas automation

Obtain a Stripe API key from the Stripe Dashboard. Navigate to Developers then API Keys and copy your secret key. Use a test-mode key (sk_test_) for development and experimentation. Set this key as the STRIPE_SECRET_KEY environment variable in your shell or MCP configuration.

Register the MCP server with your AI client. For Claude Code, run the quick install command shown above. The server reads your STRIPE_SECRET_KEY at startup and initializes the Stripe SDK client. No additional dependencies or external services are required beyond the Stripe API itself.

Start with simple operations to verify the connection. Ask your agent to create a test customer with a name and email, then list all customers to confirm it appears. Next, create a product and price, then create a subscription linking the customer to the price. Check the Stripe Dashboard to verify the objects were created correctly.

Build more complex workflows once the basics work. Try prototyping a complete pricing page backend: create three products (Basic, Pro, Enterprise) with monthly and annual prices, set up coupon codes for discounts, and test the subscription upgrade path from Basic to Pro with proration. The agent can complete this entire setup in under five minutes.

Treat this page as a decision map. Build a shortlist fast, then run a focused second pass for security, ownership, and operational fit.

When a team keeps one shared selection rubric, tool adoption speeds up because evaluators stop debating criteria every time a new option appears.

Worked Examples

Prototyping a SaaS pricing model from scratch

  1. You are building a new SaaS product and need to set up a three-tier pricing model with monthly and annual billing options
  2. Ask the agent to create three Stripe products: Starter, Professional, and Enterprise, each with descriptive metadata and feature lists
  3. The agent creates six prices — monthly and annual for each tier — with annual prices set at a 20% discount over monthly billing
  4. Next, the agent creates a promotional coupon code "LAUNCH20" for 20% off the first three months, applicable to all three products
  5. The agent creates five test customers and subscribes each to different plans with various configurations — trials, coupons, and immediate starts
  6. Finally, the agent lists all active subscriptions and generates a summary showing MRR (monthly recurring revenue) projections based on the test data

Outcome: A complete Stripe billing backend with three product tiers, six prices, a promotional coupon, and test subscriptions — ready for frontend integration — set up entirely through conversational MCP tool calls.

Debugging a subscription upgrade flow

  1. A customer reports being charged incorrectly when upgrading from the Basic to Pro plan mid-billing cycle
  2. Ask the agent to retrieve the customer's subscription using their email, showing the current plan, billing period, and proration settings
  3. The agent fetches the latest invoice for the subscription and breaks down each line item — prorated credit for unused Basic time and prorated charge for Pro
  4. The agent identifies that the subscription was created without proration behavior set, defaulting to "create_prorations" instead of the intended "always_invoice"
  5. The agent updates the subscription configuration to use the correct proration behavior and simulates an upgrade on a test customer to verify the fix
  6. The agent generates a preview invoice for the test upgrade showing the corrected proration amounts, confirming the billing logic now matches expectations

Outcome: A billing bug identified, diagnosed, and fixed entirely from the IDE — including root cause analysis, a corrective configuration change, and a verified test case for the fix.

Frequently Asked Questions

What is the Stripe MCP Server?

Stripe MCP Server is a Model Context Protocol integration that connects AI coding assistants to the Stripe payment platform. It exposes Stripe API operations — creating customers, managing subscriptions, generating invoices, listing transactions, and configuring products — as MCP tools that Claude Code, Cursor, or any MCP-compatible client can call directly from the IDE.

Is it safe to use Stripe MCP with real payment data?

You should always start with Stripe test mode. Set your STRIPE_SECRET_KEY to a test-mode key (starting with sk_test_) so all operations run against Stripe's sandbox with no real charges. Only switch to live-mode keys after thoroughly testing your workflows and adding appropriate safeguards. The MCP server itself does not store any payment data.

What Stripe operations does the MCP server support?

The server supports core Stripe operations including creating and updating customers, creating products and prices, managing subscriptions (create, update, cancel), generating invoices, listing payment intents, issuing refunds, and querying balance transactions. It covers the most common billing automation tasks that developers need during SaaS development.

Can Stripe MCP handle recurring subscription billing?

Yes. The agent can create products with recurring prices, attach them to subscription plans, create customers with payment methods, and start subscriptions — all through MCP tool calls. It can also handle upgrades, downgrades, cancellations, and proration calculations, making it ideal for iterating on SaaS billing logic from your IDE.

How does Stripe MCP compare to using the Stripe Dashboard?

Stripe MCP is designed for developers who want to automate billing operations programmatically without context-switching to the dashboard. It excels at batch operations (creating 50 test customers), rapid prototyping (testing pricing changes), and integration workflows (creating a customer when a user signs up). The Dashboard remains better for visual analytics and one-off manual operations.

Can I use Stripe MCP together with other MCP servers?

Absolutely. Stripe MCP works well alongside Postgres MCP for syncing payment data to your database, Supabase MCP for managing user records tied to billing, and Twilio MCP for sending payment confirmation messages. This lets you build complete billing workflows — from payment to notification to data storage — orchestrated by your agent.

Missing a better tool match?

Send the exact workflow you are solving and we will prioritize a new comparison or rollout guide.