Skip to content

Elaichifrom the team behind Truto

Connect ChartMogul to Claude: Manage Billing, Plans, and Customers

Nachi Raman Nachi Raman 10 min read

The best way to connect ChartMogul to Claude is Elaichi: connect ChartMogul to Elaichi once, then add Elaichi to Claude as a connector. Two steps, about a minute, with a 14‑day free trial and no credit card required.

  1. Start your free trial

    14 days free, no credit card required.

  2. Connect ChartMogul

    Once, in Elaichi. Claude never gets more access than you have.

  3. Add Elaichi to Claude

    In Claude, open Customize, then Connectors, press Add and paste the URL. Sign in and approve.

    https://api.elaichi.ai/mcp

Building ChartMogul into your own product? The guide below is for you. Read the guide Start free on Truto

The developer guide

Learn how to connect ChartMogul to Claude using a managed MCP server. This technical guide covers tool calling for MRR metrics, customer analytics, and subscriptions.

If you need to connect ChartMogul to Claude to automate revenue reporting, analyze subscription churn, update customer custom attributes, or manage billing plans, you need a Model Context Protocol (MCP) server. This server acts as the translation layer between Claude's internal tool-calling engine and ChartMogul's REST APIs. You can either build and maintain this infrastructure yourself, dealing with the nuances of ChartMogul's schema, or use a managed integration platform like Truto to dynamically generate a secure, authenticated MCP server URL. If your team uses ChatGPT, check out our guide on /connect-chartmogul-to-chatgpt-analyze-revenue-metrics-and-growth/ or explore our broader architectural overview on /connect-chartmogul-to-ai-agents-automate-subscription-data-tasks/.

Giving a Large Language Model (LLM) read and write access to a specialized subscription analytics platform like ChartMogul is an engineering challenge. You have to handle API key lifecycles, map massive JSON schemas to MCP tool definitions, and deal with ChartMogul's domain-specific data constraints. Every time the upstream API changes an endpoint or deprecates a field, you have to update your server code, redeploy, and test the integration.

This guide breaks down exactly how to use Truto to generate a secure, managed MCP server for ChartMogul, connect it natively to Claude Desktop or any MCP client, and execute complex revenue operations workflows using natural language.

The Engineering Reality of the ChartMogul API

A custom MCP server is a self-hosted integration layer. While the open MCP standard provides a predictable way for models to discover tools over JSON-RPC 2.0, the reality of implementing it against specialized B2B APIs is painful. ChartMogul is built to ingest, normalize, and analyze subscription billing data. Its API reflects that complexity, prioritizing data integrity and complex aggregations over simple CRUD operations.

If you decide to build a custom ChartMogul MCP server, here are the specific integration challenges you will face:

Asynchronous Export Endpoints

ChartMogul offers powerful endpoints for exporting massive datasets, such as the activities export. When you call the export endpoint, ChartMogul does not return the data immediately. Instead, it returns an HTTP 202 Accepted status with an export ID. You must then poll a separate endpoint using that ID until the file_url becomes available. LLMs are notoriously bad at handling polling loops without strict programmatic guardrails. If you expose the raw endpoints to Claude, it might hallucinate a file URL or give up before the export finishes. Your MCP server must either wrap this into a synchronous block (risking timeouts) or explicitly define the polling workflow in the MCP tool description so the LLM understands it must repeatedly call the status tool.

Nested Custom Attribute Schemas

Customer records in ChartMogul often rely heavily on custom attributes to store business-specific metadata (e.g., lead source, CSM owner, internal health scores). These attributes are stored as nested JSON objects (custom, tags). When updating a customer, you cannot simply pass a flat key-value pair. You often need to fetch the existing customer record, extract the current custom array, append or modify your specific attribute, and then send a carefully constructed PATCH or POST request to the custom attributes endpoint. Providing this raw access to an LLM usually results in malformed JSON or accidental deletion of existing attributes.

Hard Split Between Core Records and Analytics

ChartMogul's API splits core operational data (Customers, Plans, Invoices) from its Analytics endpoints (MRR, ARR, LTV, Churn Rate). If a RevOps manager asks Claude to "find the customer who canceled yesterday and tell me how much MRR we lost," Claude must orchestrate a multi-step sequence. It needs to search for the customer by email, extract the UUID, query the subscription events or customer activities using that UUID, and finally query the metrics API. Building an MCP server means you must accurately map the schemas for all these disparate domains so the LLM can infer the relationships (like passing a customer_uuid from one tool output into the customer_uuid parameter of another tool).

