agy-web-search-mcp
Provides web search functionality using Google's Gemini model and OAuth authentication, enabling AI agents to perform searches via Google's APIs.
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., "@agy-web-search-mcpsearch the web for latest AI developments"
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.
agy-web-search MCP
Independent Streamable HTTP MCP: turns the local agy Google login into a deployable /mcp endpoint. Local, Cloudflare Workers, and Vercel Edge share the same handler.
Local (automatically reads Google session)
If the local machine has already logged in with agy, directly:
bun run devIt reads ~/.gemini/antigravity-cli/antigravity-oauth-token and listens on http://127.0.0.1:8787/mcp.
Grok:
[mcp_servers.agy-web-search]
url = "http://127.0.0.1:8787/mcp"Related MCP server: Cloudflare Google OAuth MCP Server
Export session, prepare for deployment
bun run import-agyExtract refresh_token from the agy token file, write it to .dev.vars (already gitignored), and print a MCP_AUTH_TOKEN.
Cloudflare Workers
npx wrangler login
npx wrangler secret put AGY_REFRESH_TOKEN # 粘贴 refresh_token
npx wrangler secret put MCP_AUTH_TOKEN # 粘贴 import-agy 打印的 token
npx wrangler secret put AGY_OAUTH_CLIENT_ID
npx wrangler secret put AGY_OAUTH_CLIENT_SECRET
npx wrangler deployDeployment URL: https://agy-web-search-mcp.<subdomain>.workers.dev/mcp
Vercel
npx vercel env add AGY_REFRESH_TOKEN
npx vercel env add MCP_AUTH_TOKEN
npx vercel env add AGY_OAUTH_CLIENT_ID
npx vercel env add AGY_OAUTH_CLIENT_SECRET
npx vercel --prodHobby plan has a default 10s timeout, which may occasionally be insufficient for searches; Cloudflare is more suitable.
Grok Remote
[mcp_servers.agy-web-search]
url = "https://agy-web-search-mcp.<subdomain>.workers.dev/mcp"
headers = { Authorization = "Bearer ${AGY_MCP_TOKEN}" }AGY_MCP_TOKEN is MCP_AUTH_TOKEN. Alternatively, you can avoid storing the Google token on the server and include it with each request:
headers = { Authorization = "Bearer ${AGY_MCP_TOKEN}", "X-Agy-Refresh-Token" = "${AGY_REFRESH_TOKEN}" }Environment Variables
Variable | Purpose |
| agy Google refresh token |
| agy desktop OAuth client id (do not commit to git) |
| agy desktop OAuth client secret (do not commit to git) |
| Bearer token to protect |
| Default |
| Default |
| Override path for local token file |
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.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Cloudflare Workers MCP server: ai-model-router
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables Google search queries and webpage content extraction through an MCP server deployed on Cloudflare Workers. Supports single and batch webpage content extraction with integrated OAuth authentication.1-
- FlicenseNot gradedqualityDmaintenanceA remote MCP server deployable on Cloudflare Workers that provides integrated Google OAuth authentication for secure tool access. It serves as a reference implementation for building persistent, authenticated MCP connections using Cloudflare Durable Objects and Streamable HTTP.1-
- AlicenseNot gradedqualityCmaintenanceA minimal MCP server that exposes a private SearXNG instance as a search tool over streamable-HTTP, enabling web search from the llama.cpp WebUI or any compatible MCP client.4MIT
- AlicenseAqualityFmaintenanceMCP server for web search powered by Google AI Mode (Gemini). Enables any AI agent to search the web in real-time for free and without rate limits.2181MIT