SerpApi MCP Server
The SerpApi MCP Server connects SerpApi’s multi‑engine search capabilities to MCP‑compatible clients (e.g., Claude Desktop, VS Code, Cursor).
This integration allows AI assistants to perform live searches using your SerpApi subscription without requiring custom tool implementation.
SerpApi MCP is open source and available on GitHub.
Authentication & Configuration
The MCP server is hosted at https://mcp.serpapi.com. You can authenticate using one of two methods:
- Path-based (Recommended):
/{YOUR_API_KEY}/mcp - Header-based:
Authorization: Bearer YOUR_API_KEY
VS Code / Claude Desktop Config:
{
"mcpServers": {
"serpapi": {
"url": "https://mcp.serpapi.com/YOUR_SERPAPI_API_KEY/mcp"
}
}
}
Defaults and Parameters
| Parameter | Default | Description |
|---|---|---|
tool |
search |
The MCP tool name to invoke. |
params |
— | Engine-specific parameters provided to the API. |
mode |
complete |
Response shape. Use compact for concise output. |
Examples
Full mode example:
{"name": "search", "arguments": {"params": {"q": "best coffee in Austin"}}}
Compact mode example:
{"name": "search", "arguments": {"params": {"q": "AAPL stock"}, "mode": "compact"}}
Helpful links: Manage API Key · GitHub · API Status