Matomo MCP by usefulapi

v1.1.1
io.usefulapi/matomo Checked 3 days ago Published 1 day ago

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

ParameterTypeDescription
idSite *integerThe 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
limitintegerMaximum rows per period (filter_limit). Leave empty for the Matomo default.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
datestringDate: today, yesterday, last30, lastMonth, YYYY-MM-DD, or a pair YYYY-MM-DD,YYYY-MM-DD. Default today.
goal_idintegerOne goal ID from matomo_list_goals. Leave empty for all goals.
periodstringPeriod of the report. Default month.
segmentstringOptional 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.

ParameterTypeDescription
idSite *integerThe Matomo website ID (idSite). Get it from matomo_list_sites.
last_minutesintegerLook-back window in minutes. Default 30.
segmentstringOptional Matomo segment definition, for example countryCode==de. Leave empty for all visits.