mcp-agent is a Python framework for building effective AI agents using the Model Context Protocol with simple, composable workflow patterns like orchestrator, router, and evaluator-optimizer. It handles MCP server lifecycle management and supports durable execution via Temporal for production-grade scalability.
Use this framework when building applications that require AI agents to interact with multiple tools, filesystems, or APIs through the MCP protocol. It's particularly valuable for production workloads requiring durable execution, complex multi-step workflows, or when you need to expose agents themselves as MCP servers.