Plausible Analytics MCP

v0.1.6
io.github.surendranb/plausible-mcp Checked 3 hours ago Published 5 days ago

Plausible Analytics MCP: privacy-first website stats, real-time visitors, breakdowns, and trends.

Values you need

VariableWhat it is
PLAUSIBLE_API_KEYoptional Plausible Analytics API token
PLAUSIBLE_SITE_IDoptional Default Plausible site domain / ID (e.g. yourdomain.com)
PLAUSIBLE_BASE_URLoptional Custom self-hosted Plausible instance URL (default: https://plausible.io)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add plausible-mcp -- uvx --from plausible-mcp==0.1.6 plausible-analytics-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "plausible-mcp": {
      "args": [
        "--from",
        "plausible-mcp==0.1.6",
        "plausible-analytics-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "plausible-mcp": {
      "args": [
        "--from",
        "plausible-mcp==0.1.6",
        "plausible-analytics-mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "plausible-mcp": {
      "args": [
        "--from",
        "plausible-mcp==0.1.6",
        "plausible-analytics-mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.plausible-mcp]
command = "uvx"
args = ["--from", "plausible-mcp==0.1.6", "plausible-analytics-mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: get_aggregate_stats, get_breakdown, get_realtime_visitors, get_timeseries, doctor, skills_list, skill_read, check_for_updates.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json