Matomo MCP Server
Provides access to Matomo's Reporting API, enabling retrieval of site information, visit summaries, page URL analytics, country statistics, visitor browser/device settings, and custom Matomo API queries.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Matomo MCP Server
A Model Context Protocol (MCP) server that provides access to Matomo's Reporting API.
Features
Access Matomo reporting data through MCP tools
Query website statistics, visitor information, and analytics data
Support for multiple Matomo sites
Secure API token authentication
Related MCP server: Matomo MCP Server
Installation
pip install -e .Configuration
The server requires the following environment variables:
MATOMO_URL: Your Matomo instance URL (e.g.,https://analytics.example.com)MATOMO_TOKEN: Your Matomo API authentication token
You can obtain an API token from your Matomo instance under: Personal Settings → Security → Auth tokens
Usage with Claude Desktop
Add this to your Claude Desktop configuration:
MacOS
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"matomo": {
"command": "python",
"args": ["-m", "matomo_mcp"],
"env": {
"MATOMO_URL": "https://your-matomo-instance.com",
"MATOMO_TOKEN": "your_api_token_here"
}
}
}
}Available Tools
get_site_info
Get information about a specific Matomo site.
Parameters:
site_id: The ID of the site (integer)
get_visits_summary
Get a summary of visits for a site within a date range.
Parameters:
site_id: The ID of the site (integer)period: Time period (day, week, month, year, range)date: Date or date range (e.g., "2024-01-01", "last30", "today")
get_page_urls
Get the most visited page URLs for a site.
Parameters:
site_id: The ID of the site (integer)period: Time period (day, week, month, year, range)date: Date or date rangelimit: Maximum number of results (default: 10)
get_countries
Get visitor statistics by country.
Parameters:
site_id: The ID of the site (integer)period: Time period (day, week, month, year, range)date: Date or date rangelimit: Maximum number of results (default: 10)
get_user_settings
Get visitor browser and device information.
Parameters:
site_id: The ID of the site (integer)period: Time period (day, week, month, year, range)date: Date or date range
query_custom_report
Execute a custom Matomo API query.
Parameters:
method: Matomo API method (e.g., "Actions.getPageUrls")site_id: The ID of the site (integer)period: Time period (day, week, month, year, range)date: Date or date rangeadditional_params: Optional JSON object with additional parameters
Development
Install development dependencies:
pip install -e ".[dev]"Run tests:
pytestLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only website traffic, conversions, revenue, funnels and performance analytics.
Cookieless EU web analytics: sites, stats, goals, funnels, shares and API keys (OAuth).
Read-only web and revenue analytics: visitors, sources, goals, funnels and sales tied to visits.
Read your cookieless, EU-hosted web analytics: visitors, sources, pages, goals and live. Read-only.
Related MCP Servers
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides tools to interact with Matomo Analytics API, enabling management of sites, users, goals, segments, and access to analytics reports through a MCP interface.11MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI models to interact with Matomo analytics through a complete MCP server implementation. Provides tools for retrieving analytics data, managing sites, and generating reports with zero configuration setup.-
- AlicenseBqualityDmaintenanceEnables LLMs to directly query a Matomo analytics instance, execute reporting methods, fetch historical trends, report metadata, and dynamically generated chart images through typed MCP tools.6MIT
- AlicenseBqualityBmaintenanceEnables read-only Google Analytics 4 reporting through MCP, including daily summaries, top pages, acquisition, events, realtime activity, metadata, and custom reports with CSV/JSON output.8MIT