MCP Search Analytics Server
Provides access to Google Analytics 4 data, enabling real-time analytics queries and data analysis through the MCP interface
Utilizes Google Cloud Project and Service Account for secure authentication and API access to Google Analytics and Search Console services
Enables unified access to Google Search Console data, allowing for real-time search performance analysis and queries through the MCP interface
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Search Analytics Servershow me last week's top search queries"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Search Analytics Server
A Model Context Protocol (MCP) server for Google Analytics and Search Console data analysis.
🚀 Features
Unified access to Google Analytics 4 and Google Search Console data
Real-time analytics queries through MCP interface
Secure credential management via environment variables
Related MCP server: Google Search Console MCP Server
🔧 Setup
Prerequisites
Python 3.8+
Google Cloud Project with Analytics and Search Console APIs enabled
Google Service Account with appropriate permissions
Installation
Clone this repository:
git clone https://github.com/vesivanov/mcp-search-analytics.git
cd mcp-search-analyticsCreate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txtConfiguration
Create environment file:
cp environment.example .envSet up Google Service Account:
Create a service account in Google Cloud Console
Download the JSON credentials file
Enable Google Analytics Reporting API and Search Console API
Grant necessary permissions to your service account
Configure environment variables: Edit
.envfile with your actual values:ANALYTICS_CREDENTIALS_PATH=/path/to/your/credentials.json GSC_SITE_URL=https://your-website.com GA4_PROPERTY_ID=your-property-id
Usage
Test your credentials:
python test_credentials.pyRun the MCP server:
python unified_analytics_server.py🔐 Security Notes
Never commit credential files (
.json,.env) to version controlStore credentials securely and use environment variables
Regularly rotate service account keys
Follow principle of least privilege for API access
📋 Requirements
See requirements.txt for Python dependencies.
🤝 Contributing
Fork the repository
Create a feature branch
Make your changes
Test thoroughly
Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceAn MCP server implementation for accessing Google Analytics 4 (GA4) data, built using the Model Context Protocol TypeScript SDK.Last updated52,33072MIT
- AlicenseBqualityFmaintenanceA server that provides access to Google Search Console data through the Model Context Protocol, allowing users to retrieve and analyze search analytics data with customizable dimensions and reporting periods.Last updated83,470254MIT
- Alicense-qualityCmaintenanceProvides an interface to access Google Analytics Data API through Model Context Protocol (MCP), allowing users to retrieve reports and realtime data from Google Analytics 4 properties.Last updated2,3307MIT
- AlicenseCqualityAmaintenanceModel Context Protocol (MCP) server that provides AI agents with access to Google Search Console data.Last updated981,393242MIT
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP (Model Context Protocol) server for Appwrite
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/vesivanov/mcp-search-analytics'
If you have feedback or need assistance with the MCP directory API, please join our Discord server