HTTP 429s and Client-Side Backoff

ChartMogul strictly enforces rate limits. When your AI agent attempts to run a heavy data analysis by calling a list endpoint in a loop, it will hit an HTTP 429 Too Many Requests response. Truto does not silently retry, throttle, or absorb these rate limit errors. Instead, it normalizes the upstream rate limit information into standardized headers (ratelimit-limit, ratelimit-remaining, ratelimit-reset) per the IETF spec, and passes the 429 error directly back to the caller. This forces the MCP client (or the LLM framework) to handle the backoff strategy intelligently, rather than having requests silently time out in a middleware queue.

How to Create the ChartMogul MCP Server

Truto dynamically generates MCP tools based on the available documentation and endpoints for the integrated account. You do not have to write custom integration code or manage schema mappings. You can spin up a secure, scoped MCP server URL either through the Truto UI or programmatically via the API.

Method 1: Via the Truto UI

If you are setting up an internal tool or testing a workflow locally with Claude Desktop, the UI is the fastest path.

  1. Log into your Truto dashboard and navigate to your Integrated Accounts.
  2. Select your connected ChartMogul account.
  3. Click the MCP Servers tab.
  4. Click Create MCP Server.
  5. Configure your server settings. You can restrict the server to specific operations (e.g., read-only) or specific tags (e.g., metrics, customers).
  6. Click Create and securely copy the generated MCP server URL (e.g., https://api.truto.one/mcp/abcd1234efgh5678).

Method 2: Via the Truto REST API

For platform teams embedding AI capabilities into their own products, you can dynamically provision MCP servers for your users on the fly. This ensures every user gets an MCP server scoped strictly to their own ChartMogul tenant credentials.

Make an authenticated POST request to the Truto API:

curl -X POST https://api.truto.one/integrated-account/{integrated_account_id}/mcp \
  -H "Authorization: Bearer YOUR_TRUTO_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "ChartMogul RevOps Agent",
    "config": {
      "methods": ["read", "write", "custom"],
      "tags": ["metrics", "customers", "subscriptions"]
    },
    "expires_at": "2026-12-31T23:59:59Z"
  }'

Response:

{
  "id": "mcp_srv_987654321",
  "name": "ChartMogul RevOps Agent",
  "config": {
    "methods": ["read", "write", "custom"],
    "tags": ["metrics", "customers", "subscriptions"]
  },
  "expires_at": "2026-12-31T23:59:59.000Z",
  "url": "https://api.truto.one/mcp/abcd1234efgh5678"
}

The returned url contains a cryptographically hashed token that securely authenticates the MCP session. This URL is entirely self-contained; the client needs nothing else to connect.

Connecting the ChartMogul MCP Server to Claude

Once you have your Truto MCP URL, you can plug it directly into your AI environment. MCP uses Server-Sent Events (SSE) over HTTP POST, meaning it works flawlessly over standard web protocols without requiring complex websocket configurations or local binary installations.

Method 1: Via the Claude UI (or ChatGPT)

If you are using a commercial LLM chat interface that supports custom remote MCP connectors (like Claude Enterprise or ChatGPT Developer Mode):

  1. In your AI client, navigate to Settings -> Integrations (or Settings -> Connectors in ChatGPT).
  2. Click Add MCP Server or Add Custom Connector.
  3. Paste the Truto MCP URL you generated in the previous step.
  4. Click Add or Save.

The AI client will instantly perform the MCP handshake, validate the JSON-RPC connection, and ingest the dynamically generated ChartMogul schemas.

Method 2: Via Manual Configuration File (Claude Desktop)

If you are running Claude Desktop locally, or using an open-source MCP client framework, you configure the remote server using the official @modelcontextprotocol/server-sse package.

Open your claude_desktop_config.json file (typically located at ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "chartmogul_truto": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sse",
        "https://api.truto.one/mcp/abcd1234efgh5678"
      ]
    }
  }
}

