Piwik PRO MCP Server
OfficialPiwik PRO MCP Server lets you control Piwik PRO Analytics, Tag Manager, and Data Activation through MCP tools and natural-language queries.
Analytics querying: Run flexible analytics queries with dimensions, metrics, filters, date ranges, goals, and custom dimensions; list dimension/metric metadata and custom dimension slots.
App management: List and get app details; view global and per-app tracker settings; retrieve container settings and installation code.
Annotations: List and get user/system annotations.
Goals: List and get conversion goals for analytics filtering.
Tag Manager: Manage tags, triggers, variables, versions, and async operations; discover tag/trigger/variable templates; list triggers attached to tags and tags attached to triggers.
Data Activation / CDP: List and get audiences; list CDP attributes for audience building.
Configuration & safety: Safe mode by default, optional telemetry opt-out, and deployment via uv or Docker.
Provides comprehensive analytics and tag management capabilities through Piwik PRO, including app management, tracker configuration, tag manager operations (tags, triggers, variables), customer data platform features for audience management, and version control for analytics implementations.
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., "@Piwik PRO MCP Server list all tags in my e-commerce app"
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.
🤖 Piwik PRO MCP Server (beta)
A Model Context Protocol (MCP) server built with the official MCP Python SDK that lets you control Piwik PRO Analytics resources.
🎇 Features
💬 Query API — Have a conversation with your analytics data
Turn questions into insights. The Query API lets you explore your analytics data using natural language. Ask about visitors, page views, conversions, and more without navigating complex dashboards or building reports manually.
Run flexible queries with custom date ranges and filters
Discover available dimensions and metrics
Get answers to analytics questions in seconds
📊 Manage Analytics
Keep your analytics setup organized without leaving your the conversation with your AI assistant:
Annotations — Add notes to mark important events, campaigns, or changes
Goals — Set up and manage conversion tracking
Custom dimensions — Extend your tracking with custom data points
🏷️ Control Tag Manager
Manage your tracking setup without touching your website code:
Tags — Create and configure tracking tags
Triggers — Define when and where tags fire
Variables — Store and reuse dynamic values
Version control — Publish changes when you're ready
🎯 Build audiences with Data Activation (DA)
Build and manage your audience segments:
Create targeted audiences based on user behavior
Update segmentation rules in real time
⚙️ Configuration and settings
Fine-tune your Piwik PRO setup:
App management — Organize your sites and apps
Tracker settings — Configure tracking behavior globally or for each app
Container settings — Access installation code and container configuration
Related MCP server: ga4-mcp-server
🚀 Quickstart
Go to your account's API credentials page: https://ACCOUNT.piwik.pro/profile/api-credentials, then generate new credentials.
You will need these three variables for the MCP configuration:
PIWIK_PRO_HOST- Your piwik host,ACCOUNT.piwik.proPIWIK_PRO_CLIENT_ID- Client IDPIWIK_PRO_CLIENT_SECRET- Client Secret
MCP Client configuration
All of these MCP clients use a JSON file to store the MCP configuration. The file name and location vary by client.
Claude Desktop
Go to
Settings -> Developer -> Edit Configto open the folder containingclaude_desktop_config.json.Apply one of the snippets from below.
Restart the application.
Cursor - The official documentation
Claude Code - The official documentation
To use Piwik PRO MCP server, you need to install uv or docker.
Copy the configuration of your preferred option and enter the required environment variables.
Option #1 - UV
If you don't have uv, check the
official installation guide.
{
"mcpServers": {
"piwik-pro-analytics": {
"command": "uvx",
"args": ["piwik-pro-mcp"],
"env": {
"PIWIK_PRO_HOST": "ACCOUNT.piwik.pro",
"PIWIK_PRO_CLIENT_ID": "CLIENT_ID",
"PIWIK_PRO_CLIENT_SECRET": "CLIENT_SECRET"
}
}
}
}You can enter environment variables directly in the MCP configuration, but storing them in a separate
file is more secure. Create a .piwik-pro-mcp.env file and add configuration to it:
# .piwik.pro.mcp.env
PIWIK_PRO_HOST=ACCOUNT.piwik.pro
PIWIK_PRO_CLIENT_ID=CLIENT_ID
PIWIK_PRO_CLIENT_SECRET=CLIENT_SECRETRefer to this file through --env-file argument:
{
"mcpServers": {
"piwik-pro-analytics": {
"command": "uvx",
"args": [
"piwik-pro-mcp",
"--env-file",
"/absolute/path/to/.piwik-pro-mcp.env"
]
}
}
}Option #2 - Docker
You need to have Docker installed. See the official installation guide.
{
"mcpServers": {
"piwik-pro-analytics": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/piwikpro/mcp:latest"],
"env": {
"PIWIK_PRO_HOST": "ACCOUNT.piwik.pro",
"PIWIK_PRO_CLIENT_ID": "CLIENT_ID",
"PIWIK_PRO_CLIENT_SECRET": "CLIENT_SECRET"
}
}
}
}You can enter environment variables directly in the MCP configuration, but storing them in a separate
file is more secure. Create a .piwik-pro-mcp.env file and add the configuration to it:
# .piwik.pro.mcp.env
PIWIK_PRO_HOST=ACCOUNT.piwik.pro
PIWIK_PRO_CLIENT_ID=CLIENT_ID
PIWIK_PRO_CLIENT_SECRET=CLIENT_SECRETRefer to this file through --env-file argument:
{
"mcpServers": {
"piwik-pro-analytics": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--env-file",
"/absolute/path/to/.piwik-pro-mcp.env",
"ghcr.io/piwikpro/mcp:latest"
]
}
}
}Restart your MCP client to apply configuration changes.
🪄 First Use
You're all set! The server starts in safe mode by default, so you can explore your analytics data without worrying about accidental changes.
Try these prompts to get started:
List my Piwik PRO apps.
List tags in <NAME> app.
What were the top 10 pages last week?
Show me conversion trends from the last month.Ready to make changes?
Once you're comfortable, disable safe mode to enable t create, update, and delete operations:
PIWIK_PRO_SAFE_MODE=0Then try prompts like:
In app <NAME>, add a new tag that shows alert("hello") on every page.
Copy the tag <NAME> from app <APP> to all apps with the <PREFIX> prefix.Other options
PIWIK_PRO_TELEMETRY(default1): Controls anonymous usage telemetry. Set this to0to disable it.PIWIK_PRO_TM_RESOURCE_CHECK(default1): Enables Tag Manager template validation. Set to0to bypass when experimenting with custom templates.PIWIK_PRO_ALLOW_INSECURE_HOST(default0): Rejects explicithttp://values forPIWIK_PRO_HOST. Set to1only for local/dev instances that cannot use HTTPS.
🔒 Security
The default stdio transport is recommended for MCP clients such as Cursor and Claude Desktop.
If you use the optional streamable-http transport, be aware that the server does not authenticate incoming MCP requests. All tools are accessible to anyone who can reach the endpoint, within the limits of the configured Piwik PRO API token. Do not expose the HTTP server to the public internet. See the Development Guide — HTTP Transport for details.
🔈 Feedback
We value your feedback and questions. If you have suggestions, run into issues, or want to request a feature, open an issue on our GitHub Issues page. Your feedback helps us improve the project and support the community.
📡 Telemetry
We collect anonymous telemetry data to help us understand how the MCP server is used and to improve its reliability and features. This telemetry includes information about which MCP tools are invoked and whether the result is a success or an error, but it doesn't include any personal data, tool arguments, or sensitive information.
We use this data only to identify issues, prioritize improvements, and provide the best possible experience for all users.
If you prefer not to send telemetry data, you can opt out at any time by adding the following environment variable
PIWIK_PRO_TELEMETRY=0 to your MCP server configuration.
📚 Documentation
Document | Description |
Complete reference for all MCP tools | |
Setup, running, testing, and architecture | |
How to contribute to the project |
Available Tools
40 toolsactivations_attributes_listARead-only
List all CDP attributes available for audience creation.
This tool returns structured attribute objects containing all available attributes
for the specified app. Each AttributeSummary object includes:
- column_id: Unique identifier for the attribute
- column_name: Human-readable name
- column_type: Data type (string, number, datetime, etc.)
- supported_operators: List of operators valid for this column type
- value_selectors: Supported selectors (first, last, any, none)
- value_format: CRITICAL - Format requirements and examples for condition values
- column_category: Categories the attribute belongs to
- scope: Whether it's an event or profile attribute
- immutable: Whether the attribute is read-only
- event_data_key: Key for imported data or tracker dimension
This information is essential for creating audience conditions with correct
column_id, operators, value_selectors, and most importantly - correct value formats.
Args:
app_id: UUID of the app to list attributes for
Returns:
AttributeListMCPResponse containing:
- attributes: List of AttributeSummary objects with structured metadata
- total: Total number of attributes available
Inputs: app_id (required). Returns: MCP-specific response for listing CDP attributes.
analytics_annotations_getBRead-only
Get a user annotation by ID.
Inputs: app_id (required), annotation_id (required). Returns: Single annotation output for create/get/update tools.
analytics_annotations_listBRead-only
List user annotations for an app.
Args:
app_id: App UUID
date_from: Optional start date (YYYY-MM-DD)
date_to: Optional end date (YYYY-MM-DD)
limit: Max number of items
offset: Number of items to skip
Returns:
Annotations list and metadata
Inputs: app_id (required), limit, offset, source, +2 more. Returns: Combined list output for annotations_list tool.
analytics_custom_dimensions_getARead-only
Get a specific custom dimension by ID.
Note: The scope parameter is required to determine which API to query.
If you don't know the scope, use analytics_custom_dimensions_list() first
to find the dimension and its scope.
Args:
dimension_id: Custom Dimension UUID (data.id, not attributes.tracking_id)
website_id: Website/App UUID
scope: Dimension scope (required for API routing):
- "session" or "event": Query standard custom dimensions API
- "product": Query product custom dimensions API
Returns:
CustomDimensionItem (for session/event) or ProductCustomDimensionItem (for product)
Raises:
RuntimeError: If dimension not found or API request fails
Inputs: scope (required), website_id (required), dimension_id (required). Returns: result
analytics_custom_dimensions_get_slotsARead-only
Get slot availability statistics for all dimension types.
This endpoint provides information about how many dimension slots are available,
used, and remaining for each scope (session, event, and product).
Args:
website_id: Website/App UUID
Returns:
Slot statistics for all dimension scopes with the following info for each:
- available: Total number of slots available
- used: Number of slots currently in use
- left: Number of slots remaining
Raises:
RuntimeError: If API request fails
Inputs: website_id (required). Returns: Slots availability information for all dimension types.
analytics_custom_dimensions_listARead-only
List custom dimensions, optionally filtered by scope.
For standard (session/event) dimensions, attributes.tracking_id is the integer ID shown
in the UI and used in Tag Manager; data[].id is the UUID for get/update, and slot is not an ID.
Args:
website_id: Website/App UUID
scope: Optional scope filter:
- "session": Returns only session-scoped dimensions
- "event": Returns only event-scoped dimensions
- "product": Returns only product dimensions
- None (default): Returns both standard and product dimensions separately
limit: Maximum number of rows to return (default: 10, min: 1, max: 100000)
Note: Only applies to standard dimensions (session/event). Product dimensions
are not paginated by the API.
offset: Number of rows to skip (default: 0, min: 0)
Note: Only applies to standard dimensions (session/event).
Returns:
- If scope is "session" or "event": CustomDimensionsList (filtered by scope)
- If scope is "product": ProductCustomDimensionsList
- If scope is None: UnifiedCustomDimensionsList with both standard and product dimensions
Raises:
RuntimeError: If API request fails
Inputs: website_id (required), limit, scope, offset. Returns: result
analytics_dimensions_details_listARead-only
List details of provided dimensions.
Args:
website_id: UUID of the website/app to get dimensions for
dimensions: list of dimension names
Returns:
The list of all available dimensions with details
Important: Use enum_values object values instead of keys for queries.
Inputs: dimensions (required), website_id (required). Returns: Response for analytics_list_details_dimensions tool.
analytics_dimensions_listARead-only
List available dimensions for analytics queries.
Returns all dimensions that can be used as columns in analytics_query_execute.
To get details use `analytics_dimensions_details_list`
The format of the response:
```
{"dimensions": [{column_id: column_name}],
"custom_channel_groupings": [{custom_channel_grouping_id: column_name}]}
```
Args:
website_id: UUID of the website/app to get dimensions for
Returns:
DimensionsList with all available dimensions and custom channel groupings
Inputs: website_id (required). Returns: Response for analytics_list_dimensions tool.
analytics_goals_getARead-only
Get a specific goal by ID.
Args:
goal_id: Goal UUID
website_id: Website/App UUID
Returns:
Goal resource
Inputs: goal_id (required), website_id (required). Returns: Single goal output for create/get/update tools.
analytics_goals_listARead-only
List all goals for a website.
Use this before goal conversion queries when the user names a specific goal.
Match the goal by exact name in `data[].attributes.name`, then use the goal's
`id` as the `goal_uuid` filter value in `analytics_query_execute`. Do not put
`goal_uuid` in query columns when filtering to a single goal.
Args:
website_id: Website/App UUID
limit: Maximum number of rows to return (default: 10, min: 1, max: 100000)
offset: Number of rows to skip (default: 0, min: 0)
Returns:
Goals list with metadata. Each goal has `id` (UUID) and `attributes.name`.
Inputs: website_id (required), limit, offset. Returns: List output for goals_list tool.
analytics_metrics_details_listARead-only
List details of provided metrics.
Returns all metrics that can be used as columns in analytics_query_execute.
Args:
website_id: UUID of the website/app to get metrics for
metrics: list of metric names
Returns:
The list of all available metrics with details
Inputs: metrics (required), website_id (required). Returns: Response for analytics_list_details_metrics tool.
analytics_metrics_listARead-only
List available metrics for analytics queries.
Returns all metrics that can be used as columns in analytics_query_execute.
The format of the response:
```
{"metrics": [{metric_id: metric_name}], ...}, "calculated_metrics": [{calculated_metric_id: column_name}]
```
Args:
website_id: UUID of the website/app to get metrics for
Returns:
MetricsList with all available metrics
Inputs: website_id (required). Returns: Response for analytics_list_metrics tool.
analytics_query_executeARead-only
Execute an analytics query against Piwik PRO.
Query planning rules:
- Use `columns` only for values that should appear in the result, be grouped by,
aggregated, or sorted.
- Use `filters` for values that narrow the dataset, such as exact names, IDs,
countries, devices, campaigns, pages, goals, or other conditions.
- If the user asks "for X", "named X", "only X", or "with ID X", X is usually
a filter, not a selected column.
- If the user asks "by X", "per X", "which X", or "compare X", X is usually
a selected column/grouping dimension.
- For day-level results, use `timestamp` with `transformation_id="to_date"`.
- For highest/top/most/lowest questions, always set `order_by` on the target
metric column index (zero-based), not on the grouping dimension.
- For period-level summaries (overall bounce rate, total sessions, average
duration for a date range) without "per day", "by day", "daily", or "which day",
do not group by `timestamp`. Use one query with metrics only.
- `session_total_time` is a dimension: use `transformation_id="average"` for
average session duration. Metrics such as `bounce_rate` and `sessions` cannot
be transformed.
- Call `analytics_query_execute` once after selecting validated columns,
filters, date range, limit, and ordering. Re-run it only if the previous query
failed or the result is insufficient to answer.
Goal conversion queries:
- Call `analytics_goals_list` first to resolve a goal name to its UUID (`data[].id`).
- Restrict results to one goal with a `goal_uuid` filter, not a `goal_uuid` column:
{"column_id": "goal_uuid", "condition": {"operator": "eq", "value": "<goal-id>"}}
- Never add `goal_uuid` to `columns` when the user asks about one specific goal.
- Typical columns: `timestamp` with `to_date`, plus `goal_conversions`.
- For "highest/most conversions on which day", always set `order_by` on the
`goal_conversions` column index with `"desc"`.
Multi-period comparisons (e.g. month vs month, before vs after):
- Run one `analytics_query_execute` call per period with the same `columns`,
`limit`, and `order_by`.
- Rank positions are per period: row #3 in January is not rank #3 in February.
- Compare periods by matching the grouping dimension value (e.g. `event_url`),
not by row index.
- Report rank changes as "Jan #X → Feb #Y" using each period's own ranking.
- Pages in only one period's top-N are new or removed; quote session counts
exactly as returned for each period.
REQUIRED WORKFLOW - You must follow these steps in order:
Before calling this tool, always call:
- analytics_dimensions_details_list for every dimension used in columns or filters
- analytics_metrics_details_list for every metric used in columns, metric_filters, or ordering
For day-level grouping, use:
{"column_id": "timestamp", "transformation_id": "to_date"}
Do not use raw {"column_id": "timestamp"} when the user asks for a day/date.
1. Call `analytics_dimensions_list` to get available dimension IDs
2. Call `analytics_metrics_list` to get available metric IDs
3. Call `analytics_dimensions_details_list` for details on dimensions you plan to use
4. Call `analytics_metrics_details_list` for details on metrics you plan to use
5. Call this tool with validated column_ids and transformation_ids
Column IDs and transformation IDs must exactly match values returned by the list and
details endpoints. Guessing or inventing IDs will cause query failures.
DO NOT RUN THIS TOOL BEFORE CHECKING DIMENSIONS AND METRICS DETAILS!
Important: Metrics cannot be transformed. Only dimensions accept transformation_id.
---
Args:
website_id: UUID of the website/app to query
columns: List of column definitions. Each column is a dict with:
- column_id (required): Dimension or metric ID from the list endpoints
(in case of calculated metric use always string "calculated_metric",
in case of custom channel grouping use always string "custom_channel_grouping")
- transformation_id (optional): Aggregation function from details endpoint
(e.g., "sum", "count", "unique_count")
Note: Only dimensions support transformations. Metrics cannot be transformed.
- calculated_metric_id: only for calculated metrics
- custom_channel_grouping_id: only for custom channel groupings
- dimension_value_grouping_id: only for transformation_id = 'dimension_value_grouping'
- event_type: optional int value only for transformed dimension with scope = 'product'
Allowed values:
Order: 9, Abandoned cart: 10, Product detail view: 22, Add to cart: 23, Remove from cart: 24
date_from: Start date in YYYY-MM-DD format
date_to: End date in YYYY-MM-DD format
relative_date: Alternative to date_from/date_to. Options:
today, yesterday, last_week, last_month, last_year, last_X_days
last_X_days must be in range 1 <= X <= 365
For periods beyond the last year use date_from and date_to
filters: Optional dimension filter group with structure:
{"operator": "and"|"or", "conditions": [...]}
Each condition:
{"column_id": "...", "condition": {"operator": "<op>", "value": ...}}
Goal example (single named goal only):
{"operator": "and", "conditions": [
{"column_id": "goal_uuid", "condition": {"operator": "eq", "value": "<goal-id>"}}
]}
Use the goal UUID from `analytics_goals_list` (`data[].id`), not the goal name.
Filter operators:
- String: eq, neq, contains, not_contains, starts_with, ends_with, matches, not_matches
- Numeric: gt, gte, lt, lte
- Null checks: empty, not_empty
Note: Some operators only work with specific data types.
Check dimension/metric details for type compatibility before filtering.
metric_filters: as arg 'filters' but for metrics
offset: Rows to skip (default: 0)
limit: Max rows to return (default: 100, max: 100000)
order_by: List of [column_index, "asc"|"desc"] pairs. Column indices are
zero-based positions in `columns`. For highest/top questions, sort by the
metric being optimized (e.g. columns [timestamp.to_date, goal_conversions]
-> order_by [[1, "desc"]]).
---
Reference:
- Dimension IDs: analytics_dimensions_list
- Metric IDs: analytics_metrics_list
- Dimension details (transformations, types): analytics_dimensions_details_list
- Metric details (types): analytics_metrics_details_list
Inputs: columns (required), website_id (required), limit, offset, +6 more. Returns: Response from query execution.
apps_getARead-only
Get detailed information about a specific app.
Args:
app_id: UUID of the app to retrieve
Returns:
Dictionary containing detailed app information including:
- id: App UUID
- name: App name
- urls: List of URLs where the app is available
- app_type: Type of application
- timezone: App timezone
- currency: App currency
- e_commerce_tracking: Whether e-commerce tracking is enabled
- delay: App delay in milliseconds
- gdpr_enabled: Whether GDPR is enabled
- gdpr_user_mode_enabled: Whether GDPR user mode is enabled
- privacy_cookie_domains_enabled: Whether privacy cookie domains are enabled
- privacy_cookie_expiration_period: Privacy cookie expiration period in seconds
- privacy_cookie_domains: Privacy cookie domains list
- gdpr_data_anonymization: Whether GDPR data anonymization is enabled
- sharepoint_integration: Whether SharePoint integration is enabled
- gdpr_data_anonymization_mode: GDPR data anonymization mode
- privacy_use_cookies: Whether privacy mode uses cookies
- privacy_use_fingerprinting: Whether privacy mode uses fingerprinting
- cnil: Whether CNIL integration is enabled
- session_id_strict_privacy_mode: Whether strict privacy mode is enabled
- real_time_dashboards: Whether real-time dashboards are enabled
- created_at: App creation datetime
- updated_at: App last update datetime
For more tracking details use `tracker_settings_app_get`.
Inputs: app_id (required). Returns: MCP-specific app details response that matches documented schema.
apps_listARead-only
List apps from Piwik PRO analytics.
Retrieves a list of applications (websites/apps) that are being tracked
in the Piwik PRO analytics platform.
Args:
limit: Maximum number of apps to return (default: 100, max: 1000)
offset: Number of apps to skip (default: 0)
search: Search query to filter apps by name
Returns:
Dictionary containing app list and metadata including:
- apps: List of app objects with id, name, urls, timezone, currency, etc.
- total: Total number of apps available
- limit: Number of apps requested
- offset: Number of apps skipped
Inputs: limit, offset, search. Returns: MCP-specific app list response that matches documented schema.
audiences_getARead-only
Get detailed information about a specific audience.
Args:
app_id: UUID of the app
audience_id: UUID of the audience to retrieve
Returns:
Dictionary containing detailed audience information including:
- id: Audience UUID
- name: Audience name
- description: Audience description
- membership_duration_days: Duration in days for audience membership
- version: Audience version
- definition: Audience definition with conditions
- author_email: Email of the audience author
- is_author: Whether current user is the author
- created_at: Audience creation datetime
- updated_at: Audience last update datetime
Inputs: app_id (required), audience_id (required). Returns: MCP-specific audience details response.
audiences_listARead-only
List audiences from Piwik PRO CDP.
Retrieves a list of audiences that are configured in the Piwik PRO
Customer Data Platform for the specified app.
Args:
app_id: UUID of the app to list audiences for
Returns:
Dictionary containing audience list including:
- audiences: List of audience objects with id, name, description, etc.
- total: Total number of audiences available
Inputs: app_id (required). Returns: MCP-specific audience list response that matches documented schema.
container_settings_get_installation_codeARead-only
Get installation code for an app.
Args:
app_id: UUID of the app
Returns:
Object with a single field:
- code: Installation code string
Examples:
container_settings_get_installation_code(app_id="00000000-0000-4000-8000-000000000000")
Inputs: app_id (required). Returns: Response model for container installation code tool.
container_settings_listARead-only
Get container settings for an app.
Args:
app_id: UUID of the app
Returns:
JSON:API response with settings list in 'data' and pagination in 'meta'.
Examples:
container_settings_list(app_id="00000000-0000-4000-8000-000000000000")
Inputs: app_id (required). Returns: Response for container settings list endpoint.
operations_getARead-only
Get a Tag Manager async operation by ID.
Use this tool to check the status of background operations started by
publish, restore, snapshot, copy, export, import, and similar Tag Manager actions.
Args:
app_id: UUID of the app
operation_id: UUID of the operation
Returns:
Dictionary containing operation details including:
- data.id: Operation UUID
- data.type: Always ``operation``
- data.attributes.operation_type: Operation kind (e.g. ``publish``,
``create_snapshot``, ``import/version``)
- data.attributes.state: Lifecycle state (``created``, ``started``,
``completed``, or ``failed``)
- data.attributes.parameters: Input parameters for the operation;
shape depends on ``operation_type`` (e.g. ``target_app_id`` and
``source_version_id`` for ``import/version``)
- data.attributes.summary: Result summary when available; may
contain ``tags``, ``triggers``, and ``variables`` lists. Each
entry maps source and target resource IDs/names and includes
``is_renamed`` when a name changed during import or copy.
When working with versions it can contain following fields:
``export_file_id``, ``version_id``, ``version_type``,
``version_major``, ``version_minor``, ``change_type``.
- data.attributes.created_at: When the operation was created
- data.attributes.started_at: When processing started (if started)
- data.attributes.completed_at: When the operation finished
successfully (if completed)
- data.attributes.failed_at: When the operation failed (if failed)
- data.attributes.updated_at: Last update timestamp
Inputs: app_id (required), operation_id (required). Returns: Response for single Tag Manager resource endpoints.
tags_getARead-only
Get detailed information about a specific tag.
Related Tools:
- tags_list_triggers(app_id, tag_id) - Get triggers attached to this tag
- variables_list(app_id) - Discover valid variable names used by tag fields
Inputs: app_id (required), tag_id (required). Returns: Response for single Tag Manager resource endpoints.
tags_listARead-only
List tags for an app in Piwik PRO Tag Manager.
Args:
app_id: UUID of the app
limit: Maximum number of tags to return (default: 10)
offset: Number of tags to skip (default: 0)
filters: Filter by tag name, is_active, template, consent_type, is_prioritized, has_any_triggers
Inputs: app_id (required), limit, offset, filters. Returns: Response for Tag Manager list endpoints.
tags_list_triggersARead-only
Get list of triggers attached to a specific tag.
Args:
app_id: UUID of the app
tag_id: UUID of the tag
limit: Maximum number of triggers to return
offset: Number of triggers to skip
sort: Sort order - 'name', '-name', 'created_at', '-created_at', etc.
name: Filter by trigger name (partial match)
trigger_type: Filter by trigger type
Inputs: app_id (required), tag_id (required), name, sort, +3 more.
templates_get_tagARead-only
Get requirements and usage details for a specific tag template.
⚠️ IMPORTANT: You MUST call templates_list_tags() first to get exact template names.
Do NOT guess template names — use only names returned by templates_list_tags().
Args:
template_name: Exact template name as returned by templates_list_tags()
Workflow:
1. templates_list_tags() → get exact template names
2. templates_get_tag(template_name='...') → get requirements (this tool)
3. tags_create() → create the tag
Inputs: template_name (required).
templates_get_triggerARead-only
Get requirements and usage details for a specific trigger template.
⚠️ IMPORTANT: You MUST call templates_list_triggers() first to get exact trigger type names.
Do NOT guess trigger type names — use only names returned by templates_list_triggers().
Args:
template_name: Exact trigger type name as returned by templates_list_triggers()
Workflow:
1. templates_list_triggers() → get exact trigger type names
2. templates_get_trigger(template_name='...') → get requirements (this tool)
3. triggers_create() → create the trigger
Inputs: template_name (required).
templates_get_variableARead-only
Get requirements, field mutability, and usage details for a specific variable template.
⚠️ IMPORTANT: You MUST call templates_list_variables() first to get exact variable type names.
Do NOT guess variable type names — use only names returned by templates_list_variables().
Args:
template_name: Exact variable type name as returned by templates_list_variables()
Workflow:
1. templates_list_variables() → get exact variable type names
2. templates_get_variable(template_name='...') → get requirements (this tool)
3. variables_create() or variables_update() → create/update the variable
Inputs: template_name (required).
templates_list_tagsARead-only
List all available tag templates for use with tags_create.
⚠️ IMPORTANT: You MUST call this tool before calling templates_get_tag() or tags_create()
to discover exact template names. Do NOT guess template names.
Workflow:
1. templates_list_tags() → get exact template names
2. templates_get_tag(template_name='...') → get requirements for chosen template
3. tags_create() → create the tag
Inputs: no named parameters.
templates_list_triggersARead-only
List all available trigger templates for use with triggers_create.
⚠️ IMPORTANT: You MUST call this tool before calling templates_get_trigger() or triggers_create()
to discover exact trigger type names. Do NOT guess trigger type names.
Workflow:
1. templates_list_triggers() → get exact trigger type names
2. templates_get_trigger(template_name='...') → get requirements for chosen type
3. triggers_create() → create the trigger
Inputs: no named parameters.
templates_list_variablesARead-only
List all available variable templates for use with variables_create and variables_update.
⚠️ IMPORTANT: You MUST call this tool before calling templates_get_variable() or variables_create()
to discover exact variable type names. Do NOT guess variable type names.
Workflow:
1. templates_list_variables() → get exact variable type names
2. templates_get_variable(template_name='...') → get requirements for chosen type
3. variables_create() or variables_update() → create/update the variable
Inputs: no named parameters.
tools_parameters_getARead-only
Get JSON schema for tool parameters.
This tool provides parameter discovery for MCP tools that use JSON attributes.
It returns the complete JSON schema including field types, descriptions,
validation rules, and examples for tools that have been refactored to use
the simplified JSON attributes interface.
Args:
tool_name: Name of the MCP tool to get parameters for (e.g., "apps_update")
Returns:
Dictionary containing JSON schema for the tool's parameters including:
- type: Object type definition
- properties: Field definitions with types and descriptions
- required: List of required fields (usually empty for update tools)
- definitions: Enum and complex type definitions
Example Usage:
schema = tools_parameters_get("apps_update")
# Returns complete JSON schema with all 19 available fields
Raises:
ValueError: If tool_name is not recognized
Inputs: tool_name (required).
tracker_settings_app_getARead-only
Get effective tracker settings for a specific app.
Args:
app_id: UUID of the app
detailed: When true, include raw app-specific and global inputs alongside resolved settings
Returns:
Dictionary containing:
- settings: Resolved effective tracker settings for the app
- app_settings: Raw app-level settings when detailed=true
- global_settings: Raw global settings when detailed=true
Resolution rules:
- app-specific scalar and boolean values override global values
- null app scalar and boolean values fall back to global values
- app array values are merged with global array values, preserving app values first
- use tracker_settings_global_update to change global defaults explicitly
Inputs: app_id (required), detailed. Returns: Response model for app tracker settings with optional detailed breakdown.
tracker_settings_global_getARead-only
Get global tracker settings.
Returns:
Dictionary containing global tracker settings including:
- anonymize_visitor_geolocation_level: Geolocation anonymization level
- anonymize_visitor_ip_level: IP anonymization level (0-4)
- campaign_*_params: Campaign tracking parameters
- session_* settings: Session handling configuration
- excluded_ips: List of IPs excluded from tracking
- excluded_user_agents: User agents excluded from tracking
- site_search_query_params: Site search query parameters
- site_search_category_params: Site search category parameters
- updated_at: Last modification timestamp
Inputs: no named parameters. Returns: Flat tracker settings response model.
triggers_getARead-only
Get detailed information about a specific trigger.
Related Tools:
- triggers_list_tags(app_id, trigger_id) - See what tags are assigned to this trigger
Inputs: app_id (required), trigger_id (required). Returns: Response for single Tag Manager resource endpoints.
triggers_listARead-only
List triggers for an app in Piwik PRO Tag Manager.
Args:
app_id: UUID of the app
limit: Maximum number of triggers to return (default: 10)
offset: Number of triggers to skip (default: 0)
filters: Optional filter keys: name, trigger_type, has_any_tags,
has_any_condition_with_audience, condition_with_audience_id.
For page-view triggers use trigger_type `page_view` (not `pageview`).
Inputs: app_id (required), limit, offset, filters. Returns: Response for Tag Manager list endpoints.
triggers_list_tagsARead-only
Get list of tags assigned to a specific trigger.
Args:
app_id: UUID of the app
trigger_id: UUID of the trigger
limit: Maximum number of tags to return
offset: Number of tags to skip
sort: Sort order - 'name', '-name', 'created_at', '-created_at', etc.
name: Filter by tag name (partial match)
is_active: Filter by active status
template: Filter by tag template
consent_type: Filter by consent type
is_prioritized: Filter by prioritized status
Inputs: app_id (required), trigger_id (required), name, sort, +6 more.
variables_getBRead-only
Get detailed information about a specific variable.
Inputs: app_id (required), variable_id (required). Returns: Response for single Tag Manager resource endpoints.
variables_listARead-only
List variables for an app in Piwik PRO Tag Manager.
Lists custom (user-created) variables for the app. Do not use this tool to
resolve built-in variable UUIDs for trigger conditions — built-in UUIDs are
fixed platform-wide and are listed in trigger_base.json →
conditions_reference.conditions.<key>.builtin_variable_id.
Args:
app_id: UUID of the app
limit: Maximum number of variables to return (default: 10)
offset: Number of variables to skip (default: 0)
filters: Optional filter keys: `name`, `variable_type`, and `builtin`
Inputs: app_id (required), limit, offset, filters. Returns: Response for Tag Manager list endpoints.
versions_get_draftARead-only
Get draft version for an app.
Args:
app_id: UUID of the app
Returns:
Dictionary containing draft version details including:
- data: Draft version object with all tags, triggers, variables
- Version configuration and metadata
Inputs: app_id (required). Returns: Response for single Tag Manager resource endpoints.
versions_get_publishedARead-only
Get published version for an app.
Args:
app_id: UUID of the app
Returns:
Dictionary containing published version details including:
- data: Published version object with all active tags, triggers, variables
- Version configuration and metadata
Inputs: app_id (required). Returns: Response for single Tag Manager resource endpoints.
versions_listARead-only
List versions for an app in Piwik PRO Tag Manager.
Args:
app_id: UUID of the app
limit: Maximum number of versions to return (default: 10)
offset: Number of versions to skip (default: 0)
Returns:
Dictionary containing version list and metadata including:
- data: List of version objects with id, name, version_type, and timestamps
- meta: Metadata with pagination information
Inputs: app_id (required), limit, offset. Returns: Response for Tag Manager list endpoints.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 40 tools
Most tools are clearly partitioned by resource and action, with predictable list/get pairs across apps, audiences, tags, triggers, variables, versions, annotations, and goals. The main ambiguity is between analytics_dimensions_list / analytics_dimensions_details_list and analytics_metrics_list / analytics_metrics_details_list, where the names are close enough to risk misselection, though descriptions clarify the required order.
The dominant pattern is domain_resource_action in snake_case (apps_get, audiences_list, tags_get, triggers_list_tags, analytics_custom_dimensions_get). There are a few deviations such as templates_list_tags and tracker_settings_global_get, but the convention remains readable and mostly predictable.
With 40 tools, the surface is heavy for an MCP server and exceeds the 25+ threshold where scoping usually becomes an issue. The breadth across analytics, Tag Manager, CDP, tracker settings, and container settings makes the tool count hard to manage for an agent.
The server covers many read/list/get operations well, but it lacks almost all create, update, delete, publish, and restore operations for apps, tags, triggers, variables, audiences, annotations, goals, and custom dimensions. Several descriptions even instruct the agent to use tools such as tags_create and triggers_create that are not present, creating dead ends.
Maintenance
Related MCP Connectors
Let AI manage your Google Tag Manager containers — tags, triggers, variables, and more.
- AdCopilotDeprecatedcloud.adcopilot
Google Ads, GA4, Search Console and Tag Manager for AI assistants. Every change is proposed first.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Privacy-friendly analytics: ask your assistant about visitors, events, funnels and drop-offs.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to query Google Analytics accounts, properties, and run reports using natural language through the Admin and Data APIs.62Apache 2.0
- AlicenseAqualityCmaintenanceEnables AI assistants to query Google Analytics 4 properties for standard, pivot, realtime, and batched reports, discover accounts, properties, and metadata, and optionally manage custom dimensions, metrics, and key events.14MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants like Claude, ChatGPT, and Cursor to query GA4 traffic, conversion, channel, e-commerce, and demographic reports conversationally, and to manage properties, data streams, audiences, key events, and other configuration through 62 read and write actions. Access can be scoped per account with read-only mode and destructive actions disabled by default.MIT

Open Tracked MCPofficial
AlicenseAqualityCmaintenanceEnables AI assistants to manage Open Tracked containers and Google Tag Manager, including domains, tracking scores, power-ups, and one-request GTM pack installation.5Apache 2.0