pydantic-rpc vs filesystem
并排对比,帮你在这两个 MCP server 之间做选择。
pydantic-rpc by i2y | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 74 | ★ 85,748 |
| 30天用量 | — | — |
| 综合分 | 45 | 77 |
| 官方 | — | ✓ |
| 分类 | 开发者工具AI / LLM 工具 | 本地文件系统开发者工具效率工具 |
| 实现语言 | Python | TypeScript |
| 最近提交 | 3 个月前 | 本月 |
pydantic-rpc · 概述
PydanticRPC 快速将 Pydantic 模型暴露为 gRPC、ConnectRPC 和 MCP 服务,无需 protobuf 文件。
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
pydantic-rpc · 使用场景
- 构建通过 MCP 协议暴露工具的 AI 服务
- 无需编写 protobuf 文件创建 gRPC 服务
- 使用 Connect-RPC 开发基于 HTTP 的 RPC 服务
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
pydantic-rpc · 安装
通过 pip 安装 PydanticRPC:
pip install pydantic-rpc安装 CLI 支持:
pip install pydantic-rpc-cli在 Claude Desktop 中使用,添加到 config.json:
{
"mcpServers": {
"pydantic-rpc": {
"command": "python",
"args": ["-m", "pydantic_rpc.server"],
"env": {
"PYDANTIC_RPC_PACKAGE_NAME": "my.services"
}
}
}
}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 中安装。