{"id":50834312,"url":"https://github.com/friendlygeorge/plausible-mcp-server","last_synced_at":"2026-06-14T02:11:10.643Z","repository":{"id":362904138,"uuid":"1260989794","full_name":"friendlygeorge/plausible-mcp-server","owner":"friendlygeorge","description":"MCP server for Plausible Analytics — privacy-friendly web analytics. 12 tools for traffic, conversions, sources, and device breakdowns.","archived":false,"fork":false,"pushed_at":"2026-06-06T13:06:21.000Z","size":8069,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-06T14:12:09.948Z","etag":null,"topics":["ai","ai-tools","analytics","api","llm","mcp","model-context-protocol","plausible","privacy","typescript","web-analytics"],"latest_commit_sha":null,"homepage":"https://github.com/friendlygeorge/plausible-mcp-server#readme","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/friendlygeorge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-06T05:22:49.000Z","updated_at":"2026-06-06T13:26:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/friendlygeorge/plausible-mcp-server","commit_stats":null,"previous_names":["friendlygeorge/plausible-mcp-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/friendlygeorge/plausible-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlygeorge%2Fplausible-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlygeorge%2Fplausible-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlygeorge%2Fplausible-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlygeorge%2Fplausible-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friendlygeorge","download_url":"https://codeload.github.com/friendlygeorge/plausible-mcp-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlygeorge%2Fplausible-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34306816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-tools","analytics","api","llm","mcp","model-context-protocol","plausible","privacy","typescript","web-analytics"],"created_at":"2026-06-14T02:11:06.919Z","updated_at":"2026-06-14T02:11:10.637Z","avatar_url":"https://github.com/friendlygeorge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 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:\u003ckey\u003e`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlygeorge%2Fplausible-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendlygeorge%2Fplausible-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlygeorge%2Fplausible-mcp-server/lists"}