GA4 MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GA4_PROPERTY_ID | Yes | Your GA4 property ID (numeric, e.g., 544866887) | |
| GA4_CREDENTIALS_PATH | Yes | Path to the GA4 service account JSON file (e.g., ./credentials.json) |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_traffic_summaryA | Get overall traffic summary for a date range (sessions, users, page views, bounce rate, avg session duration) |
| get_top_pagesB | Get top pages by views for a date range |
| get_traffic_sourcesB | Get traffic breakdown by source (organic, direct, referral, etc.) |
| get_user_engagementC | Get user engagement metrics (engaged sessions, bounce rate, avg session duration, screens per session) |
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
- 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/aarcheco/ga4-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server