Analytics MCP server
{
"mcpServers": {
"statable": {
"command": "npx",
"args": [
"-y",
"@statable/mcp@latest"
],
"env": {
"STATABLE_API_KEY": "<statable_api_key>",
"STATABLE_MCP_URL": "https://..."
}
}
}
}{
"mcpServers": {
"statable": {
"command": "npx",
"args": [
"-y",
"@statable/mcp@latest"
],
"env": {
"STATABLE_API_KEY": "<statable_api_key>",
"STATABLE_MCP_URL": "https://..."
}
}
}
}{
"mcpServers": {
"statable": {
"command": "npx",
"args": [
"-y",
"@statable/mcp@latest"
],
"env": {
"STATABLE_API_KEY": "<statable_api_key>",
"STATABLE_MCP_URL": "https://..."
}
}
}
}{
"servers": {
"statable": {
"command": "npx",
"args": [
"-y",
"@statable/mcp@latest"
],
"env": {
"STATABLE_API_KEY": "${input:statable_api_key}",
"STATABLE_MCP_URL": "${input:statable_mcp_url}"
}
}
},
"inputs": [
{
"id": "statable_api_key",
"type": "promptString",
"description": "Statable api key",
"password": true
},
{
"id": "statable_mcp_url",
"type": "promptString",
"description": "Statable mcp url",
"password": true
}
]
}{
"mcpServers": {
"statable": {
"command": "npx",
"args": [
"-y",
"@statable/mcp@latest"
],
"env": {
"STATABLE_API_KEY": "<statable_api_key>",
"STATABLE_MCP_URL": "https://..."
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @statable/mcpversion 0.1.0
What it does
This server connects Claude, Cursor, ChatGPT and other MCP clients to Statable, a privacy-first web analytics service. It provides access to traffic data, visitor sources, pages, goals, funnels and site configuration through 25 tools.
- Query visitor counts, traffic sources, and page performance for your website over any time period.
- Set up and manage goals, funnels, and custom events to track specific user behaviors.
- Monitor current active visitors and compare metrics period-over-period across different dimensions like country, device, or UTM parameters.
Tools this server exposes
| Tool | Does |
|---|---|
| query_stats | Aggregate, time series or top-N breakdown of any metric (visitors, pageviews, bounce rate, goals, etc.) over any dimension (source, page, country, device, UTM, |
| list_sites | List all sites accessible with your API key. |
| top_pages | Get the most visited pages for a site. |
| top_sources | Get the top traffic sources for a site. |
| top_countries | Get the top countries by visitor count. |
| top_custom_events | Get the top custom events tracked on a site. |
| top_goals | Get the top goals by conversion count. |
| list_goals | List all goals configured for a site. |
| list_funnels | List all funnels configured for a site. |
| funnel_report | Get conversion data for a specific funnel. |
| current_visitors | Get the count of currently active visitors on a site. |
| visitors_over_time | Get visitor counts over time for a specified period. |
| list_prop_keys | List available custom event property keys for a site. |
| get_tracking_snippet | Retrieve the tracking code snippet for a site. |
| get_site_filters | Get the configured filters for a site. |
| get_subscription | Get subscription details and plan information. |
| create_site | Create a new site in Statable. |
| update_site | Update configuration settings for an existing site. |
| create_goal | Create a new goal to track on a site. |
| update_goal | Update an existing goal configuration. |
| create_funnel | Create a new funnel to track conversion steps. |
| update_funnel | Update an existing funnel configuration. |
| get_tracking_settings | Get tracking feature settings for a site. |
| update_tracking_settings | Update tracking features and settings for a site. |
| update_site_filters | Update filters applied to a site's analytics data. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.