Your Firstlytics web and product analytics: reports, goals, funnels, users and custom SQL.
MCPpedia last refreshed this data
io.github.firstlytics/mcp is an MCP server that your Firstlytics web and product analytics: reports, goals, funnels, users and custom SQL. Its tool list has not been published yet over http and stdio, requires authentication to connect, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"firstlytics": {
"env": {
"FIRSTLYTICS_API_KEY": "fl_live_..."
},
"args": [
"-y",
"@firstlytics/mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Your Firstlytics web and product analytics: reports, goals, funnels, users and custom SQL.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @firstlytics/mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in analytics
MCP server that enables AI agents to perform comprehensive web audits using Google Lighthouse with 13+ tools for performance, accessibility, SEO, and security analysis.
Read and manage Churnkey cancel flows, retention metrics, and payment recovery
Full Datadog API access: monitors, logs, metrics, traces, dashboards, and observability tools
Query analytics, manage feature flags and experiments, and investigate errors in PostHog.
MCP Security Weekly
Get CVE alerts and security updates for io.github.firstlytics/mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Firstlytics is first-party web and product analytics: cookieless by default, with the tracker on your own domain. This is its Model Context Protocol server: Claude, Cursor and other AI assistants can answer questions such as "Where did last week's signups come from?" with your data, and manage your goals and funnels.
There are two ways to connect, with the same tools:
https://api.firstlytics.com/v1/mcp (Streamable HTTP), for clients that connect to remote
servers: Claude Code, Cursor, VS Code, Windsurf and others. Nothing to install.@firstlytics/mcp, over stdio, for clients that start local servers, such as Claude
Desktop: npx -y @firstlytics/mcp. It is a bridge to the hosted server, so its tools are always the
hosted server's.Both sign in with an organisation API key.
In Firstlytics, Organization settings → API keys → New key. The key's scopes decide what the assistant can do, and a key limited to some sites sees only those:
| Scope | Tools |
|---|---|
stats:read | reports (overview, timeseries, breakdowns, live, visits, events, errors, Web Vitals, journeys, goal conversions, funnel results) and custom SQL (run_query, get_query_schema: Scale plan) |
sites:read | list_sites, site settings, funnels, annotations, segments |
sites:write | creating, changing and deleting sites, goals and funnels |
members:read | list_members |
members:write | inviting people (not admins) and choosing which sites a member sees |
For an assistant that only reads reports, give it stats:read and sites:read. Add the write scopes only when
you want it to change things; it asks before deleting anything.
Replace fl_live_... with your key.
claude mcp add --transport http firstlytics https://api.firstlytics.com/v1/mcp \
--header "Authorization: Bearer fl_live_..."
Settings → Developer → Edit Config, then in claude_desktop_config.json:
{
"mcpServers": {
"firstlytics": {
"command": "npx",
"args": ["-y", "@firstlytics/mcp"],
"env": { "FIRSTLYTICS_API_KEY": "fl_live_..." }
}
}
}
Restart Claude Desktop after saving. It needs Node.js 20 or later.
In ~/.cursor/mcp.json (every project) or .cursor/mcp.json (one project):
{
"mcpServers": {
"firstlytics": {
"url": "https://api.firstlytics.com/v1/mcp",
"headers": { "Authorization": "Bearer fl_live_..." }
}
}
}
In .vscode/mcp.json; VS Code asks for the key the first time and keeps it:
{
"inputs": [
{ "type": "promptString", "id": "firstlytics-key", "description": "Firstlytics API key", "password": true }
],
"servers": {
"firstlytics": {
"type": "http",
"url": "https://api.firstlytics.com/v1/mcp",
"headers": { "Authorization": "Bearer ${input:firstlytics-key}" }
}
}
}
A client that connects to remote servers: https://api.firstlytics.com/v1/mcp, Streamable HTTP, with the header
Authorization: Bearer fl_live_....
A client that starts local servers: the command npx -y @firstlytics/mcp, with FIRSTLYTICS_API_KEY in its
environment.
| Tool | What it does |
|---|---|
list_sites, get_site | the sites the key sees, with visitors in the last 24 hours; one site's settings |
create_site, update_site_config, delete_site | add a site, change its settings, delete it |
get_overview, get_overview_timeseries | visitors, visits, page views, bounce rate, duration, over a period and over time |
get_breakdown | top pages, sources, countries, devices, events, properties ... |
get_live_stats | visitors now and in the last 30 minutes |
get_sessions, get_session | visits, and every event of one visit |
| `get_event |