Global subscription-billing orchestration used by LatAm SaaS (Platzi, Truora). Stripe-style subscription logic on top of local gateways. Zero overlap with Vindi/Iugu — this is the global-SaaS pattern.
Chargebee gives your agent 15 tools it calls directly — pick the ones it needs, in Claude, Cursor, or any MCP client.
create_subscription — Create a new subscription in Chargebee. Provide either a nested `customer` object (with email/first_name/last_name) for a new customer, or pass an existing `customer_id` via nested customer or top-level field.retrieve_subscription — Retrieve a subscription by IDupdate_subscription — Update a subscription. Accepts any Chargebee subscription fields (plan_id, plan_quantity, coupon_ids, addons, billing_cycles, etc.)// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_subscription", { /* ... */ });$ npm install @codespar/mcp-chargebeeAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"chargebee": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-chargebee"
],
"env": {
"CHARGEBEE_SITE": "<your_chargebee_site>",
"CHARGEBEE_API_KEY": "<your_chargebee_api_key>"
}
}
}
}After restart, your agent can call any of the 15 tools below — try create_subscription first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
CHARGEBEE_SITEChargebee site subdomain (e.g. 'acme' for acme.chargebee.com, 'acme-test' for test site)
CHARGEBEE_API_KEYChargebee API key (full-access or restricted) from Settings > API Keys
Each tool is independent — your agent loads only what it needs to reduce context and response time.
create_subscriptionretrieve_subscriptionupdate_subscriptioncancel_subscriptionreactivate_subscriptionlist_subscriptionscreate_customerretrieve_customerMCP is a protocol — any framework that speaks it can mount this server.