Loading...

This MCP server allows AI assistants to browse public GitHub repositories, explore directories, and view file contents, enhancing code understanding and analysis.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
This MCP server allows AI assistants to browse public GitHub repositories, explore directories, and view file contents, enhancing code understanding and analysis.
This MCP server is relatively safe due to its read-only nature and reliance on GitHub's infrastructure. Risks are primarily related to the exposure of information within public repositories and potential rate limiting issues. Using a GitHub token mitigates rate limiting.
Performance is primarily limited by the GitHub API's response times and rate limits. Large files may take longer to retrieve.
Cost is primarily related to GitHub API usage. Authenticated requests have higher rate limits, reducing the likelihood of hitting limits and incurring costs associated with delays or errors.
npx github-repo-mcp{
"mcpServers": {
"github-repo-mcp": {
"command": "wsl",
"args": [
"bash",
"-c",
"cmd /c npx -y github-repo-mcp"
],
"enabled": true
}
}
}GITHUB_TOKENgetRepoAllDirectoriesLists all files and directories at the root of a specified GitHub repository.
Read-only operation, no modification of data.
getRepoDirectoriesLists the contents of a specific directory within a GitHub repository.
Read-only operation, no modification of data.
getRepoFileRetrieves and displays the content of a specific file from a GitHub repository.
Read-only operation, no modification of data.
Token
local
This MCP server is relatively safe due to its read-only nature and reliance on GitHub's infrastructure. Risks are primarily related to the exposure of information within public repositories and potential rate limiting issues. Using a GitHub token mitigates rate limiting.
The server operates in a read-only mode, limiting the scope of potential damage. Sandboxing is provided by the client application.
Production Tip
Monitor GitHub API usage to avoid rate limiting, especially in high-volume environments. Use a GitHub token for increased rate limits.
You can access any public GitHub repository.
No, but using a GitHub token will increase your rate limit.
Create a personal access token at https://github.com/settings/tokens and set it as the `GITHUB_TOKEN` environment variable.
You will receive an error message, and you will need to wait until the rate limit resets or use a GitHub token.
No, this server only provides read-only access.
It can access private repositories if you provide a GitHub token with the appropriate permissions.
The server can display the contents of text-based files. Binary files are detected and their contents are not displayed.