Stripe MCP

io.github.robinafaruqia由 GitHub 账号 robinafaruqia 发布v0.1.2更新于 Oct 24, 2026

Read-only MCP server for querying Stripe customers, payments, and invoices.

发布方自己的服务:Stripe

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

只读的 Stripe MCP 服务器,让 AI 助手查询客户、支付、订阅、发票和退款数据。

可以做什么
提供只读的 Stripe 数据工具:list_customers 与 get_customer、list_payments 与 get_payment、list_subscriptions 与 get_subscription,以及 list_invoices 和 list_refunds。列表类工具支持 limit、email、customer_id、status、payment_intent_id 等可选筛选条件。按设计不包含收款、退款、更新或删除类工具。
适用场景
适合在开发或调试 Stripe 集成时,让助手查询测试模式下的客户、支付意图、订阅、发票或退款记录。不适用于真实账户操作,也不能用于修改数据。
运行要求
以 stdio 方式在本地运行,通常通过 npx @devtechtricks/stripe-mcp 启动,因此需要 Node.js。需要设置环境变量 STRIPE_SECRET_KEY,值为 Stripe 测试模式密钥或受限密钥(sk_test_ 或 rk_test_);使用正式密钥时服务器会拒绝启动。需要访问 Stripe 的网络连接。
安装前请注意
服务器要求提供 STRIPE_SECRET_KEY 这一 Stripe API 凭据;建议使用仅具只读权限的测试模式受限密钥,并避免写入共享配置。它按设计为只读并拒绝正式密钥,因此不应依赖它执行任何写入、退款或收款操作。查询到的 Stripe 数据会发送给所配置的 MCP 客户端和模型提供方。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Stripe MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[npm version] [npm downloads] [license] [GitHub stars]

stripe-mcp

A read-only MCP server for querying Stripe — customers, payments, subscriptions, invoices, and refunds.

Use it with any AI or client that supports MCP (Model Context Protocol)—Cursor, Claude Desktop, Claude Code, Windsurf, or other MCP hosts.

Features

  • Read-only by design — no charge, refund, update, or delete tools
  • Test keys only — refuses to start with sk_live_ / rk_live_
  • Single file — just index.js, no build step
  • Works with any MCP client — Cursor, Claude, Windsurf, and others

Cursor plugin

This repo is an Agent Plugin and a Cursor plugin. cursor.directory only detects components committed at the repo root. The files it needs are:

FilePurpose
mcp.jsonMCP server entry (npx -y @devtechtricks/stripe-mcp)
plugin.jsonOpen Plugins manifest
.cursor-plugin/plugin.jsonCursor listing metadata and the STRIPE_SECRET_KEY variable

After these files are on the default branch of the public GitHub repo, submit https://github.com/robinafaruqia/stripe-mcp at cursor.directory/plugins/new. On install, set STRIPE_SECRET_KEY to a Stripe test key (sk_test_... or rk_test_...).

MCP Configuration

Cursor — one-click install

[Add MCP server to Cursor]

After install, replace YOUR_STRIPE_TEST_KEY with a Stripe test secret (sk_test_... or rk_test_...) from the Stripe Dashboard. A restricted key with only read scopes is preferred.

Using npx (recommended)

Add to your MCP client config (e.g. Cursor: ~/.cursor/mcp.json or Settings → MCP; Claude: claude_desktop_config.json; etc.):

json
{  "mcpServers": {    "stripe-mcp": {      "command": "npx",      "args": ["-y", "@devtechtricks/stripe-mcp"],      "env": {        "STRIPE_SECRET_KEY": "sk_test_..."      }    }  }}

Claude Code:

bash
claude mcp add stripe-mcp --env STRIPE_SECRET_KEY=sk_test_... -- npx -y @devtechtricks/stripe-mcp

From source (development)

bash
git clone https://github.com/robinafaruqia/stripe-mcp.gitcd stripe-mcpnpm installcp .env.example .env   # then put your sk_test_ / rk_test_ key in .env

Then in your MCP config:

json
{  "mcpServers": {    "stripe-mcp": {      "command": "node",      "args": ["/path/to/stripe-mcp/index.js"]    }  }}

index.js loads .env from the package directory when STRIPE_SECRET_KEY is not already set. npm installs do not include .env — MCP clients should pass the key in env.

Available Tools

ToolDescription
list_customersList recent customers. Optional: limit, email.
get_customerGet a customer by ID. Required: customer_id.
list_paymentsList recent payment intents. Optional: limit, customer_id.
get_paymentGet a payment intent by ID. Required: payment_intent_id.
list_subscriptionsList subscriptions. Optional: limit, customer_id, status.
get_subscriptionGet a subscription by ID. Required: subscription_id.
list_invoicesList invoices. Optional: limit, customer_id, status.
list_refundsList refunds. Optional: limit, payment_intent_id.

Example

1. list_customers({ limit: 5 })2. get_customer({ customer_id: "cus_ABC123" })3. list_subscriptions({ customer_id: "cus_ABC123" })4. list_payments({ limit: 10 })

License

MIT

来源:README.md,提交 936c5de

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Stripe 集成