Serper Search MCP

v4.0.1
io.github.smjahid012/serper-search-mcp Checked 11 hours ago Published 22 days ago

Universal Google Search MCP: web, images, places, shopping, scholar, patents, deep research & RAG

Values you need

VariableWhat it is
SERPER_API_KEYrequired secret Your Serper API key — get 2,500 free credits at https://serper.dev
GEMINI_API_KEYoptional secret Google AI Studio key for deep_research (free tier) — get one at https://ai.google.dev
OPENROUTER_API_KEYoptional secret OpenRouter LLM key for deep_research — takes priority over Gemini; free models at https://openrouter.ai
TAVILY_API_KEYoptional secret Tavily fallback search provider — 1,000 free searches/month at https://tavily.com
BRAVE_API_KEYoptional secret Brave Search fallback provider — 2,000 free queries/month at https://brave.com/search/api
EXA_API_KEYoptional secret Exa neural semantic search fallback — get a key at https://exa.ai
FIRECRAWL_API_KEYoptional 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.1
Add 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

  1. Ask the user for: SERPER_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: search, search_web, search_images, search_videos, search_news, search_shopping, search_places, search_scholar, ….
  5. 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