How to let Claude read your analytics with MCP
To let Claude read your analytics, connect an MCP server that has access to your numbers. In the Claude apps, add it as a custom connector with the server's URL and sign in. In Claude Code, run claude mcp add --transport http <name> <url> and sign in with /mcp (or pass a token header). Then ask in plain language, like "which pages brought the most signups this week?", and Claude calls the server's tools to answer.
This works with any analytics or revenue tool that offers an MCP server. The steps below are general, with one worked example.
What an analytics MCP server gives Claude
An MCP server is a program that offers Claude a set of tools. For analytics, each tool answers one kind of question: visitors over a period, top pages, traffic sources, revenue, search queries. Claude picks the tools a question needs, calls them, and writes the answer from what they return.
That turns "open three dashboards and compare" into one question. It also means the numbers come from the tool, not from Claude's memory, as long as you ask it to show where each number came from.
In the Claude apps
- Find the MCP server URL in your analytics tool's docs. It usually ends in
/mcp. - In Claude, add a custom connector and paste the URL.
- Sign in when asked. Many remote servers use OAuth: you approve access on the tool's own page, and you can revoke it there later.
- Turn the connector on in a chat and ask a question.
In Claude Code
Claude Code's docs recommend HTTP for remote MCP servers. Add one with:
claude mcp add --transport http analytics https://example.com/mcpIf the server uses OAuth, run /mcp inside Claude Code, pick the server and sign in. If it uses a personal token instead, pass it as a header:
claude mcp add --transport http analytics https://example.com/mcp \
--header "Authorization: Bearer YOUR_TOKEN"Servers are added to the current project by default (local scope). Add --scope user to have it in every project, or --scope project to share it with your team through .mcp.json. Run /mcp to check the server shows as connected.
A worked example: Appsdash
Appsdash runs a remote MCP server at https://appsdash.co/mcp with 23 read-only tools across every app in your account: list_sites and overview for all apps at once, top_pages and top_sources for traffic, revenue, revenue_by_source and revenue_metrics for money, search for Google Search Console, plus funnels, signups, uptime and profit.
Claude and ChatGPT connect with OAuth; revoking the connection in Appsdash stops it on the next call. Other clients, Claude Code included, use a personal token sent as a Bearer header; the token is shown once and stored only as a hash.
claude mcp add --transport http appsdash https://appsdash.co/mcp \
--header "Authorization: Bearer YOUR_APPSDASH_TOKEN"Start with "list my sites", then ask across them. Money comes back in US dollars, and most traffic, revenue and search answers include the period before, so Claude can say "up 12%" without guessing.
Questions worth asking
- "Which of my apps grew this week, and which traffic source drove it?"
- "Where did the revenue come from in the last 30 days, by source?"
- "Which Google queries sit at positions 8 to 20 for this site?" (pages close to page one)
- "Was anything down this week, and did sales drop at the same time?"
- "Compare this month's MRR movements with last month's."
Ask for the numbers alongside the conclusion. If an answer looks wrong, ask which tool and date range it used; that's usually where the mistake is.
Keep it safe
- Read-only tools. An analytics assistant has no reason to write or delete anything.
- OAuth or revocable tokens. You should be able to cut access in one click without rotating your real API keys.
- No secrets in chat. The MCP server holds the connections to Stripe or your database; Claude only sees tool results.
- Project scope for shared repos. A server in
.mcp.jsonis shared with everyone who clones the project, so keep tokens in environment variables, not in the file.
Questions
What is MCP?
The Model Context Protocol is an open-source standard for connecting AI applications to external systems. A server exposes tools; a client such as Claude, Claude Code or ChatGPT calls them during a conversation.
Does Claude see my raw analytics data?
Claude sees what the tools return for each question, such as a list of top pages or a revenue total, not your whole database. What a tool returns is up to the server.
Can I use a local MCP server instead?
Yes. Claude Code also runs local servers over stdio with claude mcp add --transport stdio <name> -- <command>. Remote HTTP servers are simpler for hosted analytics tools because there's nothing to run yourself.