Serper Search MCP
v4.0.1Universal Google Search MCP: web, images, places, shopping, scholar, patents, deep research & RAG
Values you need
| Variable | What it is | |
|---|---|---|
SERPER_API_KEY | required secret | Your Serper API key — get 2,500 free credits at https://serper.dev |
GEMINI_API_KEY | optional secret | Google AI Studio key for deep_research (free tier) — get one at https://ai.google.dev |
OPENROUTER_API_KEY | optional secret | OpenRouter LLM key for deep_research — takes priority over Gemini; free models at https://openrouter.ai |
TAVILY_API_KEY | optional secret | Tavily fallback search provider — 1,000 free searches/month at https://tavily.com |
BRAVE_API_KEY | optional secret | Brave Search fallback provider — 2,000 free queries/month at https://brave.com/search/api |
EXA_API_KEY | optional secret | Exa neural semantic search fallback — get a key at https://exa.ai |
FIRECRAWL_API_KEY | optional secret | Firecrawl for JS-rendered page scraping (upgrades the scrape tool) — https://firecrawl.dev |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add serper-search-mcp -e 'SERPER_API_KEY=<SERPER_API_KEY>' -- npx -y serper-search-mcp@4.0.1Add to
claude_desktop_config.json{
"mcpServers": {
"serper-search-mcp": {
"args": [
"-y",
"serper-search-mcp@4.0.1"
],
"command": "npx",
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"serper-search-mcp": {
"args": [
"-y",
"serper-search-mcp@4.0.1"
],
"command": "npx",
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SERPER_API_KEY",
"id": "serper-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"serper-search-mcp": {
"args": [
"-y",
"serper-search-mcp@4.0.1"
],
"command": "npx",
"env": {
"SERPER_API_KEY": "${input:serper-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.serper-search-mcp]
command = "npx"
args = ["-y", "serper-search-mcp@4.0.1"]
env = { "SERPER_API_KEY" = "<SERPER_API_KEY>" }For AI agents
- Ask the user for: SERPER_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: search, search_web, search_images, search_videos, search_news, search_shopping, search_places, search_scholar, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json