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 整合