mcp-agent vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
mcp-agent by Haohao-end | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 85 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 47 | 77 |
| 官方 | — | ✓ |
| 分类 | AI / LLM 工具开发者工具知识库 / RAG | 本地文件系统开发者工具效率工具 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 3 个月前 | 本月 |
mcp-agent · 概述
模块化Python MCP框架,集成LLM工具、天气数据和高级RAG功能。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
mcp-agent · 使用场景
- 构建可通过LLM访问实时天气信息的智能代理
- 创建具有高级RAG功能的知识检索文档智能系统
- 开发具有标准化MCP工具集成的模块化AI应用
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
mcp-agent · 安装
安装
- **先决条件**
- Python 3.10+ - 虚拟环境(推荐)
- **环境设置**
在根目录创建.env文件,包含: ``env API_KEY=your_llm_api_key BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1 MODEL=qwen-plus EMBED_MODEL=sentence-transformers/all-MiniLM-L6-v2 ``
- **依赖项**
``bash pip install mcp langchain langchain-community langchain-openai chromadb httpx python-dotenv openai ``
Claude Desktop 集成
添加到claude_desktop_config.json:
{
"mcpServers": {
"mcp-agent": {
"command": "python",
"args": ["/path/to/mcp-agent/client.py"]
}
}
}filesystem · 安装
安装
使用 NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}使用 Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code 扩展
点击 README 中的安装按钮直接在 VS Code 中安装。