MCP Catalogs
首页

filesystem vs mcp-python-interpreter

并排对比,帮你在这两个 MCP server 之间做选择。

filesystem
by modelcontextprotocol
mcp-python-interpreter
by yzfly
Stars★ 85,748★ 99
30天用量
综合分7744
官方
分类
本地文件系统开发者工具效率工具
开发者工具AI / LLM 工具本地文件系统
实现语言TypeScriptPython
最近提交本月7 个月前

filesystem · 概述

功能丰富的文件系统操作 MCP 服务器,具有动态目录访问控制功能。

mcp-python-interpreter · 概述

MCP Python 解释器服务器,让 LLM 能够运行 Python 代码、管理环境和处理文件,具有适当的安全隔离。

filesystem · 使用场景

  • 使 AI 模型能够读取和写入项目文件进行开发
  • 允许 Claude 或其他 MCP 客户端浏览和分析代码库
  • 为内容生成提供对特定目录的安全沙盒访问

mcp-python-interpreter · 使用场景

  • AI 辅助 Python 开发,包括代码执行和调试
  • 在安全沙箱环境中执行文件操作和内容生成
  • 通过 LLM 交互管理 Python 环境和软件包

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 中安装。

mcp-python-interpreter · 安装

使用 pip 安装:

pip install mcp-python-interpreter

或使用 uv:

uv install mcp-python-interpreter

Claude Desktop 配置

将以下内容添加到您的 claude_desktop_config.json

{
  "mcpServers": {
    "mcp-python-interpreter": {
        "command": "uvx",
        "args": [
            "mcp-python-interpreter",
            "--dir",
            "/path/to/your/work/dir",
            "--python-path",
            "/path/to/your/python"
        ],
        "env": {
            "MCP_ALLOW_SYSTEM_ACCESS": 0
        },
    }
  }
}
对比内容由 README + GitHub 公开数据自动生成,定期更新。