Skip to main content
Glama
ZLeventer

Google Analytics MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GA4_PROPERTY_IDYesNumeric property ID from GA4 Admin -> Property Settings (e.g. 123456789). Not the Measurement ID (G-XXXXXXX).
GOOGLE_APPLICATION_CREDENTIALSYesAbsolute path to the service account JSON key file.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ga4_run_reportA

Flexible GA4 Data API runReport. Pass any dimensions + metrics. Use for custom reports the preset tools don't cover.

ga4_organic_search_performanceA

SEO: sessions/users/engagement/conversions for Organic Search traffic, broken down by landing page (default), source, country, or device.

ga4_paid_search_performanceB

Paid: sessions/conversions/cost/CPC for Paid Search traffic, broken down by campaign (default), landing page, keyword, or source.

ga4_all_paid_performanceA

Paid: all paid channels (Search + Social + Video + Display + Other) broken down by channel × campaign × source × medium, with cost and ROAS.

ga4_google_ads_performanceA

Paid: Google Ads campaign × ad group × keyword performance (impressions, clicks, cost, CPC, conversions, ROAS). Requires Google Ads ↔ GA4 link.

ga4_landing_page_performanceA

Top landing pages by sessions/engagement/conversions. Optional channel filter (e.g. 'Organic Search', 'Paid Search').

ga4_channel_performanceB

Default channel group rollup: sessions/users/conversions/revenue for Organic Search, Paid Search, Email, Direct, Referral, etc.

ga4_campaign_performanceB

Campaign × source × medium breakdown with sessions/conversions/revenue. Optional channel filter.

ga4_conversions_by_sourceB

Conversions and key events broken down by session source × medium × channel group. Sorted by key events desc.

ga4_realtime_active_usersB

Current active users (last 30 min) broken down by screen/page, country, device, or audience.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/ZLeventer/google-analytics-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server