# Serper Search MCP

> Serper Search MCP is a freemium MCP server for web search and scraping. Google search, scraping and deep research for agents, with provider failover. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** CLI, Self-hosted, macOS, Windows, Linux
- **Repository:** https://github.com/smjahid012/serper-search-mcp-server
- **MCP Registry name:** io.github.smjahid012/serper-search-mcp
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```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>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

```sh
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-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```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>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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 (~/.config/devin/mcp_config.json)

```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 (cline_mcp_settings.json)

```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 (Zed settings.json)

```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 (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```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>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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 (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

```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>"
      }
    }
  }
}
```

## Tools

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.

- `search` (name suggests: reads): Unified search taking type, provider and verbosity.
- `search_web` (name suggests: reads): Organic results with knowledge graph, answer box, related questions.
- `search_images` (name suggests: reads): Image results with URLs, thumbnails and sources.
- `search_videos` (name suggests: reads): Video titles, channels, durations and links.
- `search_news` (name suggests: reads): Headlines, sources and dates.
- `search_shopping` (name suggests: reads): Products, prices, ratings and delivery info.
- `search_places` (name suggests: reads): Local businesses with address, phone, hours and GPS.
- `search_scholar` (name suggests: reads): Academic papers with authors, journal, year and citations.
- `search_patents` (name suggests: reads): Patents with number, assignee, inventor and dates.
- `autocomplete`: Query completions.
- `scrape`: Full page content as markdown.
- `search_many` (name suggests: reads): One to ten parallel web searches with deduplication.
- `deep_research`: Multi-step research producing a cited report.
- `search_rag_context` (name suggests: reads): Chunked text with metadata for embedding pipelines.
- `resolve_links`: Turns google.com/goto redirect links into real URLs.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/serper-search-mcp
