Feedback

Google Analytics Data API MCP Server — by mattcoatsworth

@mattcoatsworth Claim

Basic information

Runtime
node
Category
License
Not specified
Transports
stdio
Author
mattcoatsworth
Submitted by
Community
Quality
10

About Google Analytics Data API MCP Server

# Google Analytics Data API MCP Server

Google Analytics Data API MCP Server is a MCP server in the Data & Analytics category listed in the AddMCP.net directory, published by mattcoatsworth. Supported transport: stdio. Runtime: node. Source code is hosted on github.com. Related topics: data-api, google-analytics, mcp-server.

Google Analytics Data API MCP Server — by mattcoatsworth config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Google Analytics Data API MCP Server — by mattcoatsworth tools

Tool list not available yet

This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Google Analytics Data API MCP Server?

A Model Context Protocol (MCP) server for interacting with the Google Analytics Data API v1. It provides tools and resources for querying Google Analytics data, managing audiences, and accessing metadata.

How to use Google Analytics Data API MCP Server?

Configure the server by creating a .env file with GOOGLE_CLIENT_EMAIL, GOOGLE_PRIVATE_KEY, and DEFAULT_PROPERTY_ID. Install dependencies with npm install, then start the server using npm start or test with npm run inspect.

Key features of Google Analytics Data API MCP Server

  • Run standard and pivot reports (single or batch)
  • Create, list, update, and delete audiences
  • Check compatibility between dimensions and metrics
  • Access metadata about dimensions and metrics
  • Browse dimensions and metrics by category
  • Expose property, report, and audience resources via URIs

Use cases of Google Analytics Data API MCP Server

  • Running custom reports on GA4 data with specified dimensions and metrics
  • Creating and managing audience segments for marketing
  • Batch-running multiple reports in a single request
  • Exploring available dimensions, metrics, and their compatibility
  • Automating audience lifecycle (create, read, update, delete) from tools like Claude

Frequently asked questions

1 What are the prerequisites to run this server?

Node.js 14 or higher, a Google Analytics 4 property, and a Google Cloud service account with appropriate permissions.

2 How do I configure the server?

Create a .env file with three variables: GOOGLE_CLIENT_EMAIL, GOOGLE_PRIVATE_KEY, and DEFAULT_PROPERTY_ID. The property ID must use the format properties/123456789.

3 What tools does the server expose?

Eleven tools covering reporting (runReport, batchRunReports, runPivotReport, batchRunPivotReports), metadata (getMetadata, checkCompatibility), and audience management (createAudience, listAudiences, getAudience, deleteAudience, updateAudience).

4 What resources (URIs) are available?

Resources include ga://property/{propertyId}, ga://report/…, ga://metadata, ga://dimensions[/category], ga://metrics[/category], and ga://audiences/{propertyId}[/{audienceId}].

5 What is the license for this server?

The project is licensed under the MIT license.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