MCP Catalogs
首页mcp-claude-code screenshot

mcp-claude-code

by SDGLBL·301·综合分 47

实现Claude Code功能的MCP服务器,提供文件操作、代码分析和命令执行工具。

developer-toolsfile-systemai-llm
37
Forks
7
活跃 Issue
9 个月前
最近提交
2 天前
收录于

概述

MCP Claude Code是一个全面的实现,将Claude Code功能转换为MCP协议,通过MCP客户端实现直接的文件操作和代码分析。它提供广泛的文件系统工具,包括读取、写入、编辑和搜索功能,并支持AST上下文和Jupyter笔记本。服务器实现了安全措施,如权限提示和目录限制。

试试问 AI

装完之后,这里有 5 个你可以让 AI 做的事:

:在Claude Desktop中进行直接的代码重构和改进
:跨项目的自动化文件管理和代码模式搜索
:使用子代理进行复杂操作的并发任务委托
:这个服务器是否兼容Claude Desktop以外的MCP客户端?
:实施了哪些安全措施?

什么时候选它

当你需要类似Claude Code的功能,同时增强文件操作、代码搜索和多代理能力时,选择这个服务器。

什么时候不要选它

如果你需要对单个工具进行精细权限控制,避免使用此服务器,因为它使用目录级访问控制。

此 server 暴露的工具

从 README 抽取出 12 个工具
  • read

    Read file contents with line numbers, offset, and limit capabilities

  • write

    Create or overwrite files

  • edit

    Make line-based edits to text files

  • directory_tree

    Get a recursive tree view of directories

  • grep

    Fast pattern search in files with ripgrep integration

  • content_replace

    Replace patterns in file contents

  • run_command

    Execute shell commands

  • notebook_read

    Extract and read source code from all cells in a Jupyter notebook

  • notebook_edit

    Edit, insert, or delete cells in a Jupyter notebook

  • think

    Structured space for complex reasoning and analysis without making changes

  • dispatch_agent

    Launch one or more agents that can perform tasks using read-only tools concurrently

  • batch

    Execute multiple tool invocations in parallel or serially in a single request

可对比工具

mcp-serverfilesystem-mcpcode-mcpmcp-shell

安装

安装

  1. 安装包:
pip install mcp-claude-code
  1. 配置Claude Desktop:

添加到Claude Desktop的claude_desktop_config.json

{
  "mcpServers": {
    "claude-code": {
      "command": "python",
      "args": ["-m", "mcp_claude_code.server"],
      "env": {
        "MCP_CLAUDE_CODE_PATH": "/path/to/your/project"
      }
    }
  }
}

FAQ

这个服务器是否兼容Claude Desktop以外的MCP客户端?
是的,MCP Claude Code服务器设计为支持任何兼容MCP协议的客户端。
实施了哪些安全措施?
服务器实现了文件修改的权限提示、受限目录访问、输入验证和适当的错误处理。

mcp-claude-code 对比

GitHub →

最后更新于 · 由 README + GitHub 公开数据自动生成。