Restart Claude Desktop. The application will execute the NPX command, establish the SSE connection to Truto's edge network, and surface the ChartMogul tools to the model.

ChartMogul MCP Hero Tools

Truto automatically translates the underlying ChartMogul API into strictly typed, explicitly documented MCP tools. The query parameters and request bodies are flattened and mapped via JSON Schema, giving Claude exact instructions on how to call them.

Here are the highest-leverage tools available for your agent.

list_all_chart_mogul_metrics_mrr

Retrieves the Monthly Recurring Revenue (MRR) metrics for a specified time period. The schema requires start and end dates (formatted as ISO8601 or YYYY-MM-DD) and an interval (e.g., month, quarter, year).

"Claude, query our MRR metrics for the last 6 months broken down by month. Create a markdown table showing the MRR growth trend."

Search for a customer in ChartMogul by their exact email address. This is critical for agentic workflows because ChartMogul operations often require the internal customer_uuid, which must be retrieved via search first.

"Search ChartMogul for the customer with the email founder@acme.com and give me their internal UUID, current MRR, and subscriber status."

create_a_chart_mogul_customer_custom_attribute

Allows the AI agent to append or update custom attributes on a specific customer record. This is highly useful for syncing health scores, risk flags, or lead sources determined during a conversational session.

"Take the customer UUID you just found and add a custom attribute called 'churn_risk' with a boolean value of true."

list_all_chart_mogul_customer_subscriptions

Retrieves the complete list of active and past subscriptions for a given customer_uuid. It returns deep data including the plan name, quantity, MRR value, and status.

"List all subscriptions for this customer. Tell me which plan they are currently on and when their subscription started."

create_a_chart_mogul_plan

Creates a new billing plan in ChartMogul. The agent must provide the data_source_uuid, plan name, interval_count (e.g., 1), and interval_unit (e.g., month, year).

"Create a new annual plan in our primary data source called 'Enterprise Annual 2026'. The interval should be 1 year."

create_a_chart_mogul_activities_export

Triggers an asynchronous export of all activities (new biz, churn, contraction) within a specific timeframe. The tool instructs the LLM that this returns an export ID, which must be tracked.

"Trigger an activities export for Q3 of this year. Let me know what the export ID is so we can check on the file status later."

Note: To see the complete inventory of available ChartMogul tools, including exact JSON schemas and pagination handling logic, visit the ChartMogul integration page.

Workflows in Action

Exposing ChartMogul tools to Claude transforms static dashboards into conversational revenue operations. Here are real-world examples of how an AI agent executes multi-step logic.

Scenario 1: Churn Risk Assessment and Tagging

A Customer Success Manager wants to analyze an account that just sent a concerning support ticket and immediately flag them in the billing system.

"Claude, check if admin@globex.io is a customer in ChartMogul. If they are, list their current subscriptions and MRR. Finally, add a custom attribute tagging them as 'At Risk'."

How the agent executes this:

  1. Calls chart_mogul_customers_search with email: "admin@globex.io". Parses the response to extract the uuid and current mrr.
  2. Calls list_all_chart_mogul_customer_subscriptions passing the extracted uuid to find the active plan details (e.g., "Pro Tier").
  3. Calls create_a_chart_mogul_customer_custom_attribute with the uuid and a JSON payload defining {"custom": [{"type": "Boolean", "key": "At Risk", "value": true}]}.
  4. Formats a natural language summary confirming the customer's spend, plan, and the successful application of the risk flag.
sequenceDiagram
    participant User
    participant Claude as Claude Desktop
    participant Truto as Truto MCP Server
    participant Upstream as ChartMogul API

    User->>Claude: "Check admin@globex.io, list subs, flag as at-risk"
    Claude->>Truto: call tool chart_mogul_customers_search(email)
    Truto->>Upstream: GET /v1/customers/search?email=...
    Upstream-->>Truto: Return customer object & UUID
    Truto-->>Claude: JSON result
    Claude->>Truto: call tool list_all_chart_mogul_customer_subscriptions(uuid)
    Truto->>Upstream: GET /v1/customers/{uuid}/subscriptions
    Upstream-->>Truto: Return subscription array
    Truto-->>Claude: JSON result
    Claude->>Truto: call tool create_a_chart_mogul_customer_custom_attribute(uuid, custom)
    Truto->>Upstream: POST /v1/customers/{uuid}/attributes/custom
    Upstream-->>Truto: Return 200 OK
    Truto-->>Claude: JSON result
    Claude-->>User: "Globex is on the Pro Tier ($500 MRR). Flag applied."

