Enables configuration through environment variables, allowing users to set API keys and other settings
Provides an HTTP API client for accessing the MCP agent's functionality, including web search capabilities
Supports comprehensive testing of the MCP agent's functionality, including mocked API responses
MCP Agent
A production-ready research agent using the Model Context Protocol (MCP), FastAPI, and Serper web search.
Features
Async MCP server with web search tool (Serper API)
FastAPI client for HTTP access
Full test suite with pytest and Serper API mocking
Setup
Clone the repo
Install dependencies:
pip install -r requirements.txtSet your Serper API key:
Create a
.env
file:SERPER_API_KEY=your_real_serper_api_key REQUEST_TIMEOUT=30 MAX_RESULTS=20 LOG_LEVEL=INFO
Usage
Start FastAPI client (runs MCP server as subprocess):
python -m client.fastapi_clientPOST /search for web search:
{ "query": "search term", "max_results": 10 }GET /health for health check
Testing
Run all tests:
pytest tests/test_e2e.py -vRun integration test (real Serper API):
pytest -m integration tests/test_e2e.py
MIT License
This server cannot be installed
A production-ready research agent that enables users to perform web searches via the Model Context Protocol (MCP) and a FastAPI client interface.
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.Last updated -100156MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI assistants to perform real-time web searches, retrieving up-to-date information from the internet via a Crawler API.Last updated -124217
- -securityAlicense-qualityA Model Context Protocol server that provides real-time web search capabilities to AI assistants through pluggable search providers, currently integrated with the Brave Search API.Last updated -13MIT License
- -securityAlicense-qualityModel Context Protocol (MCP) server that provides AI assistants with advanced web research capabilities, including Google search integration, intelligent content extraction, and multi-source synthesis.Last updated -144MIT License