google-search-engine-mcp
Documentation
Google Search Engine MCP Server
An MCP (Model Context Protocol) server based on Cloudflare Workers, providing Google search and webpage content extraction functionality with integrated OAuth login.
Local Development
# Clone the repository
git clone https://github.com/your-username/google-search-engine-mcp-server.git
# Install dependencies
cd google-search-engine-mcp-server
npm install
# Run locally
npm run devVisit `http://localhost:8787/` to check the server status
Connect to MCP Inspector Testing Tool
Use the MCP Inspector to explore and test the API:
- Run `npm run inspector` or `npx @modelcontextprotocol/inspector`
- In the Inspector interface, set the transport type to `SSE`, URL to `http://localhost:8787/sse`, and click "Connect"
- Enter any email and password in the mock login interface
- After logging in, you can view and call all available tools
Available Tools
This server provides the following tools:
1. google_search - Perform Google searches and return results
2. extract_webpage_content - Extract webpage content and convert it to readable text
3. batch_extract_webpage_content - Batch extract content from multiple webpages
Connect to Claude Desktop
To connect Claude to your local MCP server:
1. Follow the Anthropic Quick Start Guide
2. In Claude Desktop, go to Settings > Developer > Edit Config
3. Replace the existing content with the following configuration:
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse"
]
}
}
}After launching Claude, a browser window will open allowing you to log in. You can see available tools in the bottom right corner. With appropriate prompts, Claude will call the corresponding tools.
Deploy to Cloudflare
1. Create a KV namespace: `npx wrangler kv namespace create OAUTH_KV`
2. Follow the prompts to add the KV namespace ID to `wrangler.jsonc`
3. Set environment variables:
4. Deploy: `npm run deploy`
Connect to Remote MCP Server
After deployment, you can use MCP Inspector to connect to the remote server:
npx @modelcontextprotocol/inspector@latestEnter your Workers URL (e.g., `your-worker-name.your-account.workers.dev/sse`) as the MCP server address and click "Connect".
Connect Claude Desktop to Remote Server
Update the Claude configuration file to point to your Workers URL:
{
"mcpServers": {
"google-search": {
"command": "npx",
"args": [
"mcp-remote",
"https://your-worker-name.your-account.workers.dev/sse"
]
}
}
}Troubleshooting
If you encounter issues:
1. Restart Claude
2. Try connecting to the MCP server directly from the command line:
npx mcp-remote http://localhost:8787/sse3. Clear the MCP authentication files:
rm -rf ~/.mcp-auth4. Check console logs for detailed error information
Developer Notes
- This project is developed using TypeScript
- Based on Cloudflare Workers and Durable Objects
- Integrates OAuth authentication
- Uses Google Custom Search API for search functionality
- Includes webpage content extraction and analysis features
Frequently asked questions
What is google-search-engine-mcp?
google-search-engine-mcp is a Model Context Protocol (MCP) server listed in the TrackMCP directory.
How do I install google-search-engine-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is google-search-engine-mcp open source?
Yes — it is hosted on GitHub at https://github.com/Eivs/google-search-engine-mcp and has 1 stars.
Related MCP tools
The official TypeScript SDK for Model Context Protocol servers and clients Trusted by 10500+ developers. Trusted by 10500+ developers.
Visual testing tool for MCP servers TypeScript-based implementation. Trusted by 7300+ developers. Trusted by 7300+ developers.
It's like v0 but in your Cursor/WindSurf/Cline. 21st dev Magic MCP server for working with your frontend like Magic TypeScript-based implementation.
Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices) TypeScript-based implementation.
Https://github.com/user-attachments/assets/364b6705-14d4-4e6d-bea7-fb9f12664fab for the Model Context Protocol. Enhance AI assistants with powerful integrations
MCP server that provides tools and resources for interacting with n8n API TypeScript-based implementation. Trusted by 1400+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP