Serper Search MCP
Google search, scraping and deep research for agents, with provider failover
Serper Search MCP is a freemium MCP server for web search and scraping. It runs locally on your machine and is started by your AI client.
- Pricing
- Freemium
- Platforms
- CLI, Self-hosted, macOS
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 4.0.1
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add serper-search-mcp --env SERPER_API_KEY='<SERPER_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env EXA_API_KEY='<EXA_API_KEY>' --env FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' -- npx -y serper-search-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"serper-search-mcp": {
"command": "npx",
"args": [
"-y",
"serper-search-mcp"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
"TAVILY_API_KEY": "<TAVILY_API_KEY>",
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"EXA_API_KEY": "<EXA_API_KEY>",
"FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>"
}
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"serper-search-mcp": {
"command": "npx",
"args": [
"-y",
"serper-search-mcp"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
"TAVILY_API_KEY": "<TAVILY_API_KEY>",
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"EXA_API_KEY": "<EXA_API_KEY>",
"FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>"
}
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"serper-search-mcp": {
"command": "npx",
"args": [
"-y",
"serper-search-mcp"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
"TAVILY_API_KEY": "<TAVILY_API_KEY>",
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"EXA_API_KEY": "<EXA_API_KEY>",
"FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>"
}
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"serper-search-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"serper-search-mcp"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
"TAVILY_API_KEY": "<TAVILY_API_KEY>",
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"EXA_API_KEY": "<EXA_API_KEY>",
"FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>"
}
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add serper-search-mcp --env SERPER_API_KEY='<SERPER_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env EXA_API_KEY='<EXA_API_KEY>' --env FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' -- npx -y serper-search-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.serper-search-mcp]
command = "npx"
args = ["-y", "serper-search-mcp"]
env = { SERPER_API_KEY = "<SERPER_API_KEY>", GEMINI_API_KEY = "<GEMINI_API_KEY>", OPENROUTER_API_KEY = "<OPENROUTER_API_KEY>", TAVILY_API_KEY = "<TAVILY_API_KEY>", BRAVE_API_KEY = "<BRAVE_API_KEY>", EXA_API_KEY = "<EXA_API_KEY>", FIRECRAWL_API_KEY = "<FIRECRAWL_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"serper-search-mcp": {
"command": "npx",
"args": [
"-y",
"serper-search-mcp"
],
"env": {
"SERPER_API_KEY": "<SERPER_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>",
"TAVILY_API_KEY": "<TAVILY_API_KEY>",
"BRAVE_API_KEY": "<BRAVE_API_KEY>",
"EXA_API_KEY": "<EXA_API_KEY>",
"FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }Or run: gemini mcp add -s user -e SERPER_API_KEY='<SERPER_API_KEY>' -e GEMINI_API_KEY='<GEMINI_API_KEY>' -e OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -e TAVILY_API_KEY='<TAVILY_API_KEY>' -e BRAVE_API_KEY='<BRAVE_API_KEY>' -e EXA_API_KEY='<EXA_API_KEY>' -e FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' serper-search-mcp npx -- -y serper-search-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.
Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "serper-search-mcp": { "command": "npx", "args": [ "-y", "serper-search-mcp" ], "env": { "SERPER_API_KEY": "<SERPER_API_KEY>", "GEMINI_API_KEY": "<GEMINI_API_KEY>", "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>", "TAVILY_API_KEY": "<TAVILY_API_KEY>", "BRAVE_API_KEY": "<BRAVE_API_KEY>", "EXA_API_KEY": "<EXA_API_KEY>", "FIRECRAWL_API_KEY": "<FIRECRAWL_API_KEY>" } } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
Configuration
SERPER_API_KEYYour Serper API key — get 2,500 free credits at https://serper.devRequiredGEMINI_API_KEYGoogle AI Studio key for deep_research (free tier) — get one at https://ai.google.devOPENROUTER_API_KEYOpenRouter LLM key for deep_research — takes priority over Gemini; free models at https://openrouter.aiTAVILY_API_KEYTavily fallback search provider — 1,000 free searches/month at https://tavily.comBRAVE_API_KEYBrave Search fallback provider — 2,000 free queries/month at https://brave.com/search/apiEXA_API_KEYExa neural semantic search fallback — get a key at https://exa.aiFIRECRAWL_API_KEYFirecrawl for JS-rendered page scraping (upgrades the scrape tool) — https://firecrawl.dev
About Serper Search MCP
Serper Search MCP wraps the Serper API for Google results and adds fallback to Tavily, Brave, Exa and Firecrawl. Only a SERPER_API_KEY is required; any other keys you set enable automatic failover on 402, 429, 5xx or empty results, in an order you can configure. Serper gives 2,500 free queries a month, according to the README.
Its 15 tools cover web, image, video, news, shopping, places, scholar and patent search, autocomplete, page scraping to markdown and batch search. A single unified search tool takes type, provider and verbosity so an agent loads one schema of roughly 700 tokens instead of all of them. Verbosity modes (compact, standard, full) trade detail for tokens.
deep_research runs sub-queries in parallel and writes a cited report using your own OpenRouter or Gemini key. Credits are documented: one search is one credit, a cache hit is none, scrape costs two per page, and deep research costs 3, 5 or 8 by depth. It runs over stdio via npx or Docker, with an optional HTTP mode using a bearer token, and has a CLI as well.
Tools this server provides (15)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 11 of 15 tools read data; 4 names don't say.
From the server's own tool labels and tool names; not verified by us.
- searchName suggests: reads
- Unified search taking type, provider and verbosity.
- search_webName suggests: reads
- Organic results with knowledge graph, answer box, related questions.
- search_imagesName suggests: reads
- Image results with URLs, thumbnails and sources.
- search_videosName suggests: reads
- Video titles, channels, durations and links.
- search_newsName suggests: reads
- Headlines, sources and dates.
- search_shoppingName suggests: reads
- Products, prices, ratings and delivery info.
- search_placesName suggests: reads
- Local businesses with address, phone, hours and GPS.
- search_scholarName suggests: reads
- Academic papers with authors, journal, year and citations.
- search_patentsName suggests: reads
- Patents with number, assignee, inventor and dates.
- autocomplete
- Query completions.
- scrape
- Full page content as markdown.
- search_manyName suggests: reads
- One to ten parallel web searches with deduplication.
- deep_research
- Multi-step research producing a cited report.
- search_rag_contextName suggests: reads
- Chunked text with metadata for embedding pipelines.
- resolve_links
- Turns google.com/goto redirect links into real URLs.
What it does
- Unified search tool
- One schema takes type, provider and verbosity, saving tokens.
- Provider failover
- Falls back across Serper, Tavily, Brave, Exa and Firecrawl.
- Rich result types
- Web, images, videos, news, shopping, places, scholar and patents.
- Page scraping
- Converts a page into markdown, with Firecrawl for JS-rendered pages.
- Deep research
- Builds a cited report from parallel sub-queries using your LLM key.
- RAG context
- Returns chunked text with metadata for embedding pipelines.
Good for
- Give a coding agent compact Google results
- Research a topic with a cited report
- Look up papers or patents for a question
- Find local businesses with hours and map position
- Feed clean text chunks into a vector database
Pricing
Freemium
Free server; search providers bill by credit after free allowances
Serper Search MCP FAQ
What key is required?
Only SERPER_API_KEY. Other provider and LLM keys are optional.
Is there a free tier?
The README says Serper gives 2,500 free queries a month.
What does deep_research need?
An OpenRouter or Gemini key; OpenRouter takes priority if both are set.
Can Serper Search MCP run remotely?
Yes, the Docker image has an HTTP mode with a bearer token.
How do I add Serper Search MCP to Claude Code?
Run this command in your terminal: claude mcp add serper-search-mcp --env SERPER_API_KEY='<SERPER_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' --env TAVILY_API_KEY='<TAVILY_API_KEY>' --env BRAVE_API_KEY='<BRAVE_API_KEY>' --env EXA_API_KEY='<EXA_API_KEY>' --env FIRECRAWL_API_KEY='<FIRECRAWL_API_KEY>' -- npx -y serper-search-mcp
What are the best alternatives to Serper Search MCP?
The closest alternatives to Serper Search MCP are REA, Scrapling MCP Server, Context7, Chrome DevTools MCP and Codebase Memory.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


