mcp-agent
by lastmile-ai·★ 8,325·Score 59
A comprehensive Python framework for building effective agents with Model Context Protocol and simple workflow patterns.
Overview
mcp-agent is a powerful Python framework that fully implements the Model Context Protocol (MCP) to build robust agents. It provides simple, composable patterns for agent development, supports both basic and sophisticated workflows with Temporal for durable execution, and allows agents to leverage MCP servers for various capabilities. The framework includes LLM integration, tools/resources/prompts support, and cloud deployment options, making it suitable for production-grade agent applications.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose mcp-agent when you need to build production-ready LLM agents with advanced patterns like durable execution, human-in-the-loop, and cloud deployment.
When NOT to choose this
Avoid if you need a minimal MCP implementation or are already deeply invested in another agent framework with different abstractions.
Tools this server exposes
3 tools extracted from the READMEfetchFetch content from URLs using the fetch MCP server
filesystemRead and write files on the local filesystem using the filesystem MCP server
list_toolsList all MCP tools available to the agent
Note: Tool names were inferred from the example code showing the agent connecting to 'fetch' and 'filesystem' MCP servers, and the code demonstrating listing available tools.
Comparable tools
Installation
Installation
Install with pip:
pip install mcp-agentOr using uv (recommended):
uv add mcp-agentFor additional LLM providers:
uv add "mcp-agent[openai, anthropic, google, azure, bedrock]"Claude Desktop Integration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-agent": {
"command": "uvx",
"args": ["mcp-agent", "run"]
}
}
}FAQ
- What MCP features are supported?
- Full MCP support including tools, resources, prompts, notifications, OAuth, sampling, elicitation, and roots.
- Can I use this with different LLM providers?
- Yes, it supports OpenAI, Anthropic, Google, Azure, and Bedrock LLM providers with easy configuration.
On Hacker News
Recent discussion from the developer community.
- Story by saqadri · 2025-01-29
- Story by saqadri · 2025-05-21
- Story by haniehz · 2025-07-19
Compare mcp-agent with
Last updated · Auto-generated from public README + GitHub signals.