Pera1 的 GitHub MCP 服务器
一个模型上下文协议服务器,用于将 GitHub 代码连接到 Claude.ai。该服务器利用 Pera1 服务从 GitHub 存储库中提取代码,并为 Claude 提供更好的上下文。
设置
将以下内容添加到您的 MCP 配置文件( ~/Library/Application Support/Claude/claude_desktop_config.json
):
现在您可以向 Claude 询问有关 GitHub 代码库的问题。
参数
url
:GitHub 存储库 URL(必需)dir
:按目录路径过滤文件(以逗号分隔)ext
:按扩展名过滤文件(以逗号分隔)mode
:显示模式(例如,tree
仅显示目录结构和自述文件)branch
:指定要从中获取的分支file
:指定要检索的单个文件
使用示例
您可以向 Claude 询问以下问题:
对于特定目录:
对于特定文件:
对于仅包含 README 文件的目录结构:
对于特定分支:
执照
麻省理工学院
作者
kazuph( https://x.com/kazuph )
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
一个模型上下文协议服务器,用于将 GitHub 代码连接到 Claude.ai。该服务器利用 Pera1 服务从 GitHub 存储库中提取代码,并为 Claude 提供更好的上下文。
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.Last updated -6Python
- -securityFlicense-qualityModel Context Protocol server that enables Claude to retrieve and analyze code from GitHub repositories through the uithub API.Last updated -615JavaScript
- -securityAlicense-qualityA Model Context Protocol server that enables seamless integration between Claude AI and development tools like VSCode, Augment, Vercel, Airtable, and Square.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that gives Claude access to multiple AI models (Gemini, OpenAI, OpenRouter) for enhanced code analysis, problem-solving, and collaborative development through AI orchestration with conversations that continue across tasks.Last updated -5,417Python