Skip to main content
Glama
MCP Agent

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

Related MCP server: WebQuest MCP

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A production-ready Model Context Protocol server that brings AI-powered web search directly into development environments, providing intelligent search results with proper citations in Claude Desktop, Cursor, or any MCP-compatible client.
      61 npm
      21
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A self-contained web-research MCP server that lets local LLM agents search, fetch, and synthesize web content using tools like web_search, web_fetch, and web_research.
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to perform unified web research through a single MCP server, including search, page fetching, recursive crawling, document parsing, YouTube transcript extraction, and deep multi-query research.
      3
      -