码服
用于 gitingest 的 MCP 服务器。它允许 Claude Desktop、Cursor、Cline 等 MCP 客户端快速提取关于 Github 仓库的信息,包括仓库摘要、项目目录结构、文件内容等。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"gitingest": {
"args": [
"run",
"--with",
"mcp[cli]",
"--with-editable",
"\u003cpath to gitingest-mcp project\u003e/gitingest_mcp",
"mcp",
"run",
"\u003cpath to gitingest-mcp project\u003e/gitingest-mcp/src/gitingest_mcp/server.py"
],
"command": "\u003cpath to uv\u003e/uv"
},
"gitingest-mcp": {
"args": [
"--from",
"git+https://github.com/puravparab/gitingest-mcp",
"gitingest-mcp"
],
"command": "\u003cpath to uv\u003e/uvx"
}
}
}
可用工具 (3 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
git_summary 3 个参数 需填 2 项
Get a summary of a GitHub repository that includes - Repo name, - Files in repo - Number of tokens in repo - Summary from the README.md Args: owner: The GitHub organization or username repo: The repository name branch: Optional branch name (default: None)
必填参数:owner、repo
git_tree 3 个参数 需填 2 项
Get the tree structure of a GitHub repository Args: owner: The GitHub organization or username repo: The repository name branch: Optional branch name (default: None)
必填参数:owner、repo
git_files 4 个参数 需填 3 项
Get the content of specific files from a GitHub repository Args: owner: The GitHub organization or username repo: The repository name file_paths: List of paths to files within the repository branch: Optional branch name (default: None)
必填参数:owner、repo、file_paths
服务介绍
Gitingest-MCP 
这是一个用于 gitingest 的 MCP 服务器。它允许像 Claude Desktop、Cline、Cursor 等 MCP 客户端快速提取关于 Github 仓库的信息,包括:
- 仓库摘要
- 项目目录结构
- 文件内容
https://github.com/user-attachments/assets/c1fa596b-a70b-4d37-91d9-ea5e80284793
目录
安装
通过 Smithery 安装
-
要通过 Smithery 安装 gitingest-mcp:
npx -y @smithery/cli@latest install @puravparab/gitingest-mcp --client claude --config "{}" # Claudenpx -y @smithery/cli@latest run @puravparab/gitingest-mcp --client cursor --config "{}" # Cursornpx -y @smithery/cli@latest install @puravparab/gitingest-mcp --client windsurf --config "{}" # Windsurfnpx -y @smithery/cli@latest install @puravparab/gitingest-mcp --client cline --config "{}" # Cline
通过 Github 安装
-
将以下内容添加到 MCP 客户端配置文件中
{ "mcpServers": { "gitingest-mcp": { "command": "<path to uv>/uvx", "args": [ "--from", "git+https://github.com/puravparab/gitingest-mcp", "gitingest-mcp" ] } } }
手动安装仓库
-
克隆仓库
git clone https://https://github.com/puravparab/Gitingest-MCP cd Gitingest-MCP -
安装依赖
uv sync -
将以下内容添加到 MCP 客户端配置文件中
{ "mcpServers": { "gitingest": { "command": "<path to uv>/uv", "args": [ "run", "--with", "mcp[cli]", "--with-editable", "<path to gitingest-mcp project>/gitingest_mcp", "mcp", "run", "<path to gitingest-mcp project>/gitingest-mcp/src/gitingest_mcp/server.py" ] } } } -
如果遇到问题,请参考此 MCP 服务器文档
更新 MCP 客户端配置
-
添加到 Claude 桌面
在您的 IDE 中打开配置文件
cursor ~/Library/Application\ Support/Claude/claude_desktop_config.jsoncode ~/Library/Application\ Support/Claude/claude_desktop_config.json
调试
- 使用 mcp 检查器
uv run mcp dev src/gitingest_mcp/server.py