This repository contains an implementation of an Serpapi Universal MCP (Model Context Protocol) server. It provides a standardized interface for interacting with Serpapi's tools and services through a unified API.
The server is built using the Universal MCP framework.
This implementation follows the MCP specification, ensuring compatibility with other MCP-compliant services and tools.
You can start using Serpapi directly from agentr.dev. Visit agentr.dev/apps and enable Serpapi.
If you have not used universal mcp before follow the setup instructions at agentr.dev/quickstart
The full list of available tools is at Tools
Ensure you have the following before you begin:
- Python 3.11+ (recommended)
- uv (install globally with
pip install uv
)
Follow the steps below to set up your development environment:
-
Sync Project Dependencies
uv sync
This installs all dependencies from
pyproject.toml
into a local virtual environment (.venv
). -
Activate the Virtual Environment
For Linux/macOS:
source .venv/bin/activate
For Windows (PowerShell):
.venv\Scripts\Activate
-
Start the MCP Inspector
mcp dev src/universal_mcp_serpapi/server.py
This will start the MCP inspector. Make note of the address and port shown in the console output.
-
Install the Application
mcp install src/universal_mcp_serpapi/server.py
.
├── src/
│ └── universal_mcp_serpapi/
│ ├── __init__.py # Package initializer
│ ├── server.py # Server entry point
│ ├── app.py # Application tools
│ └── README.md # List of application tools
├── tests/ # Test suite
├── .env # Environment variables for local development
├── pyproject.toml # Project configuration
└── README.md # This file
This project is licensed under the MIT License.
Generated with MCP CLI — Happy coding! 🚀