npm plausible-mcp-serverstdioupdated 3mo ago
MCP server for Plausible Analytics — privacy-friendly web analytics. Query traffic, conversions, sources, and device breakdowns from any MCP-compatible AI assistant.
Dieses Repository wurde vom Eigentümer archiviert. Es funktioniert weiterhin, erhält aber keine Updates.
Was kannst du mit plausible mcp server machen?
Plausible Analytics MCP Server
MCP server for Plausible Analytics — privacy-friendly web analytics. Query traffic, conversions, sources, and device breakdowns from any MCP-compatible AI assistant.
Features
- Flexible stats queries — metrics, dimensions, filters, date ranges
- Real-time visitors — live visitor count
- Traffic breakdowns — sources, countries, browsers, UTM campaigns
- Time-series data — daily, weekly, monthly, hourly intervals
- Custom events — event tracking and conversion rates
- Entry/exit pages — where visitors land and leave
- Device analytics — browser, OS, screen size breakdowns
- Goal tracking — conversion stats for all configured goals
- Site management — list and inspect sites
12 Tools
| 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 |
Setup
Prerequisites
- A Plausible Analytics account (cloud or self-hosted)
- An API key — generate one at Site Settings → API Keys in your Plausible dashboard
Configuration
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"
}
Build from source
git clone https://github.com/friendlygeorge/plausible-mcp-server.git
cd plausible-mcp-server
npm install
npx tsc
Usage Examples
Once configured, ask your AI assistant:
- "Show me the top traffic sources for my site this month"
- "How many visitors did I get today?"
- "What's the time-series of pageviews for the last 30 days?"
- "Which pages have the highest bounce rate?"
- "Show me UTM campaign performance"
- "What are my top entry pages?"
- "Show conversion rates for all goals"
- "Break down visitors by country for the last week"
Environment Variables
| 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) |
Supported Metrics
visitors, visits, pageviews, views_per_visit, visit_duration, events, bounce_rate, scroll_depth, conversion_rate
Supported Dimensions
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>
License
MIT
Installation
plausible mcp server zu deinem Client hinzufügen. Wähl den, den du nutzt.
claude mcp add plausible-mcp-server -- npx -y plausible-mcp-servercodex mcp add plausible-mcp-server -- npx -y plausible-mcp-serveramp mcp add plausible-mcp-server -- npx -y plausible-mcp-server{
"mcpServers": {
"plausible-mcp-server": {
"command": "npx",
"args": [
"-y",
"plausible-mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"plausible-mcp-server": {
"command": "npx",
"args": [
"-y",
"plausible-mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"plausible-mcp-server","command":"npx","args":["-y","plausible-mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"plausible-mcp-server": {
"command": "npx",
"args": [
"-y",
"plausible-mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"plausible-mcp-server": {
"command": "npx",
"args": [
"-y",
"plausible-mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"plausible-mcp-server": {
"command": "npx",
"args": [
"-y",
"plausible-mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"plausible-mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"plausible-mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"plausible-mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"plausible-mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y plausible-mcp-serverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Unvollständig
- Dokumentation22/25
- Pflege11/25
- Vertrauen6/20
- Funktionsumfang0/15
- Installation12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 87 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Versionsverlauf
| Versionen | Veröffentlicht |
|---|---|
| 1.0.0Aktuell | 6. Juni 2026 |