Developer reference

The Chartsy MCP server reference

  • Hosted, streamable HTTP, nothing to run
  • OAuth 2.1 with dynamic registration, or a token
  • 19 read-only tools, IDs instead of names
Tool reference

The Chartsy MCP server gives any MCP client read-only access to SaaS revenue, MRR, churn, refunds and site traffic from Stripe, Paddle, Polar, Lemon Squeezy, Creem or Freemius. Last updated October 2026.

Chartsy MCP server
Endpoint   https://mcp.chartsy.app/mcp
Transport  Streamable HTTP
Auth       OAuth 2.1, PKCE (S256), DCR
           or a personal Bearer token
Scope      chartsy:read
           (+ openid, email for OIDC)
Tools      19, all read-only
Connect

How do I connect an MCP client to Chartsy?

Pick by what your client supports. Step-by-step guides for each agent are on Chartsy for AI agents.

OAuth sign-in

For clients with a browser: Claude, ChatGPT, Cursor, VS Code, Codex and most others. Add the URL; the client discovers the authorization server from the 401, registers itself and opens the Chartsy sign-in. Scope: chartsy:read.

Server URL
https://mcp.chartsy.app/mcp

Personal token

For agents without a browser: servers, schedulers, CI. Generate one in Chartsy → Settings → Claude & MCP. It lasts a year and is shown once. Keep it in an environment variable or secret store.

Header
Authorization: Bearer <your-chartsy-token>

stdio bridge

For clients that only launch local servers, run mcp-remote. It handles the OAuth sign-in, or passes a token header.

Command
npx -y mcp-remote https://mcp.chartsy.app/mcp

Check a token from the terminal

An initialize request answers with the server's capabilities. Without a valid token you get 401 and a WWW-Authenticate header pointing to the resource metadata.

Terminal
curl https://mcp.chartsy.app/mcp \
  -H "Authorization: Bearer $CHARTSY_MCP_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-06-18",
      "capabilities": {},
      "clientInfo": {"name": "test", "version": "1"}
    }}'

mcp-remote in a client config, with a token

Put the token in env and keep no spaces around the colon in the header argument; some clients split arguments on spaces. For the OAuth sign-in instead, leave out --header and env.

mcp.json
{
  "mcpServers": {
    "chartsy": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://mcp.chartsy.app/mcp",
        "--header", "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer <your-chartsy-token>"
      }
    }
  }
}
Authentication

How does Chartsy MCP authentication work?

Most clients handle it for you: they find the sign-in details from the server's first response.

  • Sign-in: any MCP client that supports OAuth opens a Chartsy login and handles the rest. No API key, no client ID.
  • No browser? Agents on a server, in CI or in automations use a personal token from Chartsy → Settings → Claude & MCP, sent as Authorization: Bearer <token>. It lasts a year.
  • Revoke any time in Chartsy → Settings → Claude & MCP. It takes effect on the next call.

Building your own client? Endpoints, scopes, redirect URIs and token lifetimes are in the MCP reference: OAuth details.

Tools

What are the 19 Chartsy MCP tools?

All tools are annotated readOnlyHint: true. Required arguments are bare; name=value shows a default; name? is optional.

Revenue

ToolArgumentsReturns
get_mrraccount_id?Current monthly recurring revenue
get_mrr_by_planperiods=12 granularity=month account_id?MRR and paying customers per plan, per month (up to 36 months)
get_mrr_by_countrytop_k=20 account_id?Current MRR and paying customers per country
get_revenue_breakdownstart_date end_date by=plan account_id?Revenue over a date range, grouped by plan, country or payment method
get_refund_summarystart_date? end_date? account_id?Refund totals and refund ratio by plan
get_goal_progressaccount_id?Your goals, each with its current value, percent progress, deadline and status

Customers & churn

ToolArgumentsReturns
get_churn_ratestart_date end_date granularity=month account_id?Churn rate per day, week, month, quarter or year
get_new_subscribersstart_date end_date granularity=month account_id?New subscribers per period
list_at_risk_customersaccount_id?Customers with 2+ failed payments this quarter, and paused subscriptions
list_top_customerstop_k=10 account_id?Top customers by lifetime revenue
get_customer_concentrationtop_k=10 account_id?Share of MRR coming from your top K customers

Site traffic

ToolArgumentsReturns
list_tracked_sitesNoneThe sites you track with Chartsy
get_site_trafficstart_date end_date granularity=day site_id?Visits, unique visitors and signups per period
get_traffic_sourcesstart_date end_date by=source site_id?Traffic by source, medium, campaign, country, referrer or landing page, with signup rates
get_monthly_events_usageNoneThis month's tracked events against your plan limit

Marketing & attribution

ToolArgumentsReturns
get_revenue_by_sourcestart_date end_date by=source site_id? touch=lastPaying customers, current MRR, churn and retention per source, medium, campaign or post, with first- or last-touch attribution

Everything at once

