Google Search Engine MCP Server
Deployed on Cloudflare Workers platform with KV namespace storage for OAuth authentication and session management.
Provides tools for performing Google searches and extracting webpage content, using Google Custom Search API to retrieve search results and convert webpages to readable text.
Click on "Deploy 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., "@Google Search Engine MCP Serversearch for latest AI developments in 2024"
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.
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
Related MCP server: Remote MCP Server Authless
Connect to MCP Inspector Testing Tool
Use the MCP Inspector to explore and test the API:
Run
npm run inspectorornpx @modelcontextprotocol/inspectorIn the Inspector interface, set the transport type to
SSE, URL tohttp://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:
google_search - Perform Google searches and return results
extract_webpage_content - Extract webpage content and convert it to readable text
batch_extract_webpage_content - Batch extract content from multiple webpages
Connect to Claude Desktop
To connect Claude to your local MCP server:
Follow the Anthropic Quick Start Guide
In Claude Desktop, go to Settings > Developer > Edit Config
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
Create a KV namespace:
npx wrangler kv namespace create OAUTH_KVFollow the prompts to add the KV namespace ID to
wrangler.jsoncSet environment variables:
GOOGLE_API_KEY- Your Google API keyGOOGLE_SEARCH_ENGINE_ID- Your Google Custom Search Engine ID
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:
Restart Claude
Try connecting to the MCP server directly from the command line:
npx mcp-remote http://localhost:8787/sseClear the MCP authentication files:
rm -rf ~/.mcp-authCheck 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
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
One MCP for the Web. Easily search, crawl, navigate, and extract websites without getting blocked.…
Web scraping, extraction and search for AI agents. Hosted MCP with workspace API keys.
117 data tools in one MCP server, run on Apify: Google Shopping, Flights, Hotels, News, Images, Videos, Ads Transparency, Jobs and Trends; YouTube transcripts; AI visibility checks; Google Maps leads; App Store and Google Play reviews. Pay per result. Sign in with Apify (OAuth) or an API token.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides Google search capabilities, web content extraction, and screenshot functionality with advanced bot detection avoidance through the MCP protocol.22 npm6-
- FlicenseNot gradedqualityDmaintenanceA remote MCP server deployable on Cloudflare Workers without authentication, providing tools for website scraping and content extraction using Cloudflare's Browser Rendering and AI.1-
- AlicenseAqualityBmaintenanceProvides Google search, URL extraction, and academic paper inline extraction without API keys, enabling search and content retrieval from a single MCP server.5185 npmMIT
- AlicenseAqualityBmaintenanceMCP server for Google Search using a logged-in browser profile, delivering personalized, ad-free results with advanced operators and pagination. It also fetches web pages as markdown through the same browser session.5MIT