A utility for the Model Context Protocol (MCP) to interact with SerpApi.
npm install mcp-serpapiA lightweight command-line tool to query SerpAPI using the Model Context Protocol (MCP).
Use this tool to connect your AI or context-aware systems to real-time search results via SerpAPI.
> 🙌 Contributions are welcome!
---
Install globally via npm:
``sh`
npm i -g mcp-serpapi
To test and debug your MCP server connection, use the official MCP Inspector:
`sh`
npx @modelcontextprotocol/inspector mcp-serpapi \
--api-key YOUR_SERPAPI_KEY
View all available CLI options by running:
`sh`
mcp-serpapi --help
| Option | Alias | Type | Required | Description |
| ----------- | ----- | ------ | -------- | ------------------------ |
| --api-key | -k` | string | Yes | Your SerpAPI private key |
If you encounter issues, have suggestions, or want to contribute, feel free to open an issue or pull request.
MIT © 2025 GhosT