Plausible MCP by usefulapi
v1.41.0Query site stats, realtime visitors, breakdowns and goals from Plausible Analytics.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
plausible_query_stats Query stats
The full-power Stats API query. Compute metrics over a date range, optionally grouped by dimensions and narrowed by filters, with ordering, includes, and pagination. Plausible: POST /api/v2/query.
| Parameter | Type | Description |
|---|---|---|
date_range * | Date range: a shortcut string ("day", "7d", "28d", "30d", "91d", "month", "6mo", "12mo", "year", "all", "24h") OR a 2-element ISO8601 array like ["2024-01-01","2024-07-01"] (dates or datetimes with tz… | |
metrics * | array | Metrics to compute. Any of: visitors, visits, pageviews, views_per_visit, bounce_rate, visit_duration, events, scroll_depth, percentage, conversion_rate, group_conversion_rate, average_revenue, total_… |
site_id * | string | The site's domain as registered in Plausible, e.g. "example.com". |
dimensions | array | Group-by dimensions. Event dims (event:goal, event:page, event:hostname), visit dims (visit:source, visit:referrer, visit:utm_medium/source/campaign, visit:device, visit:browser, visit:os, visit:count… |
filters | array | Optional filters. Each is an array like ["is","visit:country_name",["Estonia"]] or ["contains","event:page",["/blog"]] with logical wrappers ["and",[...]] / ["or",[...]] / ["not",[...]]. Operators: is… |
include | object | Optional include flags: { imports?, time_labels?, total_rows? }. |
order_by | array | Optional ordering: an array of [metric_or_dimension, "asc"|"desc"] pairs, e.g. [["visitors","desc"]]. |
pagination | object | Optional pagination: { limit?, offset? }. |
plausible_aggregate Aggregate totals
Convenience: aggregate totals for the given metrics over a date range (no group-by). Plausible: POST /api/v2/query with no dimensions.
| Parameter | Type | Description |
|---|---|---|
date_range * | Date range: a shortcut string ("day", "7d", "28d", "30d", "91d", "month", "6mo", "12mo", "year", "all", "24h") OR a 2-element ISO8601 array like ["2024-01-01","2024-07-01"] (dates or datetimes with tz… | |
metrics * | array | Metrics to compute. Any of: visitors, visits, pageviews, views_per_visit, bounce_rate, visit_duration, events, scroll_depth, percentage, conversion_rate, group_conversion_rate, average_revenue, total_… |
site_id * | string | The site's domain as registered in Plausible, e.g. "example.com". |
filters | array | Optional filters. Each is an array like ["is","visit:country_name",["Estonia"]] or ["contains","event:page",["/blog"]] with logical wrappers ["and",[...]] / ["or",[...]] / ["not",[...]]. Operators: is… |
plausible_timeseries Timeseries
Convenience: metrics over time, grouped by a time interval. Plausible: POST /api/v2/query with dimensions=[interval].
| Parameter | Type | Description |
|---|---|---|
date_range * | Date range: a shortcut string ("day", "7d", "28d", "30d", "91d", "month", "6mo", "12mo", "year", "all", "24h") OR a 2-element ISO8601 array like ["2024-01-01","2024-07-01"] (dates or datetimes with tz… | |
metrics * | array | Metrics to compute. Any of: visitors, visits, pageviews, views_per_visit, bounce_rate, visit_duration, events, scroll_depth, percentage, conversion_rate, group_conversion_rate, average_revenue, total_… |
site_id * | string | The site's domain as registered in Plausible, e.g. "example.com". |
filters | array | Optional filters. Each is an array like ["is","visit:country_name",["Estonia"]] or ["contains","event:page",["/blog"]] with logical wrappers ["and",[...]] / ["or",[...]] / ["not",[...]]. Operators: is… |
interval | string | Time bucket to group by. Default time:day. |
plausible_breakdown Breakdown by property
Convenience: break metrics down by a single property (dimension), e.g. visit:source or event:page. Plausible: POST /api/v2/query with dimensions=[property].
| Parameter | Type | Description |
|---|---|---|
date_range * | Date range: a shortcut string ("day", "7d", "28d", "30d", "91d", "month", "6mo", "12mo", "year", "all", "24h") OR a 2-element ISO8601 array like ["2024-01-01","2024-07-01"] (dates or datetimes with tz… | |
metrics * | array | Metrics to compute. Any of: visitors, visits, pageviews, views_per_visit, bounce_rate, visit_duration, events, scroll_depth, percentage, conversion_rate, group_conversion_rate, average_revenue, total_… |
property * | string | The single dimension to group by, e.g. visit:source, event:page, visit:country_name, visit:device. |
site_id * | string | The site's domain as registered in Plausible, e.g. "example.com". |
filters | array | Optional filters. Each is an array like ["is","visit:country_name",["Estonia"]] or ["contains","event:page",["/blog"]] with logical wrappers ["and",[...]] / ["or",[...]] / ["not",[...]]. Operators: is… |
limit | integer | Max rows to return — maps to pagination.limit. |
order_by | array | Optional ordering: an array of [metric_or_dimension, "asc"|"desc"] pairs, e.g. [["visitors","desc"]]. |
plausible_realtime_visitors Realtime visitors
Get the number of current visitors on a site (active in the last 5 minutes). Returns a single integer. Plausible: GET /api/v1/stats/realtime/visitors.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's domain as registered in Plausible, e.g. "example.com". |
plausible_list_sites List sites
List the sites the API key can access (domain + timezone), with cursor pagination. Requires an enterprise plan. Plausible: GET /api/v1/sites.
| Parameter | Type | Description |
|---|---|---|
after | string | Cursor for the next page (from meta.after). |
before | string | Cursor for the previous page (from meta.before). |
limit | integer | Sites per page. |
plausible_get_site Get site
Get a single site by its domain (timezone, etc.). Requires an enterprise plan. Plausible: GET /api/v1/sites/{site_id}.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's domain as registered in Plausible, e.g. "example.com". |
plausible_list_goals List goals
List the goals (conversions) configured for a site. Requires an enterprise plan. Plausible: GET /api/v1/sites/goals.
| Parameter | Type | Description |
|---|---|---|
site_id * | string | The site's domain as registered in Plausible, e.g. "example.com". |