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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
The BigQuery remote MCP server is a fully managed service that uses the Model Context Protocol to connect AI applications and LLMs to BigQuery data sources. It provides secure, standardized tools for AI agents to list datasets and tables, retrieve schemas, generate and execute SQL queries through natural language, and analyze dataโenabling direct access to enterprise analytics data without requiring manual SQL coding.
A Model Context Protocol server for Wix AI tools
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Read and edit GA4, Search Console and Google Tag Manager from any MCP client. 29 tools.
Related MCP Servers
- AlicenseBqualityFmaintenanceAn MCP server implementation for accessing Google Analytics 4 (GA4) data, built using the Model Context Protocol TypeScript SDK.51,20971MIT
- AlicenseBqualityDmaintenanceA 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.84,053261MIT
- AlicenseBqualityAmaintenanceModel Context Protocol (MCP) server that provides AI agents with access to Google Search Console data.252,926286MIT
- AlicenseNot gradedqualityDmaintenanceA powerful Model Context Protocol (MCP) server that provides comprehensive Google Analytics 4 (GA4), Google Search Console (GSC), and Google Merchant Center (GMC) integration for Claude Desktop and other MCP clients.Apache 2.0
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