gtm-ga4-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GTM_GA4_MCP_DENY | No | Comma-separated list of tool names to disable, e.g., 'gtm_get,ga4_run_report'. Equivalent to passing --deny for each listed tool. | |
| GTM_GA4_MCP_ALLOW_WRITE | No | Set to '1' to enable the write tier tools (gtm_create, gtm_update, ga4_admin_create, ga4_admin_update). Equivalent to passing --allow-write. | 0 |
| GTM_GA4_MCP_ALLOW_DESTRUCTIVE | No | Set to '1' to enable the destructive tier tools (gtm_delete, gtm_publish, gtm_permissions, ga4_admin_delete). Equivalent to passing --allow-destructive. | 0 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ga4_account_summariesA | List every GA4 account and property the authenticated user can access. This is the entry point for all GA4 work — it returns the property IDs the other ga4_* tools need. |
| ga4_admin_listA | List a GA4 property's sub-entities. Covers data streams, key events, custom dimensions/metrics, Google Ads links, and Firebase links. |
| ga4_metadataA | List the dimension/metric API names available on a property (standard + custom). Use this before ga4_run_report to find exact API names. |
| ga4_property_getA | Fetch one GA4 property's full configuration (timezone, currency, industry, service level). |
| ga4_run_realtime_reportA | Run a GA4 realtime report (last 30 minutes) — e.g. to verify events are firing now. |
| ga4_run_reportA | Run a GA4 report over a date range and return one dict per row. Rows are keyed by the requested dimension/metric API names. |
| gtm_getA | Fetch one GTM entity's complete JSON by its path (tag, trigger, variable, version, ...). Note: fetching a version returns the entire published container (large). |
| gtm_listA | List Google Tag Manager entities one hierarchy level at a time. Returns trimmed summaries (path, name, type, IDs) to keep context small;
each item's |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kb223/gtm-ga4-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server