Skip to main content
CH

Chargebee

v0.1.1API Key

Orquestación global de cobro de suscripción usada por SaaS de LatAm (Platzi, Truora). Lógica de suscripción estilo Stripe encima de gateways locales. Cero overlap con Vindi/Iugu — este es el patrón global-SaaS.

15 herramientas2 env vars🌐 GLOBALestable en npm

Qué puede hacer tu agente

Chargebee le da a tu agente 15 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.

  • create_subscriptionCreate 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_subscriptionRetrieve a subscription by ID
  • update_subscriptionUpdate a subscription. Accepts any Chargebee subscription fields (plan_id, plan_quantity, coupon_ids, addons, billing_cycles, etc.)
Ejemplo de llamada
// 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", { /* ... */ });

Instalar

terminal
$ npm install @codespar/mcp-chargebee

Quickstart

Agregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).

claude_desktop_config.json
{
  "mcpServers": {
    "chargebee": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-chargebee"
      ],
      "env": {
        "CHARGEBEE_SITE": "<your_chargebee_site>",
        "CHARGEBEE_API_KEY": "<your_chargebee_api_key>"
      }
    }
  }
}

Después de reiniciar, tu agente puede llamar cualquiera de las 15 herramientas de abajo — probá create_subscription primero.

Variables de entorno · 2

Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.

CHARGEBEE_SITE
obligatorio

Chargebee site subdomain (e.g. 'acme' for acme.chargebee.com, 'acme-test' for test site)

CHARGEBEE_API_KEY
obligatoriosecret

Chargebee API key (full-access or restricted) from Settings > API Keys

Herramientas disponibles · 15

Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.

WRITEcreate_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.
READretrieve_subscription
Retrieve a subscription by ID
WRITEupdate_subscription
Update a subscription. Accepts any Chargebee subscription fields (plan_id, plan_quantity, coupon_ids, addons, billing_cycles, etc.)
DELETEcancel_subscription
Cancel a subscription. By default cancels immediately; set end_of_term=true to cancel at period end.
WRITEreactivate_subscription
Reactivate a cancelled or paused subscription
READlist_subscriptions
List subscriptions. Pass filters as a free-form object using Chargebee's field[operator]=value format, e.g. { "status[is]": "active", "customer_id[is]": "cust_123" }.
WRITEcreate_customer
Create a customer in Chargebee. At least one of email, first_name, or last_name is required.
READretrieve_customer
Retrieve a customer by ID

Frameworks compatibles

MCP es un protocolo — cualquier framework que lo hable puede montar este server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Cualquier cliente MCPProtocolo

Preguntas frecuentes

Corré `npx -y @codespar/mcp-chargebee` y agregá el bloque de config de arriba a tu cliente MCP — Claude, Cursor, VS Code o cualquier cliente compatible con MCP. Sin build, sin SDK. ¿Preferís hosted? El tier gestionado de CodeSpar lo corre por vos, con la auth resuelta.
Chargebee — MCP server · 15 tools | CodeSpar