Plausible MCP by usefulapi

v1.41.0
io.usefulapi/plausible-analytics Checked 1 day ago Published 12 hours ago

Query 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.

ParameterTypeDescription
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 *arrayMetrics 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 *stringThe site's domain as registered in Plausible, e.g. "example.com".
dimensionsarrayGroup-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…
filtersarrayOptional filters. Each is an array like ["is","visit:country_name",["Estonia"]] or ["contains","event:page",["/blog"]] with logical wrappers ["and",[...]] / ["or",[...]] / ["not",[...]]. Operators: is…
includeobjectOptional include flags: { imports?, time_labels?, total_rows? }.
order_byarrayOptional ordering: an array of [metric_or_dimension, "asc"|"desc"] pairs, e.g. [["visitors","desc"]].
paginationobjectOptional 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.

ParameterTypeDescription
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 *arrayMetrics 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 *stringThe site's domain as registered in Plausible, e.g. "example.com".
filtersarrayOptional 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].

ParameterTypeDescription
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 *arrayMetrics 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 *stringThe site's domain as registered in Plausible, e.g. "example.com".
filtersarrayOptional filters. Each is an array like ["is","visit:country_name",["Estonia"]] or ["contains","event:page",["/blog"]] with logical wrappers ["and",[...]] / ["or",[...]] / ["not",[...]]. Operators: is…
intervalstringTime 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].

ParameterTypeDescription
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 *arrayMetrics 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 *stringThe single dimension to group by, e.g. visit:source, event:page, visit:country_name, visit:device.
site_id *stringThe site's domain as registered in Plausible, e.g. "example.com".
filtersarrayOptional filters. Each is an array like ["is","visit:country_name",["Estonia"]] or ["contains","event:page",["/blog"]] with logical wrappers ["and",[...]] / ["or",[...]] / ["not",[...]]. Operators: is…
limitintegerMax rows to return — maps to pagination.limit.
order_byarrayOptional 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.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
afterstringCursor for the next page (from meta.after).
beforestringCursor for the previous page (from meta.before).
limitintegerSites 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}.

ParameterTypeDescription
site_id *stringThe 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.

ParameterTypeDescription
site_id *stringThe site's domain as registered in Plausible, e.g. "example.com".