Scenario 2: Executive MRR Briefing

A founder needs a quick snapshot of growth without logging into the analytics dashboard.

"Claude, pull our MRR metrics for the last three months. Then, pull our Customer Churn Rate for the same period. Give me a brief executive summary comparing the two."

How the agent executes this:

  1. Calls list_all_chart_mogul_metrics_mrr with the date range covering the last three months and interval: "month".
  2. Parses the returned array, noting the MRR value for each month.
  3. Calls list_all_chart_mogul_metrics_customer_churn_rate with the exact same date range and interval parameters.
  4. Analyzes both datasets in context, identifying correlations (e.g., "MRR grew by 5% in October, but churn spiked to 3.2% in November").
  5. Outputs a cleanly formatted markdown summary for the executive.

Security and Access Control

When granting AI agents access to sensitive financial data in ChartMogul, strict security boundaries are non-negotiable. Truto's managed MCP architecture enforces security at the edge before requests ever touch the upstream API.

  • Method Filtering: Configure the MCP token (config.methods: ["read"]) to physically block the LLM from executing destructive operations like delete_a_chart_mogul_customer_by_id. The server simply will not generate write tools.
  • Tag Filtering: Limit the server's scope to specific functional areas using config.tags (e.g., tags: ["metrics"]). Tools outside these tags are hidden from the model's context window.
  • Time-Bound Access (expires_at): Generate short-lived MCP URLs for temporary audits. Once the ISO datetime passes, the edge storage immediately invalidates the token, permanently severing access.
  • Multi-Factor API Auth (require_api_token_auth): Enable this flag to require the caller to provide a valid Truto API token in the Authorization header, ensuring that possession of the MCP URL alone is not enough to execute tools.

Architecting for Agentic Revenue Operations

Connecting ChartMogul to Claude via a managed MCP server removes the friction of custom API integration. You no longer have to manually track API changes, construct complex polling loops for async exports, or write boilerplate OAuth code. The LLM gains native, tool-calling access to your revenue data, bounded by strict, declarative security controls.

Whether you are building internal AI assistants to monitor subscription metrics or embedding agentic capabilities into your own SaaS platform, leveraging a dynamically generated MCP layer turns ChartMogul's raw endpoints into composable intelligence.

FAQ

What is the easiest way to connect ChartMogul to Claude?
The best way to connect ChartMogul to Claude is Elaichi: connect ChartMogul to Elaichi once, then add Elaichi to Claude as a connector. Two steps, about a minute, with a 14-day free trial and no credit card required.
How do I handle ChartMogul rate limits when using Claude?
Truto passes HTTP 429 rate limit errors directly to Claude along with standard IETF ratelimit headers. Your MCP client or LLM framework is responsible for reading these headers and executing a backoff strategy.
Can I prevent Claude from deleting customer data in ChartMogul?
Yes. When generating the MCP server URL, you can configure the token to only allow 'read' methods. This prevents Truto from generating destructive tools like delete_a_chart_mogul_customer_by_id.
How does the MCP server handle ChartMogul's async export endpoints?
ChartMogul returns an HTTP 202 with an ID for async exports. The MCP tool schema explicitly instructs the LLM that it has received an ID and must subsequently use the retrieval tool to check the status until the file URL is provided.
How do I connect the MCP server to Claude Desktop?
You configure the remote server using the official @modelcontextprotocol/server-sse package. Add an entry to your claude_desktop_config.json using the 'npx' command and passing your Truto MCP URL.

Two ways in

Two ways to put ChartMogul to work

Elaichifrom the team behind Truto

For you and your team

Use ChartMogul in Claude yourself

Connect ChartMogul once, add Elaichi to Claude, and ask. Every call is checked against your own permissions and logged.

Start free, 14 days No credit card required

For product teams

Ship ChartMogul to your customers

Your customers connect their own ChartMogul accounts. Your product gets one API and MCP tools for ChartMogul, through Truto.

ChartMogul ChartMogul in Claude14 days free Start free

Blog

More from our Blog