plausible-mcp
Allows querying Plausible Analytics Stats API v2 to retrieve website analytics such as timeseries, breakdowns, goal conversions, and site lists.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@plausible-mcpShow me unique visitors for example.com over the last 30 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
plausible-mcp
An MCP server that lets everyone in an organisation query Plausible Analytics from Claude.
One deployment serves the whole org. It holds a single Plausible API key server-side
and authenticates each person with Google, so nobody needs their own key and nobody
has to be granted access individually: put your Google Workspace domain in
ALLOWED_DOMAINS and anyone with an address there can connect the first time they
try. Colleagues outside that domain go in ALLOWED_EMAILS, one address at a time.
If you run analytics for a team and want them reading the numbers themselves rather than asking you for them, that is what this is for.
How authentication works
Claude registers itself with this server using OAuth 2.1 dynamic client registration. Google does not support dynamic client registration, so this server acts as its own authorization server and delegates the human login upstream to Google.
Google establishes who the person is. It does not decide whether they may read your
analytics. A middleware checks each caller's verified email address against
ALLOWED_DOMAINS and ALLOWED_EMAILS on every tool call. If you set neither, the
server refuses to start.
ALLOWED_DOMAINS is the part that makes this org-wide: it matches the domain of the
verified address exactly, so example.com admits alice@example.com but not
alice@evil-example.com or alice@example.com.evil.com.
To revoke someone, take them out of ALLOWED_EMAILS or ALLOWED_DOMAINS and
redeploy. Suspending their Google account stops them signing in again, but the
allowlist reads the claims from a token this server signed, so one already issued
keeps working until it expires. Rotating JWT_SIGNING_KEY invalidates every token
at once, at the cost of signing everybody out.
Related MCP server: Plausible MCP
Tools
queryruns a Stats API v2 query. Grouping by different dimensions gives you timeseries, breakdowns and goal conversions from the same tool. To compare two periods, call it once per period.list_sitesreturns the site domains you can pass assite_id.chartrenders an interactive chart overlaying one metric across one or more sites, in hosts that support MCP Apps (e.g. Claude Desktop). The viewer can toggle sites, switch metric, date range, interval and y-axis scale, turn on period-over-period comparison, and hover for exact values without asking the model again. Sites whose traffic differs by orders of magnitude are best read on the log or indexed axis — indexed rebases every site to 100 at its first value, so the question becomes "which is growing faster" rather than "which is bigger". The chart also tells the model what is currently on screen, so a follow-up question about a spike lands with the right context.usage_statsreports who has used the server, how often, and which accounts were refused.
Usage tracking
The allowlist middleware sees every caller's email address, because it has to check
it. It records a per-person call count, a first-seen and last-seen time, and a
per-tool breakdown to the volume at USAGE_PATH. Refused accounts are counted
separately, which is how you spot someone outside the allowlist trying to connect.
Read it with the usage_stats tool. Anyone on the allowlist can see everyone's
rows. Unset USAGE_PATH to turn tracking off.
Configuration
Variable | Required | Purpose |
| yes | Google OAuth client used to sign people in |
| yes | Plausible key with Stats API access; shared by everyone |
| yes | Public URL of this server; the Google redirect URI is |
| one of them | Who may query. Neither set means the server refuses to start |
| recommended | Signs this server's access tokens. Without it a restart signs everyone out |
| no | Where to persist OAuth client registrations. Unset means in-memory |
| no | Where to record per-person usage. Unset turns tracking off |
See .env.example for the same list in copy-pasteable form.
Deploy
The repo ships a fly.toml, so the instructions below are for Fly.io,
but nothing in the server is Fly-specific: it is one container that wants a writable
directory and the environment above. Replace YOUR-APP throughout.
Create an OAuth client in the Google Cloud console. Choose Web application and set the authorized redirect URI to
https://YOUR-APP.fly.dev/auth/callback. The URI must match exactly.Create the app and its volume:
fly apps create YOUR-APP --org YOUR-ORG fly volumes create plausible_mcp_data --app YOUR-APP --region fra --size 1 --yesUse
fly apps createrather thanfly launch, which regeneratesfly.tomland would discard the volume mount and health check.Point
appinfly.tomlat your app name.Set the configuration.
BASE_URLandALLOWED_DOMAINSgo here rather than infly.tomlbecause they differ per deployment, and a placeholder committed to the repo would overwrite the real value on the next deploy:fly secrets set --app YOUR-APP \ BASE_URL=https://YOUR-APP.fly.dev \ ALLOWED_DOMAINS=your-domain.org \ GOOGLE_CLIENT_ID=xxx.apps.googleusercontent.com \ GOOGLE_CLIENT_SECRET=GOCSPX-xxx \ PLAUSIBLE_API_KEY=xxx \ JWT_SIGNING_KEY="$(openssl rand -hex 32)"Keep
JWT_SIGNING_KEYstable: changing it signs everyone out.fly deploy --ha=falseWithout
--ha=falseFly may start two machines. Each would get its own volume, so a sign-in that registers on one machine fails when the next request lands on the other.
Add it to Claude
To add it for a whole team, go to Settings > Connectors in claude.ai, choose
Add custom connector, and enter https://YOUR-APP.fly.dev/mcp. Each person
signs in with Google the first time they use it.
To add it to Claude Code:
claude mcp add --transport http plausible https://YOUR-APP.fly.dev/mcpRun it locally
uv venv && uv pip install -r pyproject.toml
cp .env.example .env # then fill it in
set -a && source .env && set +a
python server.pyAdd http://localhost:8000/auth/callback to the Google client's redirect URIs to test
the sign-in flow locally.
Run the tests with python test_server.py. To exercise the OAuth flow and the tools by
hand, use npx @modelcontextprotocol/inspector.
Licence
MIT — see LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Cookieless dashboard aggregates for Claude and Cursor. No visitor hashes. Starter and Growth.
Give Claude only the Google Drive files you choose. Every action logged.
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Ask Claude about your ads: Meta, Google, TikTok, LinkedIn, GA4 & Shopify. No AI credits.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude AI to query Google Search Console data and manage properties via OAuth 2.0 authentication, eliminating the need for API keys.MIT
- AlicenseBqualityDmaintenanceEnables natural language interaction with Plausible Analytics data to query traffic, visitors, engagement, and more using conversational questions.41MIT
- FlicenseAqualityDmaintenanceEnables natural language querying of Google Analytics 4, Google Search Console, Meta Ads, and Google Ads data through Claude.23
- FlicenseAqualityCmaintenanceConnects Claude to Google Analytics 4 for querying website analytics via natural language, enabling traffic summaries, top pages, traffic sources, and user engagement.4
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/effektiv-spenden-jetzt/plausible-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server