
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@codespar/mcp-chargebee
Advanced tools
MCP server for Chargebee — global subscription billing, recurring revenue orchestration
MCP server for Chargebee — global subscription billing orchestration
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.
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"chargebee": {
"command": "npx",
"args": ["-y", "@codespar/mcp-chargebee"],
"env": {
"CHARGEBEE_SITE": "your-site",
"CHARGEBEE_API_KEY": "your-api-key"
}
}
}
}
claude mcp add chargebee -- npx @codespar/mcp-chargebee
Add to .cursor/mcp.json or .vscode/mcp.json:
{
"servers": {
"chargebee": {
"command": "npx",
"args": ["-y", "@codespar/mcp-chargebee"],
"env": {
"CHARGEBEE_SITE": "your-site",
"CHARGEBEE_API_KEY": "your-api-key"
}
}
}
}
| Tool | Purpose |
|---|---|
create_subscription | Create a new subscription in Chargebee. |
retrieve_subscription | Retrieve a subscription by ID |
update_subscription | Update a subscription. |
cancel_subscription | Cancel a subscription. |
reactivate_subscription | Reactivate a cancelled or paused subscription |
list_subscriptions | List subscriptions. |
create_customer | Create a customer in Chargebee. |
retrieve_customer | Retrieve a customer by ID |
update_customer | Update a customer. |
list_customers | List customers. |
retrieve_invoice | Retrieve an invoice by ID |
list_invoices | List invoices with optional filters |
create_payment_source_using_token | Attach a payment source to a customer using a gateway token (e.g. |
delete_payment_source | Delete a payment source |
list_events | List webhook events. |
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.
Chargebee uses field[operator]=value for list filters, e.g. status[is]=active, email[is]=foo@bar.com, occurred_at[after]=1700000000.
Pass these via the filters object on any list_* tool:
{
"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).
| Variable | Required | Description |
|---|---|---|
CHARGEBEE_SITE | Yes | Site subdomain, e.g. acme-test for acme-test.chargebee.com |
CHARGEBEE_API_KEY | Yes | API key from Settings > API Keys (full-access or restricted) |
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.
<name>-test)CHARGEBEE_SITE and CHARGEBEE_API_KEYcreate_invoice — charge a customer outside of a subscriptionrecord_payment — record offline paymentscreate_coupon / list_couponscreate_plan / list_plans / create_addonlist_transactionscreate_hosted_page_checkout — generate Chargebee hosted checkout URLsretrieve_quote / convert_quoteWant a tool sooner? Open an issue or PR.
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.
MIT
FAQs
MCP server for Chargebee — global subscription billing, recurring revenue orchestration
We found that @codespar/mcp-chargebee demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.