M

MCP Server Ga4

This is a server project that provides MCP services for Google Analytics 4, including functions such as data acquisition, resource query, and data analysis. It needs to be used with Google service account authentication.
2.5 points
17

What is the MCP server?

The MCP server is a tool based on the Model Context Protocol, specifically designed to connect and operate Google Analytics 4 (GA4) data. It allows you to easily obtain various metric and dimension data, such as page views, active user numbers, and event data.

How to use the MCP server?

Through a simple command-line interface, you can quickly query and analyze your GA4 data. Just a few steps of setup and configuration are required to start using it.

Applicable scenarios

Suitable for enterprises and teams that need to regularly monitor website traffic, user behavior, and the effectiveness of marketing campaigns.

Main features

Get page viewsObtain the page view data of the website according to the specified date range.
Get the number of active usersCount the number of active users within the specified date range.
Get event dataAnalyze user interaction events on the website, such as button clicks or form submissions.
Get user behaviorAnalyze user behavior metrics such as session duration and bounce rate.
Get property informationView the available dimensions, metrics, and comparison options of GA4 properties.
Filter and screen dataFilter data through multiple conditions to ensure accurate results.

Advantages and limitations

Advantages
Quick access to Google Analytics 4 data
Support for multiple data query and analysis functions
Easy integration into existing workflows
Provide detailed filtering and pagination functions
Limitations
Requires correct Google service account permissions
Data queries may be affected by API limitations
Requires a certain technical background for configuration

How to use

Installation and configuration
Clone the repository and install dependencies according to the instructions in the README.
Set environment variables
Create a .env file and fill in the necessary configurations.
Run the server
Start the MCP server and verify the connection.

Usage examples

Case 1: Get page viewsQuery page views within a specific date range.
Case 2: Generate a user behavior reportAnalyze user behavior patterns, such as session duration and bounce rate.

Frequently asked questions

How to solve authentication errors?
Why can't I see any data?
How to handle connection errors?

Related resources

Official GitHub repository
Source code and documentation for the MCP server.
Google Analytics 4 API documentation
Understand how the GA4 API works.
MCP Protocol official website
More information about the Model Context Protocol.
Installation
Copy the following command to your Client for configuration
{
  "mcpServers": {
    "ga4": {
      "command": "node",
      "args": ["/path/to/mcp-server-ga4/dist/index.js"],
      "env": {
        "GOOGLE_PROJECT_ID": "your-project-id",
        "GOOGLE_CLIENT_EMAIL": "your-service-account-email@example.iam.gserviceaccount.com",
        "GOOGLE_PRIVATE_KEY": "your-private-key",
        "GA_PROPERTY_ID": "your-ga4-property-id"
      }
    }
  }
}

{
  "mcpServers": {
    "ga4": {
      "command": "node",
      "args": ["/path/to/mcp-server-ga4/dist/index.js"],
      "env": {
        "GOOGLE_PROJECT_ID": "your-project-id",
        "GA_PROPERTY_ID": "your-ga4-property-id",
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/your/credentials.json"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.
M
MCP Server Airbnb
Certified
MCP service for Airbnb listing search and details query
TypeScript
246
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
3.9K
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
449
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
268
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
1.8K
5 points
P
Perplexity Research Assistant
The Perplexity MCP Server is an intelligent research assistant that uses Perplexity's AI model to automatically analyze query complexity and select the best model to process requests. It supports three tools: search, reasoning, and in - depth research.
TypeScript
263
4.5 points
A
Arxiv
The ArXiv MCP Server is a bridge connecting AI assistants with the arXiv research library, enabling paper search and content access through the MCP protocol.
Python
1.1K
5 points
S
Sail
Sail is a project aiming to unify stream processing, batch processing, and compute - intensive (AI) workloads. It provides an alternative to Spark SQL and Spark DataFrame APIs and supports both standalone and distributed environments.
Rust
890
5 points
Featured MCP Services
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
827
4.3 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
1.7K
5 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
85
4.3 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
139
4.5 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
6.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#
562
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
281
4.5 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
751
4.8 points
AIbase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIbase