Skip to main content
Glama

MCP Agent

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

  1. Clone the repo
  2. Install dependencies:
    pip install -r requirements.txt
  3. Set 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_client
  • POST /search for web search:
    { "query": "search term", "max_results": 10 }
  • GET /health for health check

Testing

  • Run all tests:
    pytest tests/test_e2e.py -v
  • Run integration test (real Serper API):
    pytest -m integration tests/test_e2e.py

MIT License

-
security - not tested
F
license - not found
-
quality - not tested

A production-ready research agent that enables users to perform web searches via the Model Context Protocol (MCP) and a FastAPI client interface.

  1. Features
    1. Setup
      1. Usage
        1. Testing

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol (MCP) server that provides search and crawl functionality using Search1API.
            Last updated -
            5
            719
            143
            TypeScript
            MIT License
            • Apple
          • A
            security
            F
            license
            A
            quality
            A 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 -
            1
            297
            14
            JavaScript
            • Apple
            • Linux
          • -
            security
            A
            license
            -
            quality
            A 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 -
            10
            TypeScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            Model 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 -
            27
            2
            TypeScript
            MIT License

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/AtharvaJadhav/mcp-agent'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server