I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

serpapi-MCP-serveur
serpapi-MCP
1
Github Watches
3
Github Forks
5
Github Stars
SerpApi MCP Server
Build an MCP server that:
- Get parsed search engines results pages via SerpApi using an API key, fast
This MCP (Model Context Protocol) server integrates with SerpApi to perform searches across various search engines and retrieve both live and archived results. It exposes tools and resources for seamless interaction with MCP clients or hosts, such as Grok or Claude for Desktop.
Installation
To set up the SerpApi MCP server, install the required Python libraries:
pip install mcp serpapi python-dotenv
You’ll also need a SerpApi API key. Sign up at SerpApi to get one.
Quick Start
-
Save the Server Code: Place the server code in a file, e.g., server.py.
-
Configure the API Key: Create a .env file in the same directory with your SerpApi API key:
SERPAPI_API_KEY=your_api_key_here
- Run the Server: Start the server with:
python server.py
- Integrate with an MCP Client: Connect the server to an MCP client or host (e.g., Claude for Desktop). For Claude, update Claude_desktop_config.json:
{
"mcpServers": {
"serpapi": {
"command": "python",
"args": ["path/to/server.py"]
}
}
}
Restart the client to load the server.
Features
-
Supported Engines: Google, Google Light, Bing, Walmart, Yahoo, eBay, YouTube, DuckDuckGo, Yandex, Baidu
-
Tools:
- search: Perform a search on a specified engine with a query and optional parameters.
- Resources:
- locations: Find Google Locations.
Usage Examples
These examples assume an MCP client (e.g., written in Python using the MCP client SDK) is connected to the server. Listing Supported Engines Retrieve the list of supported search engines:
engines = await session.read_resource("locations")
print(engines)
Performing a Search Search for "coffee" on Google with a location filter:
result = await session.call_tool("search", {
"query": "coffee",
"engine": "google",
"location": "Austin, TX"
})
print(result)
Configuration
API Key: Set your SerpApi API key in the .env
file as SERPAPI_API_KEY
.
Running the Server
Production Mode: Launch the server with:
python server.py
Development Mode: Use the MCP Inspector for debugging:
mcp dev server.py
Testing
Test the server using the MCP Inspector or an MCP client. For Claude for Desktop, configure the server in Claude_desktop_config.json
, restart the app, and use the hammer icon to explore and test available tools.
相关推荐
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Advanced software engineer GPT that excels through nailing the basics.
This GPT assists in finding a top-rated business CPA - local or virtual. We account for their qualifications, experience, testimonials and reviews. Business operators provide a short description of your business, services wanted, and city or state.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Une liste organisée des serveurs de protocole de contexte de modèle (MCP)
Reviews

user_PJC8FldZ
The Remote MCP Server on Cloudflare by davesbits is a game-changer for efficient cloud management. Its seamless integration and robust security features make it a top choice for any professional. Check it out here: https://mcp.so/server/remote-mcp-server/davesbits