Simple Analytics MCP by usefulapi
v1.28.0Read Simple Analytics stats: pageviews, visitors, pages, referrers, events and data exports.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
simpleanalytics_list_websites List websites
List the websites of the Simple Analytics account (hostnames to use in the other tools). Good first call. Admin API: GET /api/websites.
simpleanalytics_get_stats Get traffic summary
Aggregated traffic for one website and date range: total pageviews, unique visitors and the median seconds on page. Optional filters narrow it to a page, country, referrer, UTM value, browser, OS, device or metadata value. Stats API: GET /<hostname>.json.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Website hostname as shown in Simple Analytics, e.g. example.com (from simpleanalytics_list_websites). |
browser_name | string | Only this browser name (Chrome). |
country | string | Only this country, 2-letter code (NL). |
device_type | string | Only this device type. |
end | string | End date (inclusive): YYYY-MM-DD, today, yesterday or today-1d. Default: today. |
metadata | object | Exact metadata filters as {key: value}; all must match. |
os_name | string | Only this OS name (iOS). |
page | string | Only this page path, e.g. /pricing. A trailing * matches a prefix (/blog/*). |
pages | string | Only these page paths, comma separated (/contact,/product/*). |
referrer | string | Only this referrer (normalized, e.g. google.com). |
start | string | Start date: YYYY-MM-DD, today, yesterday or today-30d. Default: 1 month ago. |
timezone | string | IANA time zone, e.g. Europe/Amsterdam. Default: the website setting. |
utm_campaign | string | Only this UTM campaign. |
utm_content | string | Only this UTM content. |
utm_medium | string | Only this UTM medium. |
utm_source | string | Only this UTM source. |
utm_term | string | Only this UTM term. |
simpleanalytics_get_timeseries Get traffic over time
Pageviews and visitors per hour, day, week, month or year for one website and date range (time series for charts and trends). Optional filters as in simpleanalytics_get_stats. Stats API: GET /<hostname>.json?fields=histogram.
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Website hostname as shown in Simple Analytics, e.g. example.com (from simpleanalytics_list_websites). |
browser_name | string | Only this browser name (Chrome). |
country | string | Only this country, 2-letter code (NL). |
device_type | string | Only this device type. |
end | string | End date (inclusive): YYYY-MM-DD, today, yesterday or today-1d. Default: today. |
interval | string | Bucket size (default day). |
metadata | object | Exact metadata filters as {key: value}; all must match. |
os_name | string | Only this OS name (iOS). |
page | string | Only this page path, e.g. /pricing. A trailing * matches a prefix (/blog/*). |
pages | string | Only these page paths, comma separated (/contact,/product/*). |
referrer | string | Only this referrer (normalized, e.g. google.com). |
start | string | Start date: YYYY-MM-DD, today, yesterday or today-30d. Default: 1 month ago. |
timezone | string | IANA time zone, e.g. Europe/Amsterdam. Default: the website setting. |
utm_campaign | string | Only this UTM campaign. |
utm_content | string | Only this UTM content. |
utm_medium | string | Only this UTM medium. |
utm_source | string | Only this UTM source. |
utm_term | string | Only this UTM term. |
simpleanalytics_get_breakdown Get top pages, referrers, countries or devices
Top values of one dimension for one website and date range, each with pageviews and visitors: pages, countries, referrers, UTM sources/mediums/campaigns/contents/terms, browsers, operating systems or device types. Optional filters as in simpleanalytics_get_stats. Stats API: GET /<hostname>.json?fields=<dimension>.
| Parameter | Type | Description |
|---|---|---|
dimension * | string | What to break the traffic down by. |
hostname * | string | Website hostname as shown in Simple Analytics, e.g. example.com (from simpleanalytics_list_websites). |
browser_name | string | Only this browser name (Chrome). |
country | string | Only this country, 2-letter code (NL). |
device_type | string | Only this device type. |
end | string | End date (inclusive): YYYY-MM-DD, today, yesterday or today-1d. Default: today. |
limit | integer | Maximum number of values (default 20, max 1000). |
metadata | object | Exact metadata filters as {key: value}; all must match. |
os_name | string | Only this OS name (iOS). |
page | string | Only this page path, e.g. /pricing. A trailing * matches a prefix (/blog/*). |
pages | string | Only these page paths, comma separated (/contact,/product/*). |
referrer | string | Only this referrer (normalized, e.g. google.com). |
start | string | Start date: YYYY-MM-DD, today, yesterday or today-30d. Default: 1 month ago. |
timezone | string | IANA time zone, e.g. Europe/Amsterdam. Default: the website setting. |
utm_campaign | string | Only this UTM campaign. |
utm_content | string | Only this UTM content. |
utm_medium | string | Only this UTM medium. |
utm_source | string | Only this UTM source. |
utm_term | string | Only this UTM term. |
simpleanalytics_get_events Get event counts
How often custom events happened on one website in a date range. Pass event names, or leave names out for all events (up to 1000). Stats API: GET /<hostname>.json?events=...
| Parameter | Type | Description |
|---|---|---|
hostname * | string | Website hostname as shown in Simple Analytics, e.g. example.com (from simpleanalytics_list_websites). |
browser_name | string | Only this browser name (Chrome). |
country | string | Only this country, 2-letter code (NL). |
device_type | string | Only this device type. |
end | string | End date (inclusive): YYYY-MM-DD, today, yesterday or today-1d. Default: today. |
metadata | object | Exact metadata filters as {key: value}; all must match. |
names | array | Event names; default all events. |
os_name | string | Only this OS name (iOS). |
page | string | Only this page path, e.g. /pricing. A trailing * matches a prefix (/blog/*). |
pages | string | Only these page paths, comma separated (/contact,/product/*). |
referrer | string | Only this referrer (normalized, e.g. google.com). |
start | string | Start date: YYYY-MM-DD, today, yesterday or today-30d. Default: 1 month ago. |
timezone | string | IANA time zone, e.g. Europe/Amsterdam. Default: the website setting. |
utm_campaign | string | Only this UTM campaign. |
utm_content | string | Only this UTM content. |
utm_medium | string | Only this UTM medium. |
utm_source | string | Only this UTM source. |
utm_term | string | Only this UTM term. |
simpleanalytics_export_datapoints Export raw data points
Raw, unsampled page views or events of one website for a date range, as rows with only the fields asked for. The reply is capped at max_rows (default 100, max 1000) rows and 2 MB; "truncated" says more exist, so narrow the range. Rows are cut to about 40 000 characters of JSON. Dates: YYYY-MM-DD, or YYYY-MM-DDTHH for one hour (start and end the same day). Robots are left out unless asked. Needs the user id too. Export API: GET /api/export/datapoints.
| Parameter | Type | Description |
|---|---|---|
end * | string | End date, inclusive. |
hostname * | string | Website hostname as shown in Simple Analytics, e.g. example.com (from simpleanalytics_list_websites). |
start * | string | Start date (see description). |
fields | array | Fields to export (default added_iso, path, country_code, device_type, document_referrer). All: added_date, added_iso, added_unix, browser_name, browser_version, country_code, datapoint, device_type, d… |
include_robots | boolean | Include robot/crawler traffic (default false). |
max_rows | integer | Maximum rows returned (default 100). |
timezone | string | IANA time zone, e.g. Europe/Amsterdam. Default: the website setting. |
type | string | Page views (default) or events. |