Skip to content
Skillpedia
βœ“ Official Β· SerpApi● Free and open source☁️ RemoteπŸ”‘ Needs an API keyWeb and browser

SerpApi MCP

Lets your AI agent run Google, Bing, YouTube and other searches through SerpApi and extract content from web pages.

183 stars on GitHubby SerpApiLicense MITUpdated 18 days ago

How to install

This MCP is remote: it runs in the cloud.

Nothing to install. Copy the address and paste it into your AI app:

Server address

https://mcp.serpapi.com/mcp
  • β€ΊClaude (site or app): Settings β†’ Connectors β†’ Add custom connector.
  • β€ΊChatGPT: Settings β†’ Apps β†’ Create app (developer mode), and paste the address.
  • β€ΊClaude Code, Cursor, VS Code and Windsurf: pick your app below.

Paste in the terminal:

claude mcp add --transport http serpapi https://mcp.serpapi.com/mcp --header "Authorization: <your value>"

What to fill in

NameWhat it isRequired
AuthorizationBearer token authentication using your SerpApi API key.Yes

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Search for coffee shops in Austin, TX and list the top five.
Search Google Scholar for retrieval augmented generation and summarize the first results.

What it is

This is SerpApi's server for search engine results. Your agent can search Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay and more, and also get weather, stock and shopping results. It can also read web pages and return them as structured JSON or Markdown.

What it can do

  • search: search many engines, with location and output options
  • extract: read a page, map a site's URLs or crawl several pages
  • Markdown output to use fewer tokens
  • Compact or complete response modes
  • Engine parameter lists as resources (serpapi://engines)

When to use

  • β€ΊWhen you want fresh search results, such as news, local places or shopping
  • β€ΊWhen you want the content of a web page or a whole site as Markdown
  • β€ΊWhen you look up weather, a stock price or YouTube results through search

What you need

A SerpApi account and API key, from your SerpApi dashboard. The hosted server is at mcp.serpapi.com. Self-hosting needs uv.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it official?

Yes. The registry lists it as the official SerpApi MCP server.

Do I need an API key?

Yes, to search. Connecting and listing tools needs no key, but search and extract return an error without one.

How do I pass the key?

Preferably in the header Authorization: Bearer YOUR_KEY. A key in the URL path works for clients that cannot set headers.

Can I host it myself?

Yes. Clone the repository and run uv sync && uv run src/server.py.

How can I save tokens?

Set output to md for Markdown, or use compact mode to drop metadata.

Is there a one-click install?

For Claude Desktop, a .mcpb bundle from the latest release installs it locally and asks for your key.

If it does not work

  • β€ΊIf search returns an error, check that your API key is set in the header or URL.
  • β€ΊSome engines need specific parameters, such as search_query for YouTube. Read the error, which lists missing fields.
  • β€ΊFor the local bundle, make sure uv can install Python and dependencies on your machine.

5 new skills a week. 1 minute to read.