mcp agent
Basic Information
mcp-agent is a lightweight, composable Python framework for building AI agents that use the Model Context Protocol (MCP). It is designed for developers who want to assemble multi-agent and single-agent workflows that call external MCP servers as tools. The project implements patterns from Anthropic's Building Effective Agents and provides a model-agnostic reference for OpenAI's Swarm pattern. It manages MCP server lifecycle, exposes server tools to LLMs, and wraps workflows as AugmentedLLM objects so patterns can be composed and nested. The repository includes examples and integrations for standalone scripts, Streamlit apps, a Claude Desktop server adapter, and reactive notebooks, making it practical to prototype or deploy agent applications that leverage MCP-aware services.