filesystem vs pctx
并排对比,帮你在这两个 MCP server 之间做选择。
filesystem by modelcontextprotocol | pctx by portofcontext | |
|---|---|---|
| Stars | ★ 85,748 | ★ 252 |
| 30天用量 | — | — |
| 综合分 | 77 | 49 |
| 官方 | ✓ | — |
| 分类 | 本地文件系统开发者工具效率工具 | AI / LLM 工具开发者工具安全 |
| 实现语言 | TypeScript | Rust |
| 最近提交 | 本月 | 本月 |
filesystem · 概述
功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。
pctx · 概述
pctx 是一个基于 Rust 的框架,通过代码模式将 AI 代理连接到工具和 MCP 服务器,实现安全、高效的工作流。
filesystem · 使用场景
- 使 AI 模型能够读取和写入项目文件进行开发
- 允许 Claude 或其他 MCP 客户端浏览和分析代码库
- 为内容生成提供对特定目录的安全沙盒访问
pctx · 使用场景
- 通过代码模式构建具有更少令牌消耗的 AI 代理
- 在单个界面后聚合多个 MCP 服务器
- 在隔离环境中安全执行 LLM 生成的代码
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 中安装。
pctx · 安装
# Homebrew
brew install portofcontext/tap/pctx
# cURL
curl --proto '=https' --tlsv1.2 -LsSf https://raw.githubusercontent.com/portofcontext/pctx/main/install.sh | sh
# npm
npm i -g @portofcontext/pctx对于 Claude Desktop:
{
"mcpServers": {
"pctx": {
"command": "pctx",
"args": ["mcp", "start", "--stdio"]
}
}
}