mcp-agent
by lastmile-ai·★ 8,325·综合分 59
一个全面的 Python 框架,使用模型上下文协议和简单的工作流模式构建有效代理。
概述
mcp-agent 是一个功能强大的 Python 框架,完全实现模型上下文协议(MCP)来构建健壮的代理。它提供简单、可组合的代理开发模式,支持使用 Temporal 进行持久化执行的基本和复杂工作流,并允许代理利用 MCP 服务器实现各种功能。该框架包含 LLM 集成、工具/资源/提示支持以及云部署选项,适合生产级代理应用。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您需要构建具有持久执行、人工参与和云部署等高级模式的、生产就绪的 LLM 智能体时,选择 mcp-agent。
什么时候不要选它
如果您需要最小化的 MCP 实现或已经深度投入到其他具有不同抽象的智能体框架中,请避免使用。
此 server 暴露的工具
从 README 抽取出 3 个工具fetchFetch 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
说明: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.
可对比工具
安装
安装
使用 pip 安装:
pip install mcp-agent或使用 uv(推荐):
uv add mcp-agent对于额外的 LLM 提供商:
uv add "mcp-agent[openai, anthropic, google, azure, bedrock]"Claude Desktop 集成
添加到你的 claude_desktop_config.json:
{
"mcpServers": {
"mcp-agent": {
"command": "uvx",
"args": ["mcp-agent", "run"]
}
}
}FAQ
- 支持哪些 MCP 功能?
- 完全支持 MCP,包括工具、资源、提示、通知、OAuth、采样、启发式和根功能。
- 我可以与不同的 LLM 提供商一起使用吗?
- 是的,它支持 OpenAI、Anthropic、Google、Azure 和 Bedrock LLM 提供商,并易于配置。
Hacker News 讨论
开发者社区最近的相关讨论。
- 帖子 by saqadri · 2025-01-29
- 帖子 by saqadri · 2025-05-21
- 帖子 by haniehz · 2025-07-19
mcp-agent 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。