mcp-piwik
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-piwik show me the top pages on my site for the last 7 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-piwik

MCP server for Piwik PRO analytics - query your website analytics data directly from Claude.
Features
List Sites - View all websites and apps tracked in your Piwik PRO account
Analytics Summary - Get sessions, pageviews, visitors, bounce rate for any site
Top Pages - See your most visited pages
Traffic Sources - Understand where your traffic comes from
Goals & Conversions - Track goal completions and revenue
Custom Queries - Run flexible analytics queries with any dimensions/metrics
Related MCP server: ga4-viz
Installation
Prerequisites
A Piwik PRO account
API credentials from Piwik PRO
Setup
# Clone and build
git clone https://github.com/aplaceforallmystuff/mcp-piwik.git
cd mcp-piwik
npm install
npm run buildConfiguration
Claude Code
claude mcp add piwik -s user \
--env PIWIK_ACCOUNT=your-account-name \
--env PIWIK_CLIENT_ID=your-client-id \
--env PIWIK_CLIENT_SECRET=your-client-secret \
-- node /path/to/mcp-piwik/dist/index.jsClaude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"piwik": {
"command": "node",
"args": ["/path/to/mcp-piwik/dist/index.js"],
"env": {
"PIWIK_ACCOUNT": "your-account-name",
"PIWIK_CLIENT_ID": "your-client-id",
"PIWIK_CLIENT_SECRET": "your-client-secret"
}
}
}
}Replace:
your-account-name- Your Piwik PRO subdomain (e.g., if your URL isexample.piwik.pro, useexample)your-client-id- OAuth client ID from API credentialsyour-client-secret- OAuth client secret from API credentials
Available Tools
piwik_list_sites
List all websites and apps tracked in your Piwik PRO account.
piwik_analytics_summary
Get analytics summary (sessions, pageviews, visitors, bounce rate, avg session time) for a site.
Parameters:
siteId(required) - Site/app ID from piwik_list_sitesdateFrom(optional) - Start date YYYY-MM-DD (default: 30 days ago)dateTo(optional) - End date YYYY-MM-DD (default: today)
piwik_top_pages
Get top pages by pageviews.
Parameters:
siteId(required) - Site/app IDdateFrom(optional) - Start datedateTo(optional) - End datelimit(optional) - Number of results (default: 10)
piwik_traffic_sources
Get traffic sources breakdown (source/medium, sessions, visitors, bounce rate).
Parameters:
siteId(required) - Site/app IDdateFrom(optional) - Start datedateTo(optional) - End date
piwik_goals
Get goal completions and conversion data.
Parameters:
siteId(required) - Site/app IDdateFrom(optional) - Start datedateTo(optional) - End date
piwik_custom_query
Run a custom analytics query with specified dimensions and metrics.
Parameters:
siteId(required) - Site/app IDcolumns(required) - Array of column IDs (e.g.,["sessions", "page_views", "country"])dateFrom(optional) - Start datedateTo(optional) - End datelimit(optional) - Number of results (default: 50)
piwik_available_columns
List common dimensions and metrics available for queries.
Example Usage
"Show me the top 10 pages on my site for the last 7 days"
"What are my traffic sources this month?"
"Give me an analytics summary for December"
"Run a custom query for sessions and visitors by country"License
MIT
Author
Jim Christian - https://jimchristian.net
Available Tools
7 toolspiwik_analytics_summaryC
Get analytics summary for a site (sessions, pageviews, visitors)
Inputs: siteId (required), dateTo, dateFrom.
piwik_available_columnsA
List common columns (dimensions and metrics) available for analytics queries
Inputs: no named parameters.
piwik_custom_queryC
Run a custom analytics query with specified dimensions and metrics
Inputs: siteId (required), columns (required), limit, dateTo, +1 more.
piwik_goalsC
Get goal completions and conversion data
Inputs: siteId (required), dateTo, dateFrom.
piwik_list_sitesB
List all websites and apps tracked in Piwik PRO
Inputs: no named parameters.
piwik_top_pagesC
Get top pages by pageviews for a site
Inputs: siteId (required), limit, dateTo, dateFrom.
piwik_traffic_sourcesC
Get traffic sources breakdown for a site
Inputs: siteId (required), dateTo, dateFrom.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct analytics facet (site list, summary, top pages, traffic sources, goals, columns, custom query). The main overlap is that top_pages, traffic_sources, and analytics_summary could all be expressed via piwik_custom_query, but the dedicated tools have clearly narrower, well-described purposes.
All tools use a consistent piwik_ snake_case prefix with snake_case bodies. Minor deviation: piwik_list_sites uses a verb while the rest are noun phrases, but the pattern remains predictable and readable.
Seven tools is well-scoped for an analytics reporting server, with each tool covering a meaningful reporting need and no filler.
Covers site discovery, aggregate summaries, top pages, traffic sources, goals, and an escape hatch via custom_query, plus a schema-discovery tool (available_columns). Minor gaps like real-time data or date-range/prebuilt comparison reports are adequately workable through custom_query.
Maintenance
Related MCP Connectors
Ask Claude, ChatGPT or any MCP client about your Google Analytics 4 and Search Console data, plus Bing Webmaster Tools when connected, for every site you manage, with one Google sign-in. Read only: traffic changes, why a page dropped, top queries and pages, quick-win queries, AI assistant referral traffic, URL indexing, sitemaps, custom GA4 reports and client reports. Built for site owners and agencies with many sites. Free for 1 site.
GA4, Google Ads and Search Console in Claude. Read-only OAuth, multi-account for agencies.
SEO research, Search Console, GA4 and PPC tools for Claude and ChatGPT.
Google Search Console, GA4, Bing Webmaster and PageSpeed MCP for Claude, ChatGPT, Cursor. Free.
Related MCP Servers
AlicenseAqualityBmaintenanceEnables AI assistants to manage Piwik PRO Analytics resources including apps, tags, triggers, variables, audiences, and tracker settings through natural language commands. Supports comprehensive analytics configuration and tag management operations.4069 PyPI7MIT- FlicenseNot gradedqualityDmaintenanceEnables interactive Google Analytics 4 visualizations inside Claude conversations, supporting ad-hoc queries with line, bar, pie charts and data tables.-
- FlicenseAqualityDmaintenanceEnables natural language querying of Google Analytics 4, Google Search Console, Meta Ads, and Google Ads data through Claude.23-
- FlicenseAqualityDmaintenanceConnects Claude to Google Analytics 4 for querying website analytics via natural language, enabling traffic summaries, top pages, traffic sources, and user engagement.4-