MCP Server Google Analytics
M

MCP Server Google Analytics

A Google Analytics 4 data access server based on the Model Context Protocol, providing data query functions for page views, user activity, event analysis, and user behavior.
2.5 points
9.4K

What is Google Analytics MCP Server?

Google Analytics MCP Server is a server based on the Model Context Protocol, used to access data from Google Analytics 4 (GA4). It can help you gain in - depth insights into website traffic, user behavior, and event performance.

How to use Google Analytics MCP Server?

Through simple configuration and API calls, you can easily obtain the required analysis data. Just set up the environment variables and start the server to begin using it.

Applicable scenarios

Suitable for enterprises and individual developers who need to conduct in - depth analysis of website traffic, user behavior, and event performance.

Main features

Page view analysis
Obtain page views and their related dimensions (such as page URL, country) within a specific date range.
Active user statistics
Track the change in the number of active users over a period of time.
Event analysis
Analyze the occurrence frequency of specific events and their related indicators.
User behavior analysis
Monitor key indicators such as user session duration and bounce rate.
Flexible date selection
Support custom date ranges for all queries.
Advantages
Support multi - dimensional data queries to meet complex analysis needs.
Easy to integrate into existing systems.
Provide comprehensive user behavior and event data.
Flexible date selection function to meet the needs of different time spans.
Limitations
Require Google Cloud project and GA4 permission configuration.
May involve high API call fees.
For non - technical users, the initial configuration may be a bit complicated.

How to use

Install dependencies
Ensure that Node.js 20 or a higher version is installed, and install the MCP server via npm or pnpm.
Configure environment variables
Set Google service account credentials and GA4 property ID.
Start the server
Run the command to start the MCP server.

Usage examples

Obtain page view data
Query page view data within a specific date range.
Monitor active user trends
Track the growth of active users over a period of time.

Frequently Asked Questions

How to create a Google Cloud project?
Why did my API call fail?
How to optimize performance?

Related resources

Official documentation
Official documentation for the Google Analytics Data API.
GitHub code repository
MCP Server GitHub code repository.
Example tutorial video
Quick - start tutorial.

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "google-analytics": {
      "command": "npx",
      "args": ["-y", "mcp-server-google-analytics"],
      "env": {
        "GOOGLE_CLIENT_EMAIL": "your-service-account@project.iam.gserviceaccount.com",
        "GOOGLE_PRIVATE_KEY": "your-private-key",
        "GA_PROPERTY_ID": "your-ga4-property-id"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
9.2K
5 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
8.4K
5 points
A
Apple Health MCP
An MCP server for querying Apple Health data via SQL, implemented based on DuckDB for efficient analysis, supporting natural language queries and automatic report generation.
TypeScript
8.7K
4.5 points
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
13.7K
4 points
F
Firecrawl MCP Server
The Firecrawl MCP Server is a Model Context Protocol server integrating Firecrawl's web - scraping capabilities, providing rich web - scraping, searching, and content - extraction functions.
TypeScript
68.8K
5 points
R
Rednote MCP
RedNote MCP is a tool that provides services for accessing Xiaohongshu content. It supports functions such as authentication management, keyword - based note search, and command - line initialization, and can access note content via URL.
TypeScript
12.4K
4.5 points
P
Perplexity MCP
Certified
An MCP server based on the Perplexity AI API, providing web search functionality for the Claude desktop client.
Python
15.8K
4.1 points
E
Exa Web Search
Certified
The Exa MCP Server is a server that provides web search capabilities for AI assistants (such as Claude), enabling real-time and secure web information retrieval through the Exa AI Search API.
TypeScript
27.4K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
15.0K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
25.0K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
45.5K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
16.1K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
45.7K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
20.6K
5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
65.8K
4.7 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
31.2K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase