ChartMogul MCP server for AI agents

Live

API KEY

SUBSCRIPTION ANALYTICS

Analytics

ChartMogul gives your agent subscription analytics in your ChartMogul account: read MRR, ARR, churn, and LTV, look up customers, subscriptions, and MRR activities, and manage contacts, notes, tasks, and opportunities.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
ChartMogul
agent · Acme Q3
Run
What was our MRR and customer churn rate last quarter?
S
chartmogul_metrics_all_get
356ms
SaaS metrics agent
MRR ended the quarter at 184,200 USD, up 6.1 percent, with a customer churn rate of 1.8 percent for the period.
Sources: ChartMogul metrics, 1 date range
chartmogul
1 date range
18:29
Message Claude...

Tools your subscription analytics agent reaches for on ChartMogul, scoped per user.

CALL ANY TOOL
60 tools for subscription analytics in ChartMogul: read MRR, ARR, ARPA, churn, and LTV, look up customers, invoices, and MRR activities, import billing data, and manage contacts, notes, tasks, and opportunities.
chartmogul_account_get
Get account
Get details of the ChartMogul account the API key belongs to. Returns the account name, currency, time zone and week start, plus any extra settings requested. Use chartmogul_account_get to check the connection and the account currency.
Parameters
Name
Type
Required
Description
include
string
Optional
Comma-separated extra settings to include: churn_recognition, churn_when_zero_mrr, auto_churn_subscription, refund_handling, proximate_movement_reclassification. Example: churn_recognition,refund_handling
chartmogul_activities_list
List activities
chartmogul_contact_create
Create contact
chartmogul_contact_delete
Delete contact
chartmogul_contact_update
Update contact
chartmogul_contacts_list
List contacts
chartmogul_contacts_merge
Merge contacts
chartmogul_customer_attributes_get
Get customer attributes
chartmogul_customer_custom_attributes_add
Add customer custom attributes
chartmogul_customer_custom_attributes_update
Update customer custom attributes
chartmogul_customer_invoices_list
List customer invoices
chartmogul_customers_list
List customers
chartmogul_customers_merge
Merge customers
chartmogul_customers_search_by_email
Customers search by email
chartmogul_invoice_get
Get invoice
chartmogul_metrics_arpa_get
Get metrics arpa
chartmogul_metrics_customer_churn_rate_get
Get metrics customer churn rate
chartmogul_metrics_ltv_get
Get metrics ltv
chartmogul_metrics_mrr_get
Get metrics mrr
chartmogul_note_create
Create note
chartmogul_note_delete
Delete note
chartmogul_note_update
Update note
chartmogul_notes_list
List notes
chartmogul_plan_create
Create plan
chartmogul_plan_get
Get plan
chartmogul_plan_group_plans_list
List plan group plans
chartmogul_plan_update
Update plan
chartmogul_plans_list
List plans
chartmogul_subscription_event_create
Create subscription event
chartmogul_subscription_events_list
List subscription events

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// ChartMogul tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["chartmogul"], toolNames: [
    "chartmogul_metrics_mrr_get",
    "chartmogul_metrics_customer_churn_rate_get",
    "chartmogul_customers_search_by_email"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Show MRR for the last 6 months, the customer churn rate, and look up the customer with this email" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["chartmogul"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Show MRR for the last 6 months, the customer churn rate, and look up the customer with this email" }],
  tools,
});

// Execute the tool call with the user's vaulted ChartMogul API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["chartmogul"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Show MRR for the last 6 months, the customer churn rate, and look up the customer with this email" }],
  tools,
});

// Tool call runs with the user's vaulted ChartMogul API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["chartmogul"] }, pageSize: 100,
});

const agent = new Agent({
  name: "saas_metrics_agent",
  model: "gemini-2.5-pro",
  instruction: "ChartMogul tools scoped to this user",
  tools,
});

await agent.run("Show MRR for the last 6 months, the customer churn rate, and look up the customer with this email");
Try these prompts
Copy any prompt into your agent. Each maps directly to a ChartMogul tool. Click to copy, paste into your agent, done.
SaaS metrics
Copy the prompt
Copied
Show MRR with its movement breakdown for the last 6 months.
Copy the prompt
Copied
What is our customer churn rate by plan this year?
Copy the prompt
Copied
Get ARR and LTV for customers in Germany.
Customers and revenue
Copy the prompt
Copied
Find the customer with this email.
Copy the prompt
Copied
List the subscriptions and MRR activities for this customer.
Copy the prompt
Copied
Show the invoices imported for this customer.
Notes, tasks, and opportunities
Copy the prompt
Copied
Add a call note to this customer.
Copy the prompt
Copied
Create a task for the account owner to review this churn risk.
Copy the prompt
Copied
Create an opportunity for this customer in the expansion pipeline.
SEE HOW AUTH WORKS
Each user connects their own ChartMogul API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
ChartMogul
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
ChartMogul
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
ChartMogul
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
ChartMogul
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other analytics and CRM connectors.
GTM and RevOps Teams
Revenue forecast commentary
Pulls open pipeline from Salesforce and HubSpot, calculates coverage against quota, flags at-risk stages, posts commentary to Slack, and logs every snapshot to Google Sheets.
GTM and RevOps Teams
Deal intelligence agent
Pulls recent Gong calls, scores deal risk with an LLM, cross-references the record in Attio, and DMs each owner their at-risk deals in Slack. Every read is scoped to that rep's own access.
Test other agents
See the same per-user auth pattern across other analytics and CRM connectors.
GTM
Revenue forecast agent
Score pipeline coverage against quota across Salesforce and HubSpot, post forecast commentary to Slack, log snapshots to Sheets.
SALES
Deal intelligence agent
Score Gong call risk with an LLM, cross-reference the Attio record, and DM each owner their at-risk deals in Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared ChartMogul API key looks fine in a demo. In production every customer change and deletion looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
ChartMogul today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access ChartMogul as the user or through a shared key?
As the user. Each user connects their own ChartMogul API key once, and Scalekit sends it with every call. Audit logs attribute every customer change and deletion to that user, not a shared service account.
Where is the ChartMogul API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in ChartMogul?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the metrics and list tools without chartmogul_customer_delete, which deletes an API-imported customer with all its invoices, subscriptions, and transactions, or chartmogul_customers_merge. Scalekit also enforces scope checks before every API call.
What happens when a user revokes ChartMogul access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Which ChartMogul metrics can the agent read?
MRR, ARR, ARPA, ASP, customer count, customer churn rate, net MRR churn rate, and LTV, each for a date range and optionally by country, plan, or filter. chartmogul_metrics_all_get returns every key SaaS metric in one call.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""chartmogul"": {
""url"": ""https://mcp.scalekit.com/chartmogul"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.chartmogul]
url = ""https://mcp.scalekit.com/chartmogul""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""chartmogul"": {
""url"": ""https://mcp.scalekit.com/chartmogul"",
""type"": ""http""
}
}
}