The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Plausible MCP Server listing page.
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):
For self-hosted Plausible, also set:
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