
mcp-claude-code
by SDGLBL·★ 301·综合分 47
实现Claude Code功能的MCP服务器,提供文件操作、代码分析和命令执行工具。
概述
MCP Claude Code是一个全面的实现,将Claude Code功能转换为MCP协议,通过MCP客户端实现直接的文件操作和代码分析。它提供广泛的文件系统工具,包括读取、写入、编辑和搜索功能,并支持AST上下文和Jupyter笔记本。服务器实现了安全措施,如权限提示和目录限制。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当你需要类似Claude Code的功能,同时增强文件操作、代码搜索和多代理能力时,选择这个服务器。
什么时候不要选它
如果你需要对单个工具进行精细权限控制,避免使用此服务器,因为它使用目录级访问控制。
此 server 暴露的工具
从 README 抽取出 12 个工具readRead file contents with line numbers, offset, and limit capabilities
writeCreate or overwrite files
editMake line-based edits to text files
directory_treeGet a recursive tree view of directories
grepFast pattern search in files with ripgrep integration
content_replaceReplace patterns in file contents
run_commandExecute shell commands
notebook_readExtract and read source code from all cells in a Jupyter notebook
notebook_editEdit, insert, or delete cells in a Jupyter notebook
thinkStructured space for complex reasoning and analysis without making changes
dispatch_agentLaunch one or more agents that can perform tasks using read-only tools concurrently
batchExecute multiple tool invocations in parallel or serially in a single request
可对比工具
安装
安装
- 安装包:
pip install mcp-claude-code- 配置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 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。