# SerpApi

Connects search engines like Google, Bing, and eBay to your agent. Retrieves live web results, stock quotes, and weather data directly.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 182
- Author: serpapi
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/serpapi/serpapi-mcp
- Updated: 2026-10-15
- HTML: https://affpapa.org/en/nevibecode/mcp/serpapi

## What it does

The server routes queries to the SerpApi platform, giving models direct access to multiple search engines. Beyond regular web results, it retrieves company financial metrics, local weather reports, and marketplace listings. It formats responses as JSON or Markdown. Choosing Markdown cuts token consumption by 50% on average.

You can connect to the hosted URL at `https://mcp.serpapi.com/mcp` or run your own copy locally using Python 3.13 with `uv`. Clients supporting UI elements can also use the bundled `search_table` and `search_dashboard` tools.

Without an API key, calling the `search` tool fails immediately with an error. Reading engine parameter schemas remains possible without passing credentials.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Remote server: `https://mcp.serpapi.com/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http serpapi https://mcp.serpapi.com/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add serpapi --url https://mcp.serpapi.com/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "serpapi": {
            "url": "https://mcp.serpapi.com/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "serpapi": {
            "type": "http",
            "url": "https://mcp.serpapi.com/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http serpapi https://mcp.serpapi.com/mcp
```

## When to use it
- query Google, Bing, and DuckDuckGo without custom scraping scripts
- retrieve stock market figures and weather forecasts into conversation context
- lower context token consumption by formatting results as Markdown
- gather product listings from eBay and video metadata from YouTube

## Example prompts
- Search Google for recent articles about React 19 releases
- Fetch financial figures for Tesla and tomorrow's weather in Berlin
- Look up ThinkPad laptop listings and prices on eBay

## Similar
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89433
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [AIHawk](https://affpapa.org/en/nevibecode/mcp/aihawk.md) — MCP server · ★ 32221
- [Skyvern](https://affpapa.org/en/nevibecode/mcp/skyvern.md) — MCP server · ★ 23263
- [SeleniumBase MCP](https://affpapa.org/en/nevibecode/mcp/seleniumbase-mcp.md) — MCP server · ★ 13169
- [apify-mcp-server](https://affpapa.org/en/nevibecode/mcp/apify-mcp-server.md) — MCP server · ★ 12927

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
