MCP.so
登录

GitHub MCP Server

@kousen

关于 GitHub MCP Server

MCP wrapper for the `gh` command

基本信息

分类

版本控制

许可证

MIT license

运行时

java

传输方式

stdio

发布者

kousen

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

12

List 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 服务器