Back to Home
mattwilkerson1121 icon

ga-ai-mcp-server

Verified Safe

by mattwilkerson1121

Overview

This server allows AI agents to query Google Analytics 4 data (reports, traffic sources, demographics, etc.) via the Model Context Protocol (MCP).

Installation

Run Command
npm start

Environment Variables

  • GOOGLE_APPLICATION_CREDENTIALS
  • GA4_PROPERTY_ID
  • NODE_OPTIONS

Security Notes

The server uses Google's official client libraries for GA4, which are generally secure. Credential handling relies on a service account JSON key file. While `src/index.js` has a default local path (`asidatakpiskey.json`), the recommended and documented approach through `.env` or `claude-config.json` is to use the `GOOGLE_APPLICATION_CREDENTIALS` environment variable pointing to the absolute path of the key file. This allows for secure storage of credentials outside the project directory. No `eval` or obvious malicious patterns were found. Network exposure is limited as it's an MCP server over stdio, not an HTTP server.

Similar Servers

Stats

Interest Score35
Security Score8
Cost ClassMedium
Avg Tokens3000
Stars1
Forks0
Last Update2025-11-26

Tags

GA4Google AnalyticsAnalyticsAI AgentMCP