MCP GitHub Repository Server
MCP server for interacting with a github repo
Overview
The MCP GitHub Repository Server is a server built using the Model Context Protocol (MCP) that allows AI assistants to access and interact with GitHub repository contents.
To use the server, set up the necessary environment variables for GitHub authentication, install dependencies, and configure your local setup according to the provided instructions.
- Access any file in a GitHub repository via a specific URI - List contents of a repository and navigate through directories - Support for branch-specific file access - Serve file contents as plain text
- Enabling AI applications to read and analyze code from GitHub repositories.
- Automating file retrieval and monitoring changes in specified repositories.
- Assisting developers with repository management through automated tools.
Add to your AI client
Use these steps to connect MCP GitHub Repository Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-github-repo-loglmhq": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-github-repo-loglmhq"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-github-repo-loglmhq": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-github-repo-loglmhq"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-github-repo-loglmhq": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-github-repo-loglmhq"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-github-repo-loglmhq": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-github-repo-loglmhq"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-github-repo-loglmhq": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-github-repo-loglmhq"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-github-repo-loglmhq": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-github-repo-loglmhq"
]
}
}
}FAQ
Do I need a GitHub account to use this server?
Yes, you need a GitHub account to generate a Personal Access Token for authentication.
What is the purpose of the Personal Access Token?
The token is used to authenticate requests made to the GitHub API, ensuring secure access to repository contents.
Is there any rate limit for using the GitHub API with this server?
Yes, GitHub imposes rate limits on API requests depending on the authenticated account, so make sure to monitor your usage.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":337,"uuid":"4422ebc8-9794-4856-8017-0815511bdb21","name":"mcp-server-github-repo","title":"MCP GitHub Repository Server","description":"MCP server for interacting with a github repo","avatar_url":"https://avatars.githubusercontent.com/u/190804255?v=4","created_at":"2024-12-13T13:20:27.849Z","updated_at":"2024-12-13T15:09:09.237Z","status":"created","author_name":"loglmhq","author_avatar_url":"https://avatars.githubusercontent.com/u/190804255?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/loglmhq/mcp-server-github-repo","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/loglmhq/mcp-server-github-repo/raw/main/demo.png","type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]