GitHub MCP Server
A Model Context Protocol (MCP) server for interacting with GitHub
Overview
GitHub MCP Server is a Model Context Protocol (MCP) server designed for interacting with GitHub, enabling AI assistants to perform various GitHub operations such as repository management, file operations, and issue tracking.
To use the GitHub MCP Server, clone the repository, install the dependencies, and run the server locally with your GitHub Personal Access Token configured as an environment variable.
- Repository Operations: Create and fork repositories. - File Operations: Create, update, and read files, and push multiple files in a single commit. - Issue Management: Create, update, list, and comment on issues. - Pull Requests: Create pull requests. - Branch Management: Create branches. - Search Capabilities: Search code, repositories, issues, and users. - Commit History: List commits.
- Automating repository management tasks.
- Streamlining issue tracking and management for projects.
- Facilitating file operations in GitHub repositories through AI.
Add to your AI client
Use these steps to connect GitHub MCP 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-github-renantrendt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-github-renantrendt"
]
}
}
}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-github-renantrendt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-github-renantrendt"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-github-renantrendt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-github-renantrendt"
]
}
}
}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-github-renantrendt": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-github-renantrendt"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-github-renantrendt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-github-renantrendt"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-github-renantrendt": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-github-renantrendt"
]
}
}
}FAQ
What are the prerequisites for using GitHub MCP Server?
You need Node.js 18 or higher and a GitHub Personal Access Token with appropriate permissions.
How do I deploy the server?
You can deploy the server using Smithery, following the provided configuration files in the repository.
Is there a license for this project?
Yes, the project is licensed under the MIT License.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2918,"uuid":"bbab8b0d-673c-4a16-b79b-7ede4fe9eff7","name":"mcp-github","title":"GitHub MCP Server","description":"A Model Context Protocol (MCP) server for interacting with GitHub","avatar_url":"https://avatars.githubusercontent.com/u/159676672?v=4","created_at":"2025-03-16T04:09:50.307Z","updated_at":"2025-03-16T05:51:41.090Z","status":"created","author_name":"renantrendt","author_avatar_url":"https://avatars.githubusercontent.com/u/159676672?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/renantrendt/mcp-github","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-15 19:05:23\"}","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"}]]}]