Enables search queries on Baidu search engine through SerpApi, retrieving parsed search results.
Enables search queries on DuckDuckGo search engine through SerpApi, retrieving parsed search results.
Enables search queries on eBay through SerpApi, retrieving parsed search results for products and listings.
Enables search queries on Google (including Google Light variant) through SerpApi, retrieving parsed search results with support for location-based filtering and Google Locations lookup.
Enables search queries on Walmart through SerpApi, retrieving parsed search results for products.
Enables search queries on YouTube through SerpApi, retrieving parsed search results for videos.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SerpApi MCP Serverfind recent news about AI advancements"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.