Chargebee MCP server

Finance and commerceAgent frameworks and SDKs

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

Your AI app calls the Chargebee MCP server, which does the finance and commerce and agent frameworks and SDKs work and sends the result back to the chat.

About Chargebee

Chargebee is a community MCP server from codespar, filed in our directory under finance and commerce and agent frameworks and sdks. MCP server for Chargebee, global subscription billing, recurring revenue orchestration.

Chargebee runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-chargebee@0.1.2 and talks to it over standard input and output. It needs CHARGEBEE_SITE and CHARGEBEE_API_KEY set before Chargebee starts.

Chargebee is listed in the official MCP registry as io.github.codespar/mcp-chargebee, version 0.1.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-chargebee
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-chargebee

How to set up Chargebee

  1. Install Node.js on the machine that runs your AI app, because Chargebee starts with npx and downloads its package on first run.
  2. Create CHARGEBEE_SITE and CHARGEBEE_API_KEY for Chargebee in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Chargebee to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Chargebee tools to confirm the connection.
  5. Run one read-only task with Chargebee first, and keep your app asking before each tool call until the results look right.

Chargebee compared with similar servers

  • Cielo by codespar has fewer GitHub stars than Chargebee (278 against 278); both are community servers, and both run locally.
  • Certta by codespar has fewer GitHub stars than Chargebee (278 against 278); both are community servers, and both run locally.
  • Circle by codespar has fewer GitHub stars than Chargebee (278 against 278); both are community servers, and both run locally.

Before you connect Chargebee

  • Give Chargebee its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Chargebee tool call until you trust what it does with them.
  • Treat text that Chargebee fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Chargebee on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Chargebee

How marketing and sales teams put Chargebee to work, by company size. Pick the size closest to yours and start Chargebee on one use case.

Small business

  • A small business can ask Chargebee which products and customers drive margin, then plan promotions around them.
  • Owners can use Chargebee to check refunds, failed payments and churn reasons without opening three dashboards.
  • A small business with a developer can use Chargebee to build one focused agent, such as lead follow-up, without a big platform.
  • Chargebee runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Chargebee to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Chargebee to check spend against budget each week and move money to what's working.
  • Growth engineering teams can use Chargebee to build agents that combine CRM, analytics and content tools behind one workflow.
  • Start Chargebee on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Chargebee read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Chargebee to answer revenue questions by channel and region with figures finance signs off on.
  • Enterprises can build on Chargebee with their own identity, policy and evaluation layers, so agents meet the same bar as other software.
  • Chargebee is a community server, so have security review the code and pin a version before Chargebee touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Chargebee README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@codespar/mcp-chargebee

MCP server for Chargebee, global subscription billing orchestration

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:

{
  "mcpServers": {
    "chargebee": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-chargebee"],
      "env": {
        "CHARGEBEE_SITE": "your-site",
        "CHARGEBEE_API_KEY": "your-api-key"
      }
    }
  }
}
Claude Code
claude mcp add chargebee -- npx @codespar/mcp-chargebee
Cursor / VS Code

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"
      }
    }
  }
}

Tools (15)

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.

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]=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).

Environment Variables

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)

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

Questions about Chargebee

What is the Chargebee MCP server?

MCP server for Chargebee, global subscription billing, recurring revenue orchestration. Chargebee is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Chargebee MCP server?

Add Chargebee to your AI app's MCP config with the command npx -y @codespar/mcp-chargebee@0.1.2. In Claude Code, run claude mcp add --transport stdio codespar-chargebee -- npx -y @codespar/mcp-chargebee@0.1.2. To run Chargebee this way you need Node.js installed.

Does Chargebee need an API key?

Yes. Chargebee expects CHARGEBEE_SITE and CHARGEBEE_API_KEY to be set. Create the key for Chargebee in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Chargebee an official MCP server?

No. Chargebee is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Chargebee access to company data.

What license is Chargebee under?

Chargebee is released under the MIT license, according to its GitHub repository. The license covers the code of Chargebee; the service it connects to has its own terms.