Delmain Ga4 Mcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Delmain Ga4 Mcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A small MCP server that lets any MCP client (Claude Desktop, Claude Code, Cursor, ...) query Google Analytics 4.
It is intentionally neutral: tools take a property ID plus free-form dimensions and metrics, so it works for PPC, SEO, content, leadership, anyone. Each person authenticates with their own Google account (per-user OAuth), so everyone only sees the GA4 properties they already have access to.
| Tool | What it does |
|---|---|
list_properties | List every GA4 account + property your account can read |
get_property | Metadata for one property (name, timezone, currency) |
run_report | Report with any dimensions/metrics over a date range |
run_realtime_report | Active users / events in the last ~30 minutes |
run_report is the workhorse. Example dimensions: sessionSource, sessionMedium, landingPage, date, country, deviceCategory, eventName. Example metrics: sessions, totalUsers, newUsers, screenPageViews, bounceRate, averageSessionDuration, conversions, eventCount.
The fastest path. Open Claude Code (or the Code tab in the Claude Desktop App) and paste:
Install the MCP server from https://github.com/aline-delmain/delmain-ga4-mcp — pip install it and add it to my MCP config as "delmain-ga4".Claude will clone the repo, install the package, and wire up your MCP client config. Then you finish the two steps Claude can't do for you (by design, since every person authenticates as themselves):
client_id / client_secret (from the team vault) into~/.delmain-ga4-mcp/.env.
delmain-ga4-mcp-setup and authorize in the browser with your ownGoogle account.
Restart your MCP client and the GA4 tools show up.
Note: a plain chat at claude.ai cannot install software, only Claude Code or the Desktop Code tab can. And the admin setup below must be done once first, otherwise authorization fails withorg_internal/SERVICE_DISABLED.
app, create (or reuse) an OAuth client of type Desktop app. Note its client ID and client secret.
screen to Internal (org-only) and you're done.
Publish the app (status: In production). While in Testing, only listed test users can authorize.
analyticsdata.googleapis.com)analyticsadmin.googleapis.com)They are shared by everyone; only each person's refresh token is personal.
There is a one-shot installer for each OS. It finds Python, installs the package, registers the MCP with Claude Code using the full executable path (so a missing PATH entry doesn't break it), writes your .env, and runs the browser authorization.
Windows (install-delmain-ga4-mcp.ps1):
powershell -ExecutionPolicy Bypass -File .\install-delmain-ga4-mcp.ps1macOS / Linux (install-delmain-ga4-mcp.sh):
bash install-delmain-ga4-mcp.shIt will ask you to paste the OAuth client_id / client_secret from the team vault. That's the only manual input. Then restart your MCP client.
Claude Desktop users: the script auto-registers only with Claude Code (via theclaudeCLI). If you use the Desktop app, the script prints a"mcpServers"JSON block with the full executable path. Copy that block into yourclaude_desktop_config.json(Settings → Developer → Edit Config), then restart the app. Same block works for Cursor's~/.cursor/mcp.json.
Requires Python 3.10+.
# 1. Install (from the repo, or once published, from GitHub)
pip install git+https://github.com/<org>/delmain-ga4-mcp.git
# or, working in a clone:
pip install -e .
# 2. Configure credentials
mkdir -p ~/.delmain-ga4-mcp
cp .env.example ~/.delmain-ga4-mcp/.env
# edit it and paste DELMAIN_GA4_CLIENT_ID + DELMAIN_GA4_CLIENT_SECRET
# (from the team vault). Leave the refresh token blank.
# 3. Generate YOUR personal refresh token (opens the browser)
delmain-ga4-mcp-setup
# sign in with the Google account that has your GA4 access, then authorize.That writes your refresh token to ~/.delmain-ga4-mcp/.env. Done.
The server runs over stdio via the delmain-ga4-mcp command.
Add to your MCP config (claude_desktop_config.json, or .mcp.json / ~/.claude.json for Claude Code):
{
"mcpServers": {
"delmain-ga4": {
"command": "delmain-ga4-mcp"
}
}
}~/.cursor/mcp.json:
{
"mcpServers": {
"delmain-ga4": { "command": "delmain-ga4-mcp" }
}
}Restart the client. You should see the GA4 tools available.
analytics.readonly; it cannotchange anything in GA4.
.env, *.json credentials are gitignored. Share theOAuth client via the vault, never by committing it.
see. list_properties shows exactly that set.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.