Skip to main content
Glama

stripe

Official
by stripe

条纹模型上下文协议

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阅读优惠券信息
disputes.update更新现有争议
disputes.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

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.

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

  1. 设置
    1. 与 Claude Desktop 一起使用
  2. 可用工具
    1. 调试服务器
      1. 使用 Docker 构建
      2. 指示

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol server that enables AI assistants to interact with Strapi CMS instances through a standardized interface, supporting content types and REST API operations.
      Last updated -
      5
      128
      30
      JavaScript
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      A Model Context Protocol server that allows LLMs to interact with web content through standardized tools, currently supporting web scraping functionality.
      Last updated -
      Python
      MIT License
      • Linux
      • Apple
    • -
      security
      A
      license
      -
      quality
      A server that integrates with Stripe for handling payments, customers, and refunds through the Model Context Protocol, providing a secure API to manage financial transactions.
      Last updated -
      13
      Python
      MIT License
      • Apple
    • -
      security
      A
      license
      -
      quality
      Model Context Protocol (MCP) server that interacts with Shopify Dev. This protocol supports various tools to interact with different Shopify APIs.
      Last updated -
      1,450
      327
      TypeScript
      ISC License

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/stripe/agent-toolkit'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server