loading…
Search for a command to run...
loading…
Enables AI assistants to query website statistics from Plausible Analytics, providing access to metrics like real-time visitors, traffic trends, and page perfor
Enables AI assistants to query website statistics from Plausible Analytics, providing access to metrics like real-time visitors, traffic trends, and page performance. It supports both Plausible Cloud and self-hosted instances through the Stats API v2.
An MCP (Model Context Protocol) server for Plausible Analytics. Query your website stats directly from AI assistants like Claude.
Works with both Plausible Cloud and self-hosted instances.
Go to your Plausible account settings and create an API key.
Add to your claude_desktop_config.json:
{
"mcpServers": {
"plausible": {
"command": "npx",
"args": ["-y", "plausible-mcp"],
"env": {
"PLAUSIBLE_API_KEY": "your-api-key-here"
}
}
}
}
claude mcp add plausible -- npx -y plausible-mcp
Then set the environment variable PLAUSIBLE_API_KEY in your shell.
Add PLAUSIBLE_BASE_URL to point to your instance:
{
"env": {
"PLAUSIBLE_API_KEY": "your-api-key-here",
"PLAUSIBLE_BASE_URL": "https://plausible.example.com"
}
}
| Tool | Description |
|---|---|
list-sites |
List all sites in your Plausible account |
get-current-visitors |
Real-time visitor count for a site |
get-aggregate-stats |
Summary metrics over a time period |
get-timeseries |
Traffic trends over time (by day/week/month) |
get-breakdown |
Break down stats by dimension (pages, sources, countries, etc.) |
query |
Raw Plausible Stats API v2 query for advanced use cases |
| Variable | Required | Default | Description |
|---|---|---|---|
PLAUSIBLE_API_KEY |
Yes | — | Your Plausible API key |
PLAUSIBLE_BASE_URL |
No | https://plausible.io |
Base URL for self-hosted instances |
git clone https://github.com/Defilan/plausible-mcp.git
cd plausible-mcp
npm install
npm run build
To test locally:
PLAUSIBLE_API_KEY=your-key node dist/index.js
MIT
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"plausible-analytics-mcp-server": {
"command": "npx",
"args": []
}
}
}