{
  "markdown": "# Statable MCP server\n\n[![npm](https://img.shields.io/npm/v/%40statable%2Fmcp)](https://www.npmjs.com/package/@statable/mcp)\n\nAsk your AI assistant about your website traffic. This package connects Claude, Cursor, ChatGPT, Claude Desktop and any other [MCP](https://modelcontextprotocol.io) client to [Statable](https://statable.com), a privacy-first, cookieless web analytics service hosted in the EU.\n\nIt is a thin stdio bridge to the hosted Statable MCP endpoint (`https://mcp.statable.com/mcp`). Every tool call is forwarded there with your API key. Nothing is stored locally.\n\n## Which way to connect\n\n| Your client | Use |\n| --- | --- |\n| Claude Code, Cursor, ChatGPT, Codex and other clients with OAuth support | Connect **directly** to `https://mcp.statable.com/mcp` and sign in in the browser. No key, no package. See the [docs](https://statable.com/docs/integrations/mcp/). |\n| Claude Desktop, hosts that only run local stdio servers, CI scripts, sandboxes | **This package** with an API key. |\n\n## Quick start\n\n1. In the Statable dashboard open **Settings → API keys → Create API key**. Keys start with `stbl_`. Pick the sites and permissions the assistant may use.\n2. Add the server to your client. Claude Desktop (`claude_desktop_config.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"statable\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@statable/mcp\"],\n      \"env\": { \"STATABLE_API_KEY\": \"stbl_your_key\" }\n    }\n  }\n}\n```\n\nCursor (`~/.cursor/mcp.json`) and most other hosts accept the same shape.\n\nClaude Code:\n\n```bash\nclaude mcp add statable --scope user -e STATABLE_API_KEY=stbl_your_key -- npx -y @statable/mcp\n```\n\n3. Ask: *\"How many visitors did example.com have last week, and where did they come from?\"*\n\n## Tools (25)\n\n**Read**: `list_sites`, `query_stats`, `top_pages`, `top_sources`, `top_countries`, `top_custom_events`, `top_goals`, `list_goals`, `list_prop_keys`, `list_funnels`, `funnel_report`, `current_visitors`, `visitors_over_time`, `get_tracking_snippet`, `get_site_filters`, `get_subscription`\n\n**Set up**: `create_site`, `update_site`, `create_goal`, `update_goal`, `create_funnel`, `update_funnel`, `get_tracking_settings`, `update_tracking_settings`, `update_site_filters`\n\n`query_stats` is the general one: aggregates, time series or a top-N breakdown over any metric (visitors, pageviews, bounce rate, engagement, goals, exit rate…), any dimension (source, page, country, device, UTM, custom event property…) and filters, with period-over-period comparison. All numbers come back in the site's own timezone. Full reference: [statable.com/docs/integrations/mcp](https://statable.com/docs/integrations/mcp/).\n\nWrite tools only touch configuration (sites, goals, funnels, tracking features, filters). Nothing deletes data.\n\n## Configuration\n\n| Setting | Env | Flag | Default |\n| --- | --- | --- | --- |\n| API key | `STATABLE_API_KEY` | `--api-key` | none |\n| Remote endpoint | `STATABLE_MCP_URL` | `--url` | `https://mcp.statable.com/mcp` |\n\nWithout a key the server still starts and advertises its tools (so registries and hosts can inspect it), but every call returns a short message explaining how to add one.\n\n## Run from source\n\n```bash\ngit clone https://github.com/key-arg/statable-mcp.git\ncd statable-mcp\nnpm install\nSTATABLE_API_KEY=stbl_your_key npm test\n```\n\nDocker:\n\n```bash\ndocker build -t statable-mcp .\ndocker run -i --rm -e STATABLE_API_KEY=stbl_your_key statable-mcp\n```\n\n## About Statable\n\n[Statable](https://statable.com) is cookieless web analytics built for the EU: no consent banner needed for the core tracker, data hosted in the Netherlands, a tracker between 0.5 and 2 KB, goals, funnels, custom events, a public Stats API and this MCP server. Free tier for personal, educational and open-source sites.\n\nSupport: support@statable.com · Registry: `com.statable/analytics` in the [official MCP registry](https://registry.modelcontextprotocol.io/v0.1/servers/com.statable%2Fanalytics/versions/latest)\n\nMIT © Key Arg B.V.\n",
  "bytes": 3981,
  "sha": "5e60eada5c9ae451b128a7dd5d5a3f708b49d31f01ec9a7ca5ede717ca75d9af",
  "repo_slug": "key-arg/statable-mcp",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_com_statable_analytics_6f605fe3/readme"
}