Connects Claude to Plausible Analytics, the privacy-focused web analytics platform. Exposes 12 tools including real-time visitor counts, traffic breakdowns by source and country, time-series queries with configurable intervals, UTM campaign tracking, entry and exit page analysis, device and browser stats, and goal conversion metrics. You can query the full stats API with custom filters and date ranges, or use the specialized tools for common analytics questions. Works with both Plausible Cloud and self-hosted instances. Requires a Plausible API key from your account settings. Reach for this when you want to analyze site traffic, debug marketing campaigns, or track conversions without leaving your Claude conversation.
MCP server for Plausible Analytics — privacy-friendly web analytics. Query traffic, conversions, sources, and device breakdowns from any MCP-compatible AI assistant.
| Tool | Description |
|---|---|
query_stats | Full flexible stats query (the main endpoint) |
realtime_visitors | Current real-time visitor count |
get_breakdown | Breakdown by any dimension (source, page, country, etc.) |
get_timeseries | Metrics over time with configurable intervals |
list_sites | List all sites in your account |
get_site | Get site details |
get_custom_events | Custom event breakdown |
get_entry_pages | Top landing pages |
get_exit_pages | Top exit pages |
get_utm_stats | UTM campaign/source/medium breakdowns |
get_device_stats | Browser, OS, screen size breakdowns |
get_goals | Conversion stats for all goals |
Add to your MCP client config (e.g. Claude Desktop, Cursor):
{
"mcpServers": {
"plausible": {
"command": "node",
"args": ["/path/to/plausible-mcp-server/dist/index.js"],
"env": {
"PLAUSIBLE_API_KEY": "your-api-key-here"
}
}
}
}
For self-hosted Plausible, also set:
"env": {
"PLAUSIBLE_API_KEY": "your-api-key",
"PLAUSIBLE_API_BASE": "https://your-plausible-instance.com"
}
git clone https://github.com/friendlygeorge/plausible-mcp-server.git
cd plausible-mcp-server
npm install
npx tsc
Once configured, ask your AI assistant:
| Variable | Required | Default | Description |
|---|---|---|---|
PLAUSIBLE_API_KEY | Yes | — | Your Plausible API key |
PLAUSIBLE_API_BASE | No | https://plausible.io | API base URL (change for self-hosted) |
visitors, visits, pageviews, views_per_visit, visit_duration, events, bounce_rate, scroll_depth, conversion_rate
visit:source, visit:referrer, visit:utm_source, visit:utm_medium, visit:utm_campaign, visit:utm_content, visit:utm_term, visit:country_name, visit:city_name, visit:screen, visit:browser, visit:browser_version, visit:os, visit:os_version, visit:entry_page, visit:exit_page, event:page, event:name, event:goal, event:props:<key>
MIT
io.github.infoinlet-marketplace/mcp-observability
betterdb-inc/monitor
com.mcparmory/datadog
thotischner/observability-mcp
io.github.tantiope/datadog-mcp
io.github.us-all/datadog