MCP.so
登录

MCP GitHub Repository Server

@loglmhq

基本信息

分类

版本控制

许可证

MIT

传输方式

stdio

作者

loglmhq

关于 MCP GitHub Repository Server

MCP server for interacting with a github repo

MCP GitHub Repository Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

MCP GitHub Repository Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP GitHub Repository Server?

MCP GitHub Repository Server is an MCP (Model Context Protocol) server that provides access to GitHub repository contents. It allows AI assistants to browse and read files from specified GitHub repositories via URI-based resource access.

How to use MCP GitHub Repository Server?

Configure by setting environment variables: GITHUB_PERSONAL_ACCESS_TOKEN, GITHUB_OWNER, GITHUB_REPO, and optionally GITHUB_BRANCH. Build with npm run build and add the server config to Claude Desktop’s claude_desktop_config.json. The server exposes ListResources and ReadResource endpoints.

Key features of MCP GitHub Repository Server

  • Access any file in a GitHub repository via URI
  • List repository contents and navigate directories
  • Support for branch-specific file access
  • File contents served as plain text
  • Directories served with application/x-directory MIME type
  • Authentication via GitHub Personal Access Token

Use cases of MCP GitHub Repository Server

  • AI assistant reads source code from a specific GitHub repository
  • Browsing repository file structure without cloning
  • Retrieving configuration or documentation files from a private repo
  • Integrating code-level context into AI conversations

常见问题

1

What does MCP GitHub Repository Server do?

It allows AI assistants to browse and read files from specified GitHub repositories using the Model Context Protocol.

2

What dependencies or runtime are required?

Node.js is required. Dependencies are installed with `npm install`. The server communicates over stdio.

3

How is authentication handled?

It uses a GitHub Personal Access Token set via the `GITHUB_PERSONAL_ACCESS_TOKEN` environment variable.

4

Where does repository data live?

Data is fetched from the GitHub API (`https://api.github.com/repos/{owner}/{repo}/contents/{path}`). It is not stored locally.

5

What are the known limitations?

The server notes potential repository size limitations when accessing large repositories. Invalid paths (e.g., reading a directory as a file) will cause errors.

评论

版本控制 分类下的更多 MCP 服务器