serper-proxy-mcp
Provides web search and web page fetching capabilities through the Google Search and scrape APIs.
Click on "Install 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., "@serper-proxy-mcpSearch the web for recent breakthroughs in renewable energy."
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.
Serper Search Proxy for OpenWebUI
A proxy that connects Open WebUI to the Serper Google Search and scrape APIs. One container provides three integrations:
Web search (
POST /search) - Open WebUI external web search engineWeb loader (
POST /loader) - Open WebUI external web loader, backed by the Serper scrape APIMCP server (
/mcp) - Streamable HTTP endpoint with two tools,google_searchandgoogle_fetch_webpage, so the model can search and read pages during a conversation
Open WebUI has a native Serper search integration. This proxy is for setups that also want the Serper scrape API as the web loader and as an MCP fetch tool, through one container and one API key. It also fits network-isolated deployments where Open WebUI cannot reach Serper directly: the proxy runs on a host with internet egress and Open WebUI only needs a route to the proxy.
How it works
No credentials are stored on the server. Every request to /search, /loader, and the MCP tools must carry Authorization: Bearer <your Serper API key>. The key is forwarded to Serper as the X-API-KEY header. If Serper rejects it, /search and /loader respond with the same 401 or 403 status, and the MCP tools return a tool error carrying that status.
Search responses are normalized into the [{link, title, snippet}] format Open WebUI expects: results from answerBox, knowledgeGraph, organic, and news are merged, deduplicated by link, and capped at the requested count. /loader returns [{page_content, metadata}], with source and title in the metadata.
Related MCP server: AI Makerspace MCP Demo Server
Endpoints
Method | Path | Purpose | Auth |
GET |
| Service name and version | none |
GET |
| Health check | none |
POST |
| Open WebUI external web search | bearer (Serper API key) |
POST |
| Open WebUI external web loader | bearer (Serper API key) |
POST/GET |
| MCP Streamable HTTP endpoint | bearer (Serper API key) |
Quick start
From Docker Hub:
docker run -d --name serper-proxy -p 8000:8000 edgaras0x4e/serper-proxyOr build from source:
docker build -t serper-proxy .
docker run -d --name serper-proxy -p 8000:8000 serper-proxyMinimal docker-compose.yml:
services:
serper-proxy:
image: edgaras0x4e/serper-proxy
ports:
- "8000:8000"Verify:
curl http://localhost:8000/healthConfiguration
All configuration is via environment variables. None are required.
Variable | Default | Description |
|
| Serper search API URL |
|
| Serper scrape API URL |
|
| Timeout in seconds for requests to Serper |
|
| Number of search results when the request does not specify one |
| unset | Country code sent to Serper as |
| unset | Interface language sent to Serper as |
|
| Comma-separated |
Connecting to Open WebUI
The URLs must be reachable from the Open WebUI container: serper-proxy:8000 works on a shared Docker network, otherwise use a routable hostname.
Web search
Admin Panel > Settings > Web Search, in the Search section:
Turn on Web Search
Set Web Search Engine to
externalSet External Web Search URL to
http://serper-proxy:8000/searchSet External Web Search API Key to your Serper API key
Click Save
Web loader
Same tab, in the Loader section:
Set Web Loader Engine to
externalSet External Web Loader URL to
http://serper-proxy:8000/loaderSet External Web Loader API Key to your Serper API key
Click Save
MCP tools
Admin Panel > Settings > Integrations, in the Tools section (External Tool Servers), click Add Connection:
Set Type to MCP (Streamable HTTP)
Set URL to
http://serper-proxy:8000/mcpFill in ID, which is required for MCP connections, for example
serperSet Auth to Bearer and enter your Serper API key as the API Key
Click Save
If Open WebUI reaches the proxy at some other hostname, add it to MCP_ALLOWED_HOSTS, otherwise /mcp returns 421.
MCP tools
Tool | Arguments | Returns |
|
| list of |
|
|
|
google_fetch_webpage pages through long documents: call it again with start_index advanced by max_length while truncated is true.
Testing the endpoints
curl -X POST http://localhost:8000/search \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your Serper API key>" \
-d '{"query": "open webui external search", "count": 5}'
curl -X POST http://localhost:8000/loader \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your Serper API key>" \
-d '{"urls": ["https://example.com/article"]}'Behavior notes
/loaderaccepts up to 20 URLs per request. A URL that fails to scrape is skipped and logged so the rest of the batch still loads; 401/403 aborts the batch because every URL would fail the same way. Pages that return no text are skipped.Each
/loaderURL and eachgoogle_fetch_webpagecall is one request to the Serper scrape API.
Local development
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app:app --host 0.0.0.0 --port 8000License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables integration of Google search functionality into MCP-enabled applications using the Serper API, providing rich search results, configurable parameters, and efficient response handling.48
- FlicenseAqualityDmaintenanceEnables web search capabilities through the Tavily API and serves as a demonstration platform for building custom MCP tools. Designed for educational purposes to showcase MCP server development and LangGraph integration.6
- Alicense-qualityCmaintenanceEnables Google Search, News, and Places queries via the Serper API, integrated with the Pipeworx MCP gateway.10MIT
- Alicense-qualityDmaintenanceEnables LLMs to perform real-time Google searches and retrieve web results via the MCP protocol.The Unlicense
Related MCP Connectors
Serper MCP — wraps the Serper Google Search API (serper.dev)
MCP server for Google search results via SERP API
LLM-ready web search + instant answers + URL-to-clean-text fetch for agents and RAG.
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/Edgaras0x4E/serper-proxy'
If you have feedback or need assistance with the MCP directory API, please join our Discord server