GitHub MCP Server
@kousen
关于 GitHub MCP Server
MCP wrapper for the `gh` command
基本信息
配置
工具
12List issues in a repository
Get details of a specific issue
Create a new issue
List pull requests
Get pull request details
Create a new pull request
Get file contents from repository
List user's repositories
Search GitHub repositories
Get authenticated user details
List repository branches
Create a new branch
概览
What is GitHub MCP Server?
GitHub MCP Server is a Spring Boot‑based implementation of the Model Context Protocol that exposes GitHub operations as tools for AI assistants. It uses the GitHub CLI (gh) and Spring AI to let AI agents interact with repositories, issues, pull requests, and user account data.
How to use GitHub MCP Server?
First, install the GitHub CLI and authenticate with gh auth login. Then clone the repository, run ./gradlew build to compile, and start the server with ./gradlew bootRun. Configuration can be adjusted in src/main/resources/application.properties.
Key features of GitHub MCP Server
- List and search GitHub repositories
- List branches and create new branches
- Get file contents from a repository
- List, get, and create issues
- List, get, and create pull requests
- Retrieve authenticated user details
Use cases of GitHub MCP Server
- An AI assistant managing repository branches and files for a user
- Automating issue triage by listing and creating issues
- Streamlining pull request creation and review workflows
- Searching public repositories for code examples or dependencies
- Fetching the authenticated user’s profile and repository list
FAQ from GitHub MCP Server
What are the prerequisites to run this server?
Java 21 or higher and the GitHub CLI (gh) installed and authenticated.
How do I authenticate with GitHub?
Run gh auth login in your terminal to authenticate the GitHub CLI.
What tools does the server expose?
It provides over a dozen tools including listIssues, createPullRequest, getFileContents, searchRepositories, createBranch, and more – all listed in the README’s tool table.
How do I build and run the server?
Clone the project, use ./gradlew build, then start with ./gradlew bootRun.
What technology stack does this server use?
Spring Boot 3.5.0, Spring AI 1.0.0, Java 21, GitHub CLI, and Gradle as the build tool.
版本控制 分类下的更多 MCP 服务器
GitHub MCP Server Extension for Zed
LoamStudiosA GitHub MCP Server extension for Zed
Test
skillsCreate a site or blog from your GitHub repositories with GitHub Pages.
Git MCP Server
cyanheadsA Git MCP server for AI agents. STDIO & Streamable HTTP.
Atlassian Bitbucket MCP Server
aashariNode.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
Github Mcp Server
githubGitHub's official MCP Server
评论