Retrieves parsed search results from Baidu search engine via SerpApi
Performs searches on DuckDuckGo and retrieves parsed search results via SerpApi
Retrieves parsed search results from eBay marketplace via SerpApi
Manages environment variables for the MCP server, specifically for storing and accessing the SerpApi API key
Performs searches on Google and retrieves parsed search results pages via SerpApi
Retrieves parsed search results from Walmart online store via SerpApi
Performs searches on YouTube and retrieves parsed video search results via SerpApi
SerpApi MCP Server
A Model Context Protocol (MCP) server implementation that integrates with SerpApi for comprehensive search engine results and data extraction.
Features
Multi-Engine Search: Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay, and more
Real-time Weather Data: Location-based weather with forecasts via search queries
Stock Market Data: Company financials and market data through search integration
Dynamic Result Processing: Automatically detects and formats different result types
Flexible Response Modes: Complete or compact JSON responses
JSON Responses: Structured JSON output with complete or compact modes
Related MCP server: G-Search MCP
Quick Start
SerpApi MCP Server is available as a hosted service at mcp.serpapi.com. In order to connect to it, you need to provide an API key. You can find your API key on your SerpApi dashboard.
You can configure Claude Desktop to use the hosted server:
Self-Hosting
Configure Claude Desktop:
Get your API key: serpapi.com/manage-api-key
Authentication
Two methods are supported:
Path-based:
/YOUR_API_KEY/mcp(recommended)Header-based:
Authorization: Bearer YOUR_API_KEY
Examples:
Search Tool
The MCP server has one main Search Tool that supports all SerpApi engines and result types. You can find all available parameters on the SerpApi API reference.
The parameters you can provide are specific for each API engine. Some sample parameters are provided below:
params.q(required): Search queryparams.engine: Search engine (default: "google_light")params.location: Geographic filtermode: Response mode - "complete" (default) or "compact"...see other parameters on the SerpApi API reference
Examples:
Supported Engines: Google, Bing, Yahoo, DuckDuckGo, YouTube, eBay, and more.
Result Types: Answer boxes, organic results, news, images, shopping - automatically detected and formatted.
Development
Troubleshooting
"Missing API key": Include key in URL path
/{YOUR_KEY}/mcpor headerBearer YOUR_KEY"Invalid key": Verify at serpapi.com/dashboard
"Rate limit exceeded": Wait or upgrade your SerpApi plan
"No results": Try different query or engine
Contributing
Fork the repository
Create your feature branch:
git checkout -b feature/amazing-featureInstall dependencies:
uv installMake your changes
Commit changes:
git commit -m 'Add amazing feature'Push to branch:
git push origin feature/amazing-featureOpen a Pull Request
License
MIT License - see LICENSE file for details.