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
| Name | What it is | Required |
|---|---|---|
Authorization | Bearer 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 optionsextract: 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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
serpapi-automationLets your agent use Serpapi to search for information. It can collect web data automatically.brightdata-local-searchHelps your agent set up a local web search tool using Bright Data's SERP API, with query expansion, result ranking and domain grouping.google-search-serpHelps your agent read a Google results page for a search term, including top listings, ads, related searches and questions.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.