Accéder directement au contenu
Créez un compte
ou
connecter-vous
Logo de la documentation Stripe
/
Demander à l'assistant IA
Créez un compte
Connectez-vous
Démarrer
Paiements
Revenus
Plateformes et places de marché
Gestion de fonds
Ressources pour les développeurs
Aperçu
Gestion des versions
Journal des modifications
Mettre à niveau votre version de l'API
Actualiser votre version du SDK
Essentials
SDK
API
Tests
CLI Stripe
Exemples de projets
Outils
Workbench
Dashboard des développeurs
Shell Stripe
Stripe pour Visual Studio Code
Fonctionnalités
Workflows
Destinations d'événements
Alertes d'intégrité de StripeChargements de fichiers
Solutions d'IA
Boîte à outils des agents
Modèle de protocole contextuel
Sécurité et confidentialité
Sécurité
Robot d'exploration Web Stripebot
Confidentialité
Extensions Stripe
Créer des applications Stripe
Utiliser les applications de Stripe
Partenaires
Partner ecosystem
Certification des partenaires
AccueilRessources pour les développeurs

Remarque

Cette page n'est pas encore disponible dans cette langue. Nous faisons tout notre possible pour proposer notre documentation dans davantage de langues et nous vous fournirons la version traduite dès qu'elle sera disponible.

Model Context Protocol (MCP)Version bêta publique

Let your AI agents interact with the Stripe API by using our MCP server.

The Stripe Model Context Protocol (MCP) server defines a set of tools that AI agents can use to interact with the Stripe API and search our knowledge base (including documentation and support articles).

If you use AI-powered code editors like Cursor or Windsurf, or general-purpose tools like Claude Desktop, you can use the MCP server.

Remote server

Stripe hosts a Streamable HTTP MCP server that’s available at https://mcp.stripe.com. The Stripe MCP server uses OAuth Dynamic Client Registration to connect MCP clients as per the MCP spec.

Install in Cursor

To open Cursor and automatically add the Stripe MCP, click install. Alternatively, add the following to your ~/.cursor/mcp.json file. To learn more, see the Cursor documentation.

{ "mcpServers": { "stripe": { "url": "https://mcp.stripe.com" } } }

OAuth connections

When you add the Stripe MCP to a client, the MCP client opens an OAuth consent form which allows you to authorize the client to access your Stripe data. OAuth is done through a Stripe App. Only admins can install the Stripe MCP. After installing, you can manage your OAuth connections in your Dashboard settings.

To view authorized MCP client sessions:

  1. Navigate to the Stripe MCP app in the Stripe Dashboard.

  2. In the right panel, click Client sessions to view OAuth-connected MCP client sessions.

To revoke OAuth access for a specific MCP client session:

  1. Find the client session in the list, and click the overflow menu.

  2. Select Revoke session.

Allowlist of client redirect URIs

Stripe maintains an allowlist of vetted MCP client redirect URIs to protect our users from malicious phishing attacks. If there’s an MCP client application that you want to allowlist, email us at mcp@stripe.com.

Bearer token

If you’re building agentic software, you can pass a Stripe API key as a bearer token to the MCP remote server. We strongly recommend using restricted API keys to limit access to the functionality your agent requires. For example, you can use this authorization method with OpenAI’s Responses API.

Command Line
curl https://mcp.stripe.com/ \ -H "Content-Type: application/json" \ -H "Authorization: Bearer
sk_test_BQokikJOvBiI2HlWgH4olfQ2
"
\ -d '{ "jsonrpc": "2.0", "method": "tools/call", "params": { "name": "create_customer", "arguments": {"name": "Jenny Rosen", "email": "jenny.rosen@example.com" } }, "id": 1 }'

Local server

If you prefer or require a local setup, run the local Stripe MCP server.

Install in Cursor

To open Cursor and automatically add the Stripe MCP, click install. Alternatively, add the following to your ~/.cursor/mcp.json file. To learn more, see the Cursor documentation.

{ "mcpServers": { "stripe": { "command": "npx", "args": ["-y", "@stripe/mcp", "--tools=all"], "env": { "STRIPE_SECRET_KEY":
"sk_test_BQokikJOvBiI2HlWgH4olfQ2"
} } } }

The code editor agent automatically detects all the available tools, calling the relevant tool when you post a related question in the chat.

Tools

The server exposes the following MCP tools. We recommend enabling human confirmation of tools and exercising caution when using the Stripe MCP with other servers to avoid prompt injection attacks. If you have feedback or want to see more tools, email us at mcp@stripe.com.

ResourceToolAPI
Account get_stripe_account_infoRetrieve account
Balance retrieve_balanceRetrieve balance
Coupon create_couponCreate coupon
list_couponsList coupons
Customer create_customerCreate customer
list_customersList customers
Dispute list_disputesList disputes
update_disputeUpdate dispute
Invoice create_invoiceCreate invoice
create_invoice_itemCreate invoice item
finalize_invoiceFinalize invoice
list_invoicesList invoices
Payment Link create_payment_linkCreate payment link
Payment Intent list_payment_intentsList payment intents
Price create_priceCreate price
list_pricesList prices
Product create_productCreate product
list_productsList products
Refund create_refundCreate refund
Subscription cancel_subscriptionCancel subscription
list_subscriptionsList subscriptions
update_subscriptionUpdate subscription
Others search_stripe_resourcesSearch Stripe resources
fetch_stripe_resourcesFetch Stripe object
search_stripe_documentationSearch Stripe knowledge

Voir aussi

  • Build on Stripe with LLMs
  • Add Stripe to your agentic workflows
Cette page vous a-t-elle été utile ?
OuiNon
  • Besoin d'aide ? Contactez le service Support.
  • Rejoignez notre programme d'accès anticipé.
  • Consultez notre log des modifications.
  • Des questions ? Contactez l'équipe commerciale.
  • LLM ? Lire llms.txt.
  • Propulsé par Markdoc