Enterprise DNA
M MCP Servers Data and DB low

Stripe Agent Toolkit MCP Server

by Stripe

Expose Stripe's full payments and billing API as MCP tools — customers, charges, subscriptions, invoices, and refunds for any MCP-compatible agent.

SA

MCP

Stripe Agent Toolkit MCP Server

Added 28 Jan 2025

#payments #billing #finance #api #stripe #mcp #official #subscriptions

Overview

Connects your AI assistant to Stripe so you can ask what invoices are outstanding, look up a customer's billing history, issue a refund, or check a subscription, all without opening the Stripe dashboard. It covers the day-to-day billing tasks a business runs through Stripe: customers, charges, subscriptions, invoices, and refunds. Stripe's restricted API keys let you limit what the assistant can see or change, so you can start with read-only access and expand from there.

Best for

Best for
Businesses running billing through Stripe who want quick answers without the dashboard

Use cases

  • Ask what invoices are outstanding for a customer
  • Issue a refund on a charge from a plain-English request
  • Check a customer's subscription status before a support call
  • Pull a quick revenue summary from recent charges
  • Set up a subscription for a new customer in one request

Notes

What it does

Stripe Agent Toolkit (@stripe/agent-toolkit) exposes the Stripe REST API as a structured set of agent-callable tools, with a built-in MCP server that any MCP-compatible host can connect to via stdio. The core tool groups cover customers (create, retrieve, update, list), charges (create, retrieve, list, capture), payment intents (create, confirm, cancel, retrieve), subscriptions (create, update, cancel, list items), invoices (create, finalize, pay, void, retrieve line items), refunds (create, retrieve, list), and products and prices (create, update, list). Each tool maps directly to a Stripe API endpoint with typed parameters, so agents get structured responses they can reason over without parsing raw HTTP.

How to deploy

Install the package with npm install @stripe/agent-toolkit and set the STRIPE_SECRET_KEY environment variable to a Stripe API key (use a restricted key in production). For MCP hosts, add the server to your claude_desktop_config.json or equivalent config under mcpServers, pointing at the toolkit’s MCP entry point. For LangChain or Vercel AI SDK, import the toolkit directly and pass your key at initialization — no MCP host required.

Best practices

Always use restricted API keys scoped to the minimum resources your agent workflow actually needs — for example, a support agent that only looks up customers and invoices should have a key restricted to customers:read and invoices:read. Pair with the Slack MCP server to close the loop on support workflows: the agent can look up a charge, issue a refund, and post a confirmation to a Slack channel in a single session. For write-heavy workflows (subscription mutations, refund issuance), add a human-in-the-loop confirmation step before the agent calls the mutating tool.

Pros

  • Official Stripe library — kept current with Stripe API changes and new products
  • Restricted-key support enables tight per-agent permission scoping
  • Works with both MCP hosts (Claude Desktop, Cursor) and non-MCP frameworks (LangChain, Vercel AI SDK)
  • Covers the full billing lifecycle: customers, charges, subscriptions, invoices, refunds
  • MIT licensed and open source — auditable and forkable for custom tool surfaces

Cons

  • Live-mode API keys require deliberate guardrails to prevent accidental mutations
  • Advanced Stripe products (Connect, Radar, Tax) have limited or no tool coverage
  • Multi-account or multi-entity setups require per-account key management discipline
  • No built-in rate-limit handling — high-volume agent loops can hit Stripe API limits
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks