{
  "markdown": "# Plausible Analytics MCP Server\n\nMCP server for [Plausible Analytics](https://plausible.io/) — privacy-friendly web analytics. Query traffic, conversions, sources, and device breakdowns from any MCP-compatible AI assistant.\n\n## Features\n\n- **Flexible stats queries** — metrics, dimensions, filters, date ranges\n- **Real-time visitors** — live visitor count\n- **Traffic breakdowns** — sources, countries, browsers, UTM campaigns\n- **Time-series data** — daily, weekly, monthly, hourly intervals\n- **Custom events** — event tracking and conversion rates\n- **Entry/exit pages** — where visitors land and leave\n- **Device analytics** — browser, OS, screen size breakdowns\n- **Goal tracking** — conversion stats for all configured goals\n- **Site management** — list and inspect sites\n\n## 12 Tools\n\n| Tool | Description |\n|------|-------------|\n| `query_stats` | Full flexible stats query (the main endpoint) |\n| `realtime_visitors` | Current real-time visitor count |\n| `get_breakdown` | Breakdown by any dimension (source, page, country, etc.) |\n| `get_timeseries` | Metrics over time with configurable intervals |\n| `list_sites` | List all sites in your account |\n| `get_site` | Get site details |\n| `get_custom_events` | Custom event breakdown |\n| `get_entry_pages` | Top landing pages |\n| `get_exit_pages` | Top exit pages |\n| `get_utm_stats` | UTM campaign/source/medium breakdowns |\n| `get_device_stats` | Browser, OS, screen size breakdowns |\n| `get_goals` | Conversion stats for all goals |\n\n## Setup\n\n### Prerequisites\n\n1. A [Plausible Analytics](https://plausible.io/) account (cloud or self-hosted)\n2. An API key — generate one at **Site Settings → API Keys** in your Plausible dashboard\n\n### Configuration\n\nAdd to your MCP client config (e.g. Claude Desktop, Cursor):\n\n```json\n{\n  \"mcpServers\": {\n    \"plausible\": {\n      \"command\": \"node\",\n      \"args\": [\"/path/to/plausible-mcp-server/dist/index.js\"],\n      \"env\": {\n        \"PLAUSIBLE_API_KEY\": \"your-api-key-here\"\n      }\n    }\n  }\n}\n```\n\nFor self-hosted Plausible, also set:\n\n```json\n\"env\": {\n  \"PLAUSIBLE_API_KEY\": \"your-api-key\",\n  \"PLAUSIBLE_API_BASE\": \"https://your-plausible-instance.com\"\n}\n```\n\n### Build from source\n\n```bash\ngit clone https://github.com/friendlygeorge/plausible-mcp-server.git\ncd plausible-mcp-server\nnpm install\nnpx tsc\n```\n\n## Usage Examples\n\nOnce configured, ask your AI assistant:\n\n- \"Show me the top traffic sources for my site this month\"\n- \"How many visitors did I get today?\"\n- \"What's the time-series of pageviews for the last 30 days?\"\n- \"Which pages have the highest bounce rate?\"\n- \"Show me UTM campaign performance\"\n- \"What are my top entry pages?\"\n- \"Show conversion rates for all goals\"\n- \"Break down visitors by country for the last week\"\n\n## Environment Variables\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `PLAUSIBLE_API_KEY` | Yes | — | Your Plausible API key |\n| `PLAUSIBLE_API_BASE` | No | `https://plausible.io` | API base URL (change for self-hosted) |\n\n## Supported Metrics\n\n`visitors`, `visits`, `pageviews`, `views_per_visit`, `visit_duration`, `events`, `bounce_rate`, `scroll_depth`, `conversion_rate`\n\n## Supported Dimensions\n\n`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>`\n\n## License\n\nMIT\n",
  "bytes": 3583,
  "sha": "462b0d19d31e59efe2bce8568393c083cb36d6cadc02b0525a803f259da1fdbe",
  "repo_slug": "friendlygeorge/plausible-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_friendlygeorge_plausible_mcp_s_50e5972b/readme"
}