GA4 Analytics MCP V3
GA4 Analytics MCP V3
Коннектор True Model B: один MCP-оператор может владеть несколькими независимыми Google OAuth-подключениями. Каждый запрос GA4 выполняется с теми учетными данными Google, у которых есть доступ к этому ресурсу.
Это новое приложение. Оно не изменяет V2 и не использует Firestore (default) (зарезервирован для V1).
Локальная разработка
cd D:\MCP_Servers\Ga4McpV3
npm install
copy .env.example .env.local
# Fill secrets. Set FIRESTORE_DATABASE_ID=ga4-mcp-v3 (never (default)).
npm test
npm run devПриложение:
http://localhost:3000MCP:
http://localhost:3000/mcpHealth:
http://localhost:3000/health
Related MCP server: GA4 MCP Server
Пользовательский коннектор Claude
URL: https://<v3-host>/mcp
Claude запускает MCP OAuth 2.1 (тот же поток, что и V2).
Первый вход через Google создает внутренний
operatorId.После этого подключайте дополнительные учетные записи Google со страницы подключений или через
ga4_start_google_connection.JWT
subв MCP всегда являетсяoperatorId, а не Google OpenIDsub.
Подключение второй или третьей учетной записи Google
Из Claude вызовите ga4_start_google_connection и откройте возвращенный URL. Или используйте Подключить другую учетную запись Google на странице подключений во время авторизации. Каждая авторизация — это независимая OAuth-идентичность.
Маршрутизация ресурсов
property_id → this operator's ga4_properties row → connection_id → encrypted refresh token → GA4 APIСервер никогда не использует текущий браузерный Google-вход, почту Claude или имя ресурса для выбора учетных данных.
Изоляция операторов
Оператор A не может загрузить подключения оператора B, угадав connectionId. Права владения проверяются на стороне сервера при каждой чувствительной операции.
Cloud Run
.\scripts\cloud-run-setup.ps1 -ProjectId YOUR_PROJECT_ID
.\scripts\cloud-run-deploy.ps1 -ProjectId YOUR_PROJECT_ID
.\scripts\cloud-run-set-env.ps1 `
-ProjectId YOUR_PROJECT_ID `
-AppBaseUrl https://YOUR_V3_CLOUD_RUN_URL `
-GoogleClientId ... -GoogleClientSecret ... `
-McpTokenSecret ... -OauthStateSecret ... -TokenEncryptionKey ...Создайте именованную базу данных Firestore ga4-mcp-v3 перед первым использованием. Используйте отдельный Google OAuth веб-клиент от V1/V2.
Документация
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Analytics APIs to fetch reports, manage properties, data streams, conversion events, and custom dimensions/metrics through OAuth2 authentication.1606MIT
- FlicenseAqualityDmaintenanceEnables interaction with Google Analytics 4 to manage accounts, run standard or realtime reports, and validate event parameters. It supports dual authentication methods and integrates with GTM for end-to-end data collection orchestration.8
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to securely manage Google Workspace services (Gmail, Calendar, Drive, Sheets, Contacts) with persistent multi-account OAuth. Uses OS keychain for credential storage with health monitoring and granular business rules for enterprise security.
- FlicenseNot gradedqualityBmaintenanceEnables multi-user access to Google Workspace services (Gmail, Calendar, Docs, Sheets, Slides, Drive) via remote MCP with OAuth 2.1 authentication.
Related MCP Connectors
Odoo ERP for AI agents: hosted OAuth endpoint, gated writes, one endpoint for every instance.
Self-hosted federated MCP gateway: one OAuth 2.1 MCP server in front of N apps, user-level scopes.
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
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/devopsbrandmirchi/Ga4McpV3'
If you have feedback or need assistance with the MCP directory API, please join our Discord server