home / mcp / serpapi mcp server

SerpApi MCP Server

SerpApi MCP Server for Google and other search engine results

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "serpapi-serpapi-mcp": {
      "url": "https://mcp.serpapi.com/YOUR_SERPAPI_API_KEY/mcp",
      "headers": {
        "YOUR_SERPAPI_API_KEY": "YOUR_SERPAPI_API_KEY_PLACEHOLDER"
      }
    }
  }
}

You can access SerpApi’s MCP Server to perform diverse search engine queries and data extractions through a Model Context Protocol client. This server integrates SerpApi engines, handles real-time data like weather and stock information, and formats results in complete or compact JSON for easy consumption by your applications.

How to use

Connect to the SerpApi MCP Server using an MCP client by selecting either the hosted service or your own self-hosted instance. Provide your SerpApi API key to authorize requests. Use the main Search Tool to run queries against multiple engines (Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay, and more) and receive automatically formatted results. You can request either complete or compact JSON responses depending on your needs. You can also perform location-based queries to fetch weather, stock data, and other dynamic information via search queries.

Available tools

search

Main MCP tool to perform queries across all supported SerpApi engines. Supports per-engine parameters, location filters, and result modes (complete or compact).

inspector

MCP Inspector utility used during development to test and validate MCP configurations against the running server.