Weiter zum Inhalt
Konto erstellen
oder
anmelden
Das Logo der Stripe-Dokumentation
/
KI fragen
Konto erstellen
Anmelden
Jetzt starten
Zahlungen
Umsatz
Plattformen und Marktplätze
Geldmanagement
Entwicklerressourcen
Übersicht
Versionierung
Änderungsprotokoll
Aktualisieren Sie Ihre API-Version
Ihre SDK-Version aktualisieren
Essentials
SDKs
API
Tests
Stripe-CLI
Beispiel-Projekte
Tools
Workbench
Entwickler-Dashboard
Stripe Shell
Stripe für Visual Studio Code
Funktionen
Arbeitsabläufe
Ereignisziele
Stripe-StatuswarnungenHochgeladene Dateien
KI-Lösungen
Agent-Toolkit
Model Context Protocol
Sicherheit und Datenschutz
Sicherheit
Datenschutz
Extend Stripe
Build Stripe apps
Use apps from Stripe
Partner
Partner-Ecosystem
Partner-Zertifizierung
StartseiteEntwicklerressourcen

Notiz

Bis jetzt ist diese Seite noch nicht in dieser Sprache verfügbar. Wir arbeiten aber verstärkt daran, unsere Dokumentation in weiteren Sprachen bereitzustellen, und werden die Übersetzung sofort anzeigen, sobald diese verfügbar ist.

Model Context Protocol (MCP)Öffentliche Vorschau

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 clients:

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

  2. In the right panel, click Clients to view OAuth-connected MCP clients.

To revoke OAuth access for a specific MCP client:

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

  2. Select Revoke.

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.

Siehe auch

  • Build on Stripe with LLMs
  • Add Stripe to your agentic workflows
War diese Seite hilfreich?
JaNein
  • Benötigen Sie Hilfe? Kontaktieren Sie den Kundensupport.
  • Nehmen Sie an unserem Programm für frühzeitigen Zugriff teil.
  • Schauen Sie sich unser Änderungsprotokoll an.
  • Fragen? Sales-Team kontaktieren.
  • LLM? Lesen Sie llms.txt.
  • Unterstützt von Markdoc