Skip to main content
Glama
Google Tag Manager MCP Server

Google Tag Manager MCP Server

by noviq-ai
README.md
# Google Tag Manager MCP Server

[MCP](https://modelcontextprotocol.io) server for [Google Tag Manager](https://tagmanager.google.com/).

## Tools

- `list_accounts`: List accessible GTM accounts
- `list_containers`: List containers for an account
- `list_workspaces`: List workspaces in a container
- `list_tags`: List tags in a workspace
- `list_triggers`: List triggers in a workspace
- `list_variables`: List variables in a workspace
- `get_live_container_version`: Get the currently published container version

## Setup

Requires a Google service account with read access to your GTM account.

Set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to the path of your service account JSON file.

```json
{
  "mcpServers": {
    "google-tag-manager-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/noviq-ai/google-tag-manager-mcp.git",
        "python",
        "-m",
        "tag_manager_mcp.server"
      ],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
      }
    }
  }
}
```