Provides AI assistants with tools to browse public GitHub repos, explore directories, and read file contents via MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Github Repo MCP.
GitHub Repo MCP is an open-source MCP server that lets your AI assistants browse GitHub repositories, explore directories, and view file contents.
Getting started β’ Feature overview
stdio protocolInstalling the server requires the following on your system:
You can install and run GitHub Repo MCP using Smithery, NPX, or setting in mcp.json of your IDE:
To install GitHub Repo MCP for Claude Desktop automatically via Smithery:
Wait a few seconds or click on the refresh button a few times if it does not register. If it still won't register, make sure you entered the right command.
The GitHub Repo MCP server can use a GitHub token for higher rate limits when accessing the GitHub API.
| Variable | Required | Default | Description |
|---|---|---|---|
GITHUB_TOKEN | No | None | Your GitHub personal access token for higher rate limits |
While the server works without authentication, GitHub API has rate limits that are much lower for unauthenticated requests. To increase your rate limit:
The server provides three main tools for interacting with GitHub repositories:
getRepoAllDirectoriesLists all files and directories at the root of a GitHub repository.
repoUrl: The URL of the GitHub repository (e.g., "https://github.com/owner/repo")getRepoDirectoriesLists contents of a specific directory in a GitHub repository.
repoUrl: The URL of the GitHub repositorypath: The directory path to fetch (e.g., "src")getRepoFileRetrieves and displays the content of a specific file from a GitHub repository.
repoUrl: The URL of the GitHub repositorypath: The file path to fetch (e.g., "src/index.js")Here are some examples of how to use these tools with an AI assistant:
Browsing a repository root: Ask your AI assistant to "Show me the contents of the repository at https://github.com/Ryan0204/github-repo-mcp"
Exploring a specific directory: Ask "What files are in the src directory of https://github.com/Ryan0204/github-repo-mcp?"
Viewing a file: Ask "Show me the README.md file from https://github.com/Ryan0204/github-repo-mcp"
Here are some common issues and their solutions:
If you encounter any issues, please check the output for error messages or create an issue in the GitHub repository.
Enjoy! βΊοΈ
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ryan0204-github-repo-mcp)<a href="https://allmcps.com/mcp/ryan0204-github-repo-mcp"><img src="https://allmcps.com/api/badge/ryan0204-github-repo-mcp?style=directory" alt="Github Repo MCP on AllMCPs" /></a>