Google Analytics Data API MCP Server
@eno-graph
关于 Google Analytics Data API MCP Server
A MCP server for Google Analytics Data API
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Google Analytics Data API MCP Server?
The Google Analytics Data API MCP Server provides a Model Context Protocol (MCP) interface to access the Google Analytics Data API. It is aimed at developers who want to query GA4 reports, real-time data, and property metadata using AI assistants like Claude.
How to use Google Analytics Data API MCP Server?
Clone the repository, run npm install and npm build, then set the environment variables GOOGLE_CLIENT_EMAIL, GOOGLE_PRIVATE_KEY, and GA_PROPERTY_ID. Start the server with npm start or ./run-server.sh, or configure it as an MCP server in Claude Desktop by adding the command and environment variables to the configuration file.
Key features of Google Analytics Data API MCP Server
- get_report tool: fetch reports with date range, metrics, and dimensions
- get_realtime_data tool: retrieve real-time analytics data
- ga4://property/{propertyId}/metadata resource: access property metadata
Use cases of Google Analytics Data API MCP Server
- Query historical user engagement metrics over custom date ranges
- Monitor live audience activity broken down by device category
- Explore available metrics and dimensions for a GA4 property
FAQ from Google Analytics Data API MCP Server
What tools does the server provide?
Two tools: get_report for historical reports and get_realtime_data for live data.
What are the prerequisites?
A Google Cloud project with the Analytics Data API enabled, a service account with JSON credentials, and access to a GA4 property.
How do I configure environment variables?
Set GOOGLE_CLIENT_EMAIL, GOOGLE_PRIVATE_KEY, and GA_PROPERTY_ID in your shell or Claude Desktop config.
How do I use this server with Claude Desktop?
Add an mcpServers entry with command: "node", args pointing to the build index, and the required environment variables.
What does the resource ga4://property/{propertyId}/metadata do?
It provides access to the property's metadata, listing available metrics and dimensions.
数据与分析 分类下的更多 MCP 服务器
Healthcare MCP Server
CicatriizA Model Context Protocol (MCP) server providing AI assistants with access to healthcare data and medical information tools, including FDA drug info, PubMed, medRxiv, NCBI Bookshelf, clinical trials, ICD-10, DICOM metadata, and a medical calculator.
🪐✨ Jupyter MCP Server
datalayer🪐 🔧 Model Context Protocol (MCP) Server for Jupyter.
🎓 Semantic Scholar MCP Server
JackKuo666🔍 This project implements a Model Context Protocol (MCP) server for interacting with the Semantic Scholar API. It provides tools for searching papers, retrieving paper and author details, and fetching citations and references.
dbt MCP Server
dbt-labsA MCP (Model Context Protocol) server for interacting with dbt.
Bright Data MCP
luminati-ioA powerful Model Context Protocol (MCP) server that provides an all-in-one solution for public web access.
评论