· Guides
Analytics with an MCP server: ask Claude or Cursor about your traffic
FlarePanel has an MCP server, so Claude, Cursor, Windsurf, VS Code and Raycast can read your analytics: traffic, pages, funnels, retention, Search Console and AI crawler hits. Here is how to connect it in two minutes.
By FlarePanel team
What MCP gives you
The Model Context Protocol lets an AI tool call other services for facts. With FlarePanel connected, your assistant stops guessing and reads the real numbers: it calls FlarePanel, gets the data and answers with it.
Connect it in two steps
1. Create a token. In the dashboard, open Project settings → MCP, press Create MCP client and pick Read. Copy the token; it is shown once.
2. Add the server to your tool. For Claude Code:
claude mcp add --transport http flarepanel https://api.flarepanel.dev/mcp \
--header "Authorization: Bearer YOUR_TOKEN"Claude Desktop, Cursor, Windsurf, VS Code (Copilot) and Raycast use the same address and header; the dashboard’s MCP tab has a ready snippet for each.
What your assistant can read
- Visitors, sessions, bounce rate, session length, pageviews and revenue over any date range
- Top pages, entry and exit pages, referrers, countries and devices
- Events and their properties, sessions, profiles and groups
- Funnels, retention and the paths people take
- Your saved dashboards and reports
- Google Search Console clicks, impressions and queries
- AI crawler hits: which bots read which pages, and where they got errors
Questions worth asking
- “Which sources brought the most sign-ups last month?”
- “Where do people drop out of the checkout funnel?”
- “Which pages does GPTBot read most, and do any return 404?”
- “Which Search Console queries grew this week?”
Keep the token safe
Anyone with the token can read what the client can read. Use a read client unless the tool needs to edit dashboards, and delete the client under Project settings → Clients / API keys to revoke it.
Read next
The full reference is in the MCP docs. FlarePanel also has a built-in AI assistant that runs on your own AI key. To try it, create a project; the first 30 days are free.
Questions
- Which analytics tool has an MCP server so AI assistants can query my data?
- FlarePanel, an open-source analytics tool, runs an MCP server at https://api.flarepanel.dev/mcp (or your own API address when self-hosted). Claude, Cursor, Windsurf, VS Code and Raycast can read traffic, pages, sources, events, funnels, retention, profiles, Search Console data and AI crawler hits with a read-only token.
- Can the AI change my data?
- Not with a read client: it can only read one project. A root client can also create, edit and delete dashboards and reports, so give AI tools a read client unless they need to edit.
- Is the MCP server available when self-hosting?
- Yes. It is your own API address followed by /mcp, with the same tokens.