Matomo MCP by usefulapi
v1.1.1Read visits, top pages, traffic sources, goals and live counts in Matomo.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
matomo_list_sites List websites
List the Matomo websites this token can view: ID, name, main URL, time zone and currency. Use it first to find an idSite. Matomo: SitesManager.getSitesWithAtLeastViewAccess.
matomo_get_site Get website settings
Show one website's settings: name, main URL, time zone, currency, site search settings and excluded IPs. Matomo: SitesManager.getSiteFromId.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
matomo_get_visits_summary Visits summary
Show the headline numbers for a website and period: visits, actions, bounces, average visit length, and unique visitors when Matomo reports them for the period. Matomo: VisitsSummary.get.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_top_pages Top pages
List the most viewed page URLs of a website for a period, most page views first, one row per URL (not per directory). Matomo: Actions.getPageUrls.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_entry_pages Entry pages
List the URLs where visits started on a website for a period, one row per URL, with entrances, bounces and exits. Matomo: Actions.getEntryPageUrls.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_exit_pages Exit pages
List the URLs where visits ended on a website for a period, one row per URL, with exits and page views. Matomo: Actions.getExitPageUrls.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_site_search_keywords Site search keywords
List the terms visitors searched for on the website's internal search for a period, with searches and pages viewed per search. Matomo: Actions.getSiteSearchKeywords.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_referrer_types Traffic sources
Show where visits came from by channel for a period: direct entry, search engines, websites, campaigns and social networks. Matomo: Referrers.getReferrerType.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_referring_websites Referring websites
List the websites that sent the most visits for a period, with visits and conversion figures. Matomo: Referrers.getWebsites.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_search_engines Search engines
List the search engines that sent visits for a period, with visits and actions. Matomo: Referrers.getSearchEngines.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_search_keywords Search keywords
List the search keywords that brought visits for a period, with visits and actions. Matomo: Referrers.getKeywords.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_campaigns Campaigns
List the marketing campaigns that brought visits for a period (utm_campaign values), with visits and conversions. Matomo: Referrers.getCampaigns.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_countries Visitor countries
List the countries of visitors for a period, with visits, actions and time on site. Matomo: UserCountry.getCountry.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_device_types Device types
Show the device types of visitors for a period (desktop, smartphone, tablet and others), with visits. Matomo: DevicesDetection.getType.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_browsers Browsers
List the browsers of visitors for a period, with visits and actions. Matomo: DevicesDetection.getBrowsers.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
limit | integer | Maximum rows per period (filter_limit). Leave empty for the Matomo default. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_list_goals List goals
List the active goals of a website: ID, name, match pattern and default revenue. Inactive goals are not listed. Matomo: Goals.getGoals.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
matomo_get_goal_report Goal conversions
Show conversions, conversion rate and revenue of a website for a period. Pass goal_id for one goal, or leave it empty for all goals. Matomo: Goals.get.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
date | string | Date: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today. |
goal_id | integer | One goal ID from matomo_list_goals. Leave empty for all goals. |
period | string | Period of the report. Default month. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |
matomo_get_live_counts Live visit counts
Show aggregated real-time counts for a website over the last minutes: visits, actions and unique visitors. Aggregated only: no visitor details. Matomo: Live.getCounters.
| Parameter | Type | Description |
|---|---|---|
idSite * | integer | The Matomo website ID (idSite). Get it from matomo_list_sites. |
last_minutes | integer | Look-back window in minutes. Default 30. |
segment | string | Optional Matomo segment definition, for example countryCode==de. Leave empty for all visits. |