mcp-google-serp-agent
Provides live Google Search integration for AI agents, returning token-budgeted Markdown results with structured citations for grounded web search.
🤖 Google SERP & AI Agent Grounding — Model Context Protocol (MCP) Server
A high-performance Model Context Protocol (MCP) Server and live Google search grounding engine for Claude Desktop, Cursor IDE, LangChain, and Autonomous AI Agents.
⚡ Overview
This repository provides a standardized Model Context Protocol (MCP) server (mcp_server.py) that equips LLMs and autonomous agents with real-time web search and webpage content extraction without hallucination.
🛡️ Zero 429 Rate-Limit Blocks: Automatic anti-blocking engine with multi-engine fallback.
🤖 LLM-Optimized Grounding: Returns token-budgeted Markdown context with structured citations (
[1],[2]).📄 Universal Markdown Extractor: Strips navigation, ads, and scripts from any URL to produce dense Markdown for RAG context windows.
🔌 Zero-Config MCP Integration: Plug-and-play with Claude Desktop, Cursor, and Antigravity.
Related MCP server: PowerSearch MCP
🛠️ MCP Tools & Capabilities
The server exposes the following Model Context Protocol (MCP) tools:
Tool Name | Parameters | Description |
|
| Searches Google and returns token-optimized Markdown context with structured citations ( |
|
| Fetches any live URL, strips boilerplate/ads/navbars, and converts the page into clean Markdown text for LLM ingestion. |
🔌 Quickstart: Connect to Claude Desktop & Cursor
1. Claude Desktop Configuration
Add this server to your claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"google-serp-agent": {
"command": "python3",
"args": [
"/path/to/google-serp-extractor/mcp_server.py"
]
}
}
}2. Cursor IDE Configuration (.cursor/mcp.json)
{
"mcpServers": {
"google-serp-agent": {
"command": "python3",
"args": ["/path/to/google-serp-extractor/mcp_server.py"]
}
}
}📦 Python SDK & LangChain Tool Usage
You can also use this library directly inside Python scripts and LangChain agents:
pip install google-serp-extractorfrom google_serp_extractor import agent_search_and_ground, extract_webpage_markdown
# 1. Ground your LLM with real-time web search facts
result = agent_search_and_ground(
query="Latest breakthroughs in Quantum Computing 2026",
max_results=3,
max_tokens=1500
)
# Feed context directly into your LLM prompt
print(result["context_markdown"])
# 2. Extract clean Markdown from any live URL
page_md = extract_webpage_markdown("https://en.wikipedia.org/wiki/Artificial_intelligence")
print(page_md["markdown"][:500])🌐 Serverless REST API Endpoints
Method | Endpoint | Description |
|
| AI Agent search with token budgeting and citation formatting (Tavily/Exa alternative). |
|
| Universal URL-to-Markdown extractor for RAG pipelines. |
|
| Raw Google SERP batch search with organic rankings, PAA, and ads. |
|
| Service health status and supported agent capabilities. |
📄 License
MIT License. Created by Meanus Arcanus.
This server cannot be installed
Maintenance
Related MCP Connectors
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
Agent-native search engine with live web research optimized for AI agents.
The best web search for your AI Agent
Web search, fetch, extract, and research for AI agents. Markdown output + AI-synthesized answers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to search the web, crawl websites, and perform intelligent RAG queries with semantic search capabilities. Includes integrated private search engine, vector database storage, and optional knowledge graph for AI hallucination detection in code repositories.1MIT
- AlicenseNot gradedqualityCmaintenanceHelps AI agents search the public web and fetch content with anti-bot measures, returning clean markdown outputs suitable for citation.2Apache 2.0
- AlicenseNot gradedqualityCmaintenanceWeb search, clean page reading & one-call research dossiers for AI agents. No API key — your agent does the synthesis.124MIT
- AlicenseAqualityCmaintenanceWeb search for AI agents across 6 engines (Serper, Brave, Exa, Tavily, Firecrawl, Perplexity) through one search tool. Routes each query to the cheapest engine that clears a quality bar and caches repeats. Hosted, streamable-HTTP, BYOK supported.11MIT
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/meanusarcanus/google-serp-extractor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server