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 分