mcp-server-google-analytics
This project implements an MCP server for accessing Google Analytics 4 data using the Model Context Protocol TypeScript SDK. It provides features like customizable page view metrics, active and new user tracking, event analysis, and user behavior monitoring.
What are the prerequisites for setting up the Google Analytics MCP Server?
You need Node.js 20 or higher, a Google Analytics 4 property, a Google Cloud project with the Analytics Data API enabled, and service account credentials with appropriate permissions.
How do I install the Google Analytics MCP Server using Smithery?
You can install it automatically via Smithery by running the command: npx -y @smithery/cli install mcp-server-google-analytics --client claude
.
What security measures should I consider when using the MCP Server?
Use environment variables for sensitive credentials, implement appropriate CORS settings, follow the principle of least privilege for service account permissions, regularly rotate credentials, and monitor API usage with rate limiting.
Can I customize the dimensions for page view metrics?
Yes, the server allows you to customize dimensions for page view metrics, such as specifying 'page' and 'country'.
What license is the Google Analytics MCP Server distributed under?
The project is licensed under the MIT License.