Gsc MCP Server

Google Analytics report querying and property management via the MCP standard.

Data last scanned 2 days ago · Reviewed 2 days ago

157 tools6JavaScript

Overview

This Node.js server facilitates structured interaction with Google Analytics APIs for automated reporting and configuration management. Developers can retrieve performance metrics such as sessions, users, and conversion events, while also managing data streams and custom dimensions directly through their AI-assisted workflow.

Our verdict

With a high-risk security score of 15/100, this server should be used with extreme caution. The project is community-maintained rather than vendor-backed, and its lack of a declared license creates legal uncertainty regarding usage. Additionally, the repository has been inactive for over a year (390 days since the last commit), meaning potential bugs or API changes remain unaddressed. It is not recommended for production environments.

  • Provides seven distinct tools for comprehensive analytics management
  • Contains detailed README documentation for setup
  • Uses a small dependency footprint of seven packages
  • No detected license for open-source use
  • Last commit was 390 days ago
  • Community-maintained without official vendor support
  • High security risk score of 15/100

Setup

Claude Desktop
{
  "mcpServers": {
    "gsc-mcp": {
      "args": [
        "-y",
        "gsc-mcp"
      ],
      "command": "npx"
    }
  }
}

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), then restart Claude Desktop. Some servers require API keys or tokens as environment variables — check the project's README and add an "env" object if needed.

  • No read-only mode — running this grants full read/write access.
  • No built-in authentication — anyone with access to this config can invoke every tool it exposes.

Tools

ToolDescriptionRisk
get_reportsGet analytics reports data for specified metrics and dimensionslow
list_accountsList all Google Analytics accountslow
list_propertiesList properties for a Google Analytics accountlow
list_data_streamsList data streams for a propertylow
list_custom_dimensionsList custom dimensions for a propertylow
list_custom_metricsList custom metrics for a propertylow
list_conversion_eventsList conversion events for a propertylow

Compatibility

ClientLocalDockerRemoteRead-only
Claude Desktop
Cursor
VS Code
Windsurf
ChatGPT

Frequently asked questions

What software prerequisites are required to run the Gsc MCP server?

You must have Node.js version 18 or later installed on your machine.

How does the server handle Google OAuth2 token expiration?

The server automatically manages token refreshing using your provided refresh token during API calls.

What are the recommended OAuth2 credential configurations?

Using a Web application client ID with the redirect URI set to http://localhost:3000/auth/callback is the recommended approach.

Are there built-in tools for generating required OAuth2 tokens?

Yes, you can use the included helper script by running 'npm run oauth-helper' or use the Google OAuth2 Playground.

How can I configure the environment variables for this server?

You can either use a .env file created via the 'npm run setup-env' command or set the required export variables directly in your terminal session.

Badge

Gsc MCP Server security score, rated on RepoAI

Maintain this server? Add the live badge to your README.