ToolArgumentsReturns
get_business_snapshotmonths=12 site_id? account_id?The whole business review in one call, with derived warnings
get_daily_snapshotdate? site_id? account_id?A single day against the previous day and the trailing 7-day average
list_accountsNoneThe Chartsy accounts this login can read
  • Dates are YYYY-MM-DD, and both start_date and end_date are included. Pass the same date twice for a single day.
  • granularity is day, week, month, quarter or year (get_site_traffic: day, week or month). get_mrr_by_plan caps periods at 36 months or 104 weeks.
  • by: plan, country or payment_method for revenue; source, medium, campaign, country, referrer or landing_path for traffic.
  • account_id picks a payment-provider account. Without it, the server uses the account chosen when the client connected, or the only one. With several and none chosen, it asks for one.
  • site_id scopes traffic to one tracked site from list_tracked_sites; without it, all of the login's sites are read.
Responses

What do Chartsy MCP responses look like?

JSON objects, returned as structuredContent and as text. Customers appear as payment-processor IDs, never names or emails.

  • get_business_snapshot and get_daily_snapshot add a flags array: derived warnings, each {code, surface, severity, message}.
  • severity is critical, warning or info. For alerts, skip info: it covers normal events such as a single refund or a quiet day.
  • surface is report for findings about the business. internal flags a Chartsy data inconsistency; don't show it to users.
  • Daily figures come with the previous day and the trailing 7-day average. traffic is null when the login tracks no sites.
get_daily_snapshot (excerpt)
"flags": [
  {
    "code": "cancellations",
    "surface": "report",
    "severity": "warning",
    "message": "2 subscription(s) were cancelled on 2026-10-12 ..."
  },
  {
    "code": "refunds_recorded",
    "surface": "report",
    "severity": "info",
    "message": "1 refund(s) totalling 49.00 were ..."
  }
]
Limits and errors

How are tool calls counted, and what errors can they return?

Each tool call that reaches your data uses one ChartsyAI question from the plan's monthly allowance, the same budget as questions asked inside Chartsy. Calls that fail there count too; malformed dates and rejected tokens don't.

Error textWhat to do
This Chartsy login has no connected payment provider yet, so there is no revenue data to read.Connect a payment provider in Chartsy and let the first sync finish. The demo data added at signup doesn't count.
This Chartsy login has N accounts, so account_id is required. Call list_accounts for details, or pass one of: …Pass account_id. The message lists the valid ids.
No Chartsy account with id N on this login. Available: …The id isn't one of this login's accounts. Use one from the list.
You've used all N ChartsyAI questions included in your plan this month. Upgrade your plan for more.The monthly allowance is spent. It resets on the 1st of the month.
start_date must be a date in YYYY-MM-DD format, got …Fix the date. Date-format errors name the field and aren't counted.
by must be one of: plan, country, payment_methodFix the argument. These are checked against your data, so they count.
Chartsy could not complete <tool> - the failure has been logged.A server-side failure. Retry; if it persists, contact support@chartsy.app.

Errors come back as MCP tool errors with the text above, so agents can show them as they are. Broad questions stay cheap: one get_business_snapshot call replaces a dozen small ones.

Setup guides

Which MCP clients have a Chartsy setup guide?

Each guide is checked against the client's current docs. The skill and plugin manifests are on GitHub.

FAQ

Chartsy MCP server: frequently asked questions

For end users, see the Chartsy MCP help guide. Anything else: support@chartsy.app.

What is the Chartsy MCP server URL?

https://mcp.chartsy.app/mcp, over streamable HTTP. Clients sign in with OAuth 2.1 (PKCE and dynamic client registration), or send a personal token as an Authorization: Bearer header.

Do I need to register an OAuth client?

No. Clients register themselves at https://dashboard.chartsy.app/o/register (RFC 7591). Every client is public, uses PKCE with S256, and gets an authorization code, so there is no client secret. Redirect URIs can be https, or http on 127.0.0.1, localhost or [::1] with any port.

How long do tokens last?

OAuth access tokens last an hour. Refresh tokens rotate on every use and expire after 90 days without one. Personal tokens from Chartsy → Settings → Claude & MCP last a year, and any token can be revoked there at once.

How is MCP usage counted?

Each tool call that reaches your data counts as one ChartsyAI question from your plan's monthly allowance, including calls that fail there. Malformed dates and rejected tokens don't count. Free trials get the smallest paid plan's allowance.

Can a token read someone else's data?

No. Every call is filtered to the active accounts and tracked sites the authorizing login owns, and access is checked on every call, so a revoked token or lapsed subscription stops working at once.

Does the server support stdio clients?

Not directly: it's a remote server. Clients that only run local servers can use the mcp-remote bridge: npx -y mcp-remote https://mcp.chartsy.app/mcp, adding a --header for a token if the client can't open a browser.

Where are the Chartsy skill and plugin?

In the chartsy-agent repository (https://github.com/sprifti/chartsy-agent): a skill that tells agents which tool answers which question, plus plugin and extension manifests for Claude Code, Codex and Gemini CLI.

Connect your agent to real revenue data

Start a free trial, connect your payment provider, and point any MCP client at the server.

Start free trial

Product names are trademarks of their owners, used only to say what Chartsy works with. Chartsy isn't affiliated with or endorsed by them.

Ministry of Economy and Innovation
Startup Albania

The Chartsy program is realized with the financial support of the Albanian Government through the Ministry of Economy and Innovation, under the Grant 2026 scheme, and is implemented by the Innovation4Albania Agency.