Mcp Chargebee

io.github.codespar由 GitHub 帳號 codespar 發布v0.1.2更新於 Oct 24, 2026

MCP server for Chargebee — global subscription billing, recurring revenue orchestration

已驗證STDIO僅桌面金融商業與電商

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理管理 Chargebee 訂閱計費:訂閱、客戶、發票、付款方式與 webhook 事件。

可以做什麼
建立、查詢、更新、取消、重新啟用與列出訂閱,並可用 Chargebee 篩選語法依狀態或方案篩選。建立、查詢、更新與列出客戶。依客戶或狀態等條件查詢與列出發票。使用閘道權杖附加付款方式,或刪除付款方式。列出 webhook 事件。
適用情境
當你以 Chargebee 作為 SaaS 訂閱計費層,希望助理不必開啟後台就能查詢或變更訂閱、客戶、發票與付款方式時適用。建議先在免費測試站台試用,再操作真實計費資料。
執行需求
透過 npx 從 npm 套件 @codespar/mcp-chargebee 在本機執行,需要 Node.js。需要環境變數 CHARGEBEE_SITE(站台子網域)與 CHARGEBEE_API_KEY(在 Settings > API Keys 建立的全權限或受限金鑰)。需要連線至 Chargebee API 的網路存取。
安裝前請注意
API 金鑰可存取計費資料;全權限金鑰能建立、更新、取消與重新啟用訂閱,並附加或刪除付款方式,會影響真實客戶與扣款。開發時優先使用唯讀或受限金鑰及測試站台。金鑰以明文環境變數形式寫在用戶端設定檔中。伺服器會處理付款方式權杖。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Chargebee,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@codespar/mcp-chargebee

MCP server for Chargebee — global subscription billing orchestration

[npm] [License: MIT]

Why Chargebee in the CodeSpar catalog?

Chargebee is subscription-billing orchestration on top of payment gateways (Stripe, Adyen, Braintree, local LatAm acquirers). It handles plans, proration, dunning, tax, and revenue recognition — the SaaS monetization layer, not the card-processing layer.

The CodeSpar catalog already ships Vindi and Iugu for Brazil-native recurring billing. Chargebee complements (not overlaps) those: it is the global-SaaS pattern used by Platzi, Truora, and most US SaaS selling into LatAm. Zero feature overlap, different market.

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

json
{  "mcpServers": {    "chargebee": {      "command": "npx",      "args": ["-y", "@codespar/mcp-chargebee"],      "env": {        "CHARGEBEE_SITE": "your-site",        "CHARGEBEE_API_KEY": "your-api-key"      }    }  }}

Claude Code

bash
claude mcp add chargebee -- npx @codespar/mcp-chargebee

Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

json
{  "servers": {    "chargebee": {      "command": "npx",      "args": ["-y", "@codespar/mcp-chargebee"],      "env": {        "CHARGEBEE_SITE": "your-site",        "CHARGEBEE_API_KEY": "your-api-key"      }    }  }}

Tools (15)

ToolPurpose
create_subscriptionCreate a new subscription in Chargebee.
retrieve_subscriptionRetrieve a subscription by ID
update_subscriptionUpdate a subscription.
cancel_subscriptionCancel a subscription.
reactivate_subscriptionReactivate a cancelled or paused subscription
list_subscriptionsList subscriptions.
create_customerCreate a customer in Chargebee.
retrieve_customerRetrieve a customer by ID
update_customerUpdate a customer.
list_customersList customers.
retrieve_invoiceRetrieve an invoice by ID
list_invoicesList invoices with optional filters
create_payment_source_using_tokenAttach a payment source to a customer using a gateway token (e.g.
delete_payment_sourceDelete a payment source
list_eventsList webhook events.

Authentication

Chargebee API v2 uses HTTP Basic with your API key as username and empty password. This package handles it automatically — just set CHARGEBEE_API_KEY.

Request bodies are sent as application/x-www-form-urlencoded (Chargebee's v2 convention). Nested objects and arrays are flattened to parent[child]=value / parent[0][child]=value.

Filter syntax

Chargebee uses field[operator]=value for list filters, e.g. status[is]=active, email[is][email protected], occurred_at[after]=1700000000.

Pass these via the filters object on any list_* tool:

json
{  "filters": {    "status[is]": "active",    "plan_id[is]": "pro-monthly"  }}

Common list filters are also exposed as top-level conveniences (e.g. list_invoices accepts customer_id, status directly).

Environment Variables

VariableRequiredDescription
CHARGEBEE_SITEYesSite subdomain, e.g. acme-test for acme-test.chargebee.com
CHARGEBEE_API_KEYYesAPI key from Settings > API Keys (full-access or restricted)

Sandbox / Testing

Every Chargebee account includes a free test site (<your-site>-test.chargebee.com). Use its API key for development — no charges flow to real gateways.

Get your credentials

  1. Sign up at chargebee.com
  2. Your test site is created automatically (<name>-test)
  3. Go to Settings > API Keys and create a Full-Access or Read-Only key
  4. Set CHARGEBEE_SITE and CHARGEBEE_API_KEY

Roadmap

v0.2 (planned)

  • create_invoice — charge a customer outside of a subscription
  • record_payment — record offline payments
  • create_coupon / list_coupons
  • create_plan / list_plans / create_addon
  • list_transactions

v0.3 (planned)

  • create_hosted_page_checkout — generate Chargebee hosted checkout URLs
  • retrieve_quote / convert_quote
  • Revenue reporting helpers

Want a tool sooner? Open an issue or PR.

Links

Enterprise

Need governance, budget limits, and audit trails for agent-initiated subscription changes? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

來源:packages/payments/chargebee/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分