stripe

Official

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows integration with Stripe APIs through function calling, enabling operations such as creating/reading customers, products, prices, payment links, invoices, invoice items, as well as retrieving balance information, creating refunds, reading payment intent information, and searching Stripe documentation.

条纹模型上下文协议

Stripe模型上下文协议服务器允许您通过函数调用与 Stripe API 集成。该协议支持各种工具与不同的 Stripe 服务进行交互。

设置

要使用 npx 运行 Stripe MCP 服务器,请使用以下命令:

# To set up all available tools npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY # To set up specific tools npx -y @stripe/mcp --tools=customers.create,customers.read,products.create --api-key=YOUR_STRIPE_SECRET_KEY # To configure a Stripe connected account npx -y @stripe/mcp --tools=all --api-key=YOUR_STRIPE_SECRET_KEY --stripe-account=CONNECTED_ACCOUNT_ID

请务必将YOUR_STRIPE_SECRET_KEY替换为你的实际 Stripe 密钥。或者,你也可以在环境变量中设置 STRIPE_SECRET_KEY。

与 Claude Desktop 一起使用

将以下内容添加到你的claude_desktop_config.json中。更多详情请参见此处

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

如果你正在使用 Docker

{ “mcpServers”: { “stripe”: { “command”: “docker", “args”: [ “run”, "--rm", "-i", “mcp/stripe”, “--tools=all”, “--api-key=STRIPE_SECRET_KEY” ] } } }

可用工具

工具描述
customers.create创建新客户
customers.read读取客户信息
products.create创建新产品
products.read阅读产品信息
prices.create创建新价格
prices.read阅读价格信息
paymentLinks.create创建新的付款链接
invoices.create创建新发票
invoices.update更新现有发票
invoiceItems.create创建新的发票项目
balance.read检索余额信息
refunds.create创建新的退款
paymentIntents.read读取付款意向信息
subscriptions.read阅读订阅信息
subscriptions.update更新订阅信息
coupons.create创建新优惠券
coupons.read阅读优惠券信息
documentation.read搜索 Stripe 文档

调试服务器

要调试您的服务器,您可以使用MCP Inspector

首先搭建服务器

npm run build

在终端中运行以下命令:

# Start MCP Inspector and server with all tools npx @modelcontextprotocol/inspector node dist/index.js --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

使用 Docker 构建

首先搭建服务器

docker build -t mcp/stripe .

在终端中运行以下命令:

docker run -p 3000:3000 -p 5173:5173 -v /var/run/docker.sock:/var/run/docker.sock mcp/inspector docker run --rm -i mcp/stripe --tools=all --api-key=YOUR_STRIPE_SECRET_KEY

指示

  1. 用您的实际 Stripe API 密钥替换YOUR_STRIPE_SECRET_KEY
  2. 运行命令启动 MCP Inspector。
  3. 在浏览器中打开 MCP Inspector UI,然后单击“连接”以启动 MCP 服务器。
  4. 您可以查看所选工具的列表并单独测试每个工具。
-
security - not tested
A
license - permissive license
-
quality - not tested

Stripe 模型上下文协议服务器允许您通过函数调用与 Stripe API 集成。该协议支持各种工具与不同的 Stripe 服务进行交互。

  1. Setup
    1. Usage with Claude Desktop
  2. Available tools
    1. Debugging the Server
      1. Build using Docker
      2. Instructions
    ID: 1m8tlvbsuh