Supports containerized deployment with Docker, including health checks and monitoring for production environments.
Provides programmatic access to Google's search results with advanced filtering options, enabling AI assistants to perform comprehensive web research using Google Search.
Integrates with Google Cloud services, specifically the Google Custom Search API, to enable search functionality and access to Google's search engine capabilities.
Runs on Node.js platform with comprehensive support for production deployment, including PM2 integration for process management.
Supports deployment with PM2 process manager for production environments, enabling easy monitoring, automatic restarts, and system boot persistence.
Exposes metrics in Prometheus format at the /metrics endpoint for monitoring and observability in production environments.
Optional integration with Redis for shared caching across multiple server instances in scaled deployments.
Enables integration with Slack for real-time research queries directly from team chat environments.
Google Research MCP Server
A powerful Model Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.
🚀 Features
Core Research Capabilities
- Google Search Integration - Programmatic access to Google's search results with advanced filtering
- Intelligent Content Extraction - Clean, structured extraction from web pages with fallback strategies
- Multi-Source Synthesis - Combine information from multiple sources into coherent reports
- Contextual Navigation - Smart web browsing that follows relevant links automatically
- Research Workflow Automation - Complete research pipelines from query to final report
Production-Ready Features
- Smart Caching - Optimized performance with configurable cache strategies
- Rate Limiting - Built-in protection against API abuse
- Health Monitoring - Comprehensive system health checks and metrics
- Structured Logging - Production-grade logging with multiple output formats
- Container Support - Docker deployment with health checks and monitoring
Enhanced Content Processing
- Structure Preservation - Maintains tables, lists, and hierarchical content
- Multiple Output Formats - Markdown, HTML, and plain text support
- Metadata Extraction - Captures publication dates, authors, and citation information
- Content Summarization - Automatic generation of content summaries
- Image Context - Extracts and describes images within content
📦 Installation
Prerequisites
- Node.js 18+ and npm 8+
- Google Custom Search API key (Get one here)
- Google Custom Search Engine ID (Create one here)
Quick Start (Unified Server)
The Google Research MCP Server now provides both search and research capabilities in a single unified server - no need to run separate instances!
Option 1: Direct Installation (No Docker Required)
- Clone and Install
- Configure Environment
- Validate Configuration
- Build and Start
- Verify Server is Running
Option 2: Docker Installation (Recommended for Production)
Option 3: Development Mode
For development with auto-rebuild:
⚙️ Configuration
Required Environment Variables
Optional Configuration
Validate Configuration
🔧 Usage
MCP Client Integration
The server provides unified search and research capabilities in a single MCP server. Add to your MCP client configuration (e.g., Claude Desktop):
Alternative Configuration (with environment file):
Note: This assumes you have a .env
file configured in the project directory.
Available Tools
Search Tools
google_search
- Search Google with advanced filtering options
Content Extraction Tools
extract_webpage_content
- Extract clean content from web pagesextract_multiple_webpages
- Batch extract from multiple URLsstructured_content_extraction
- Enhanced extraction with structure preservationsummarize_webpage
- Generate webpage summaries
Research & Synthesis Tools
research_topic
- Comprehensive topic research with multiple sourcessynthesize_content
- Combine multiple sources into coherent reportsenhanced_synthesis
- Advanced synthesis with contradiction detection
Navigation Tools
contextual_navigation
- Smart web browsing following relevant links
Example Usage Scenarios
Basic Research
Comprehensive Research Report
Competitive Analysis
🛠️ Troubleshooting
Common Issues
🔴 API Authentication Errors
Solution:
- Verify API key is correctly set in
.env
file - Ensure Google Custom Search API is enabled in Google Cloud Console
- Check API key has proper permissions and quotas
- Validate configuration:
npm run validate-config
🔴 Rate Limiting Issues
Solution:
- Check your Google API quota in Google Cloud Console
- Adjust rate limiting settings in environment variables
- Implement request queuing for high-volume usage
- Consider upgrading your Google API plan
🔴 Content Extraction Failures
Solution:
- Verify the target URL is accessible
- Check if the website blocks automated requests
- Ensure proper User-Agent headers are configured
- Try different extraction methods (structured vs. standard)
🔴 Memory Issues
Solution:
- Reduce cache sizes in configuration
- Lower concurrent request limits
- Monitor content extraction sizes
- Consider scaling horizontally
🔴 Docker Deployment Issues
Solution:
- Check container logs:
docker-compose logs -f google-research-mcp
- Verify environment variables are properly set
- Ensure API connectivity from container
- Run manual health check:
npm run docker:health
🔴 Non-Docker Deployment Issues
Solution:
- Ensure you've built the project:
npm run build
- Check that
dist/
directory exists and contains compiled files - Verify TypeScript compilation:
npx tsc --noEmit
- Clear and rebuild:
rm -rf dist/ && npm run build
Solution:
- Check file permissions:
ls -la dist/server.js
- Make executable if needed:
chmod +x dist/server.js
- Run with explicit node:
node dist/server.js
Debug Mode
Non-Docker Production Deployment
For production deployment without Docker:
Using PM2 (Recommended)
Using systemd (Linux)
Create /etc/systemd/system/google-research-mcp.service
:
Then:
Direct Node.js (Development)
Performance Optimization
Cache Tuning
Request Optimization
📊 Monitoring & Health Checks
Built-in Health Monitoring
Health Check Response
Monitoring Integration
- Prometheus metrics available at
/metrics
(if enabled) - Structured logging compatible with ELK stack
- Docker health checks for container orchestration
🔄 Maintenance
Regular Maintenance Tasks
Log Management
🚀 Advanced Usage
Scaling Considerations
- Horizontal Scaling: Deploy multiple instances behind load balancer
- Caching Strategy: Consider Redis for shared caching across instances
- Rate Limiting: Implement distributed rate limiting for multi-instance deployments
Custom Configurations
- Research Templates: Create custom research workflow templates
- Content Filters: Implement custom content filtering rules
- Export Formats: Add custom export format handlers
Integration Examples
- CI/CD Pipeline: Automated research report generation
- Slack Bot: Real-time research queries from team chat
- Web Dashboard: Research workflow management interface
📝 Development
Development Setup
Project Structure
🤝 Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🆘 Support
Getting Help
- GitHub Issues: Report bugs and request features
- Documentation: Check
PRODUCTION_DEPLOYMENT.md
for detailed deployment guide - Health Checks: Use built-in diagnostics for troubleshooting
Common Support Scenarios
- API Setup: Verify Google API credentials and permissions
- Performance Issues: Check cache configuration and system resources
- Deployment Problems: Review Docker logs and health checks
- Integration Questions: Consult MCP client documentation
Built with ❤️ for AI-powered research workflows
This server cannot be installed
Model Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.Last updated -11,9641,697TypeScriptMIT License
- -securityFlicense-qualityA specialized Model Context Protocol (MCP) server that integrates Google services (Gmail, Calendar, etc.) into your AI workflows. This server enables seamless access to Google services through MCP, allowing AI agents to interact with Gmail, Google Calendar, and other Google services.Last updated -103TypeScript
- AsecurityFlicenseAqualityAn MCP (Model Context Protocol) server that provides Google search capabilities and webpage content analysis tools. This server enables AI models to perform Google searches and analyze webpage content programmatically.Last updated -33152TypeScript
- -securityAlicense-qualityA Model Context Protocol (MCP) based search API server that provides standardized access to Google Maps, Google Flights, Google Hotels and other services. This server enables AI assistants to access various search services through a unified interface.Last updated -48PythonMIT License