Skip to content

Menu

SerpApi MCP Server logo

SerpApi MCP Server

Published

At a glance

GitHub repository
serpapi/serpapi-mcp
Watch out for
Each search uses your SerpApi plan quota, and crawling with extract costs one search credit per successfully extracted page on an uncached request.

SerpApi maintains this MCP server in its own GitHub org under the MIT license. It wraps SerpApi's search APIs, so an agent can query Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay and the other engines SerpApi supports, and get structured results back. It also includes a page extraction tool.

Most people use the hosted endpoint at https://mcp.serpapi.com/mcp, which speaks HTTP and takes your SerpApi key as a Bearer header or in the URL path. You can also self-host the Python server (it needs Python 3.13+ and uv), run it over stdio through src/stdio.py, or install a .mcpb bundle in Claude Desktop that runs locally and calls serpapi.com directly.

The project is active: v2.3.0 shipped on 12 November 2026. Per-engine parameter schemas are exposed as MCP resources, and missing required fields can trigger a form in clients that support form elicitation.

How it connects

Your AI app

An assistant or agent that supports MCP

SerpApi MCP Server

Runs as

  • npx (Node.js)
  • Python (uv / pip)
  • Remote (HTTP)

Gives the agent

  • Multi-engine search
  • Engine schemas as resources
  • Output control
  • Page extraction
  • Interactive results
  • Missing-parameter forms

SerpApi

Signs in with

  • API key
Your AI app talks to SerpApi MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Multi-engine search
The search tool accepts params such as q, engine (default google_light) and location, and works across the SerpApi engine catalog, including Google Scholar, Amazon and the Apple App Store.
Engine schemas as resources
serpapi://engines lists engines and serpapi://engines/<engine> gives that engine's parameters, so an agent can check what a query needs.
Output control
Results come back as JSON by default; params.output set to md returns Markdown, and mode set to compact strips metadata to save tokens.
Page extraction
The extract tool reads a page with mode scrape, discovers URLs with map, or crawls up to max_pages pages (default 10, maximum 100) and returns JSON or Markdown.
Interactive results
Opt-in search_table and search_dashboard tools render results as a UI in hosts that support MCP Apps, keeping bulk JSON out of the model's context.
Missing-parameter forms
For engines like Google Flights and Google Hotels, search detects missing fields and either shows a form or returns an error listing what is needed.

Setting it up

Get an API key from serpapi.com/manage-api-key. In Claude Code, run claude mcp add --transport http serpapi https://mcp.serpapi.com/mcp --header "Authorization: Bearer YOUR_SERPAPI_API_KEY". In Codex, export SERPAPI_API_KEY and run codex mcp add serpapi --url https://mcp.serpapi.com/mcp --bearer-token-env-var SERPAPI_API_KEY. For Claude Desktop, add a serpapi entry under mcpServers with "type": "http" and "url": "https://mcp.serpapi.com/YOUR_SERPAPI_API_KEY/mcp", or install the .mcpb bundle from the latest GitHub release, which asks for the key and runs over stdio. The README also offers npx add-mcp https://mcp.serpapi.com/mcp --header 'Authorization: Bearer ${SERPAPI_API_KEY}' --name SerpApi for many agents at once, plus one-click install badges for VS Code and Cursor. To self-host, clone the repo, then run uv sync && uv run src/server.py and point clients at http://localhost:8000/YOUR_SERPAPI_API_KEY/mcp.

Run in a terminal
claude mcp add --transport http serpapi https://mcp.serpapi.com/mcp

If the server needs a sign-in or an API key, the setup notes above say which. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Pull current Google results for a query in a given location while researching a bug, library or competitor.
  • Search Google Scholar for papers on a topic and summarize the top hits.
  • Scrape a documentation page to Markdown, or map a site's URLs before deciding what to read.
  • Look up flight or hotel options, letting the server prompt for missing dates or airports.

Limitations and things to watch

  • Each search uses your SerpApi plan quota, and crawling with extract costs one search credit per successfully extracted page on an uncached request.
  • Putting the API key in the URL path can expose it in request logs, so SerpApi recommends the Authorization header.
  • Rate limit errors come from your SerpApi plan, and the fix is waiting or upgrading.
  • search_table and search_dashboard only render in hosts that support the MCP Apps extension; other hosts ignore them.
  • Self-hosting needs Python 3.13+ and network access on first run to build the engine catalog.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…