Skip to main content
Glama
aline-delmain

Delmain GA4 MCP

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DELMAIN_GA4_CLIENT_IDYesOAuth client ID from Google Cloud
DELMAIN_GA4_CLIENT_SECRETYesOAuth client secret from Google Cloud

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_propertiesA

List every GA4 account and property the authenticated user can read.

Use this first to discover property IDs. Returns account name, property name, and the numeric property_id needed by every other tool.

get_propertyA

Get metadata for one GA4 property: display name, time zone, currency.

property_id: numeric GA4 property ID (e.g. "463688888"). If omitted, uses DELMAIN_GA4_PROPERTY_ID from the environment when set.

run_reportA

Run a GA4 report with arbitrary dimensions and metrics.

property_id: numeric GA4 property ID. Call list_properties() to find it. dimensions: GA4 dimension API names, e.g. ["sessionSource", "sessionMedium"], ["landingPage"], ["date"], ["country"], ["deviceCategory"], ["eventName"]. Pass [] for a single totals row. metrics: GA4 metric API names, e.g. ["sessions", "totalUsers", "newUsers", "screenPageViews", "bounceRate", "averageSessionDuration", "conversions", "eventCount"]. Defaults to ["sessions"]. start_date / end_date: either "YYYY-MM-DD" or relative like "7daysAgo", "28daysAgo", "today", "yesterday". limit: max rows (default 50). order_by_metric: metric name to sort by (e.g. "sessions"). Empty = API default. order_desc: sort descending when order_by_metric is set.

run_realtime_reportA

Run a GA4 realtime report (active users in roughly the last 30 minutes).

property_id: numeric GA4 property ID. dimensions: e.g. ["unifiedScreenName"], ["country"], ["deviceCategory"]. metrics: e.g. ["activeUsers"], ["screenPageViews"]. Defaults to ["activeUsers"].

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/aline-delmain/delmain-ga4-mcp'

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