MCP.so
登录

GitHub MCP Server

@yamagai

关于 GitHub MCP Server

GitHub MCP Server (SSE)

基本信息

分类

版本控制

运行时

go

传输方式

stdio

发布者

yamagai

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "github-mcp-server-sse": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "github-mcp-server-sse",
        "."
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is GitHub MCP Server?

GitHub MCP Server is a Model Context Protocol server that provides a standardized interface for LLM applications to interact with the GitHub API. It enables operations such as repository search, file management, pull request handling, and repository administration.

How to use GitHub MCP Server?

Install with go get github.com/yamagai/github-mcp-server-sse. Set the GITHUB_TOKEN environment variable with a GitHub personal access token. Run the server in stdio mode with github-mcp or in SSE mode with github-mcp -t sse. Optionally use the provided Docker container.

Key features of GitHub MCP Server

  • Search any GitHub repository.
  • Create new GitHub repositories.
  • Retrieve file contents from repositories.
  • Create or update files in repositories.
  • Push multiple files at once.
  • Fork any GitHub repository.
  • Create and manage pull requests.
  • Get pull request details.
  • Add reviews to pull requests.

Use cases of GitHub MCP Server

  • LLM agents searching for open-source projects.
  • Automating repository creation and file updates via AI.
  • Managing pull request workflows with AI assistants.
  • Forking repositories for experimentation or customization.

FAQ from GitHub MCP Server

How does authentication work?

Set the GITHUB_TOKEN environment variable. In SSE mode you can also pass the token in the HTTP Authorization header.

What transport modes are supported?

The server supports stdio (default) and SSE transport modes.

Can I run the server in Docker?

Yes. Build the image with docker build -t github-mcp-server-sse . and run with docker run -p 8080:8080 -e GITHUB_TOKEN=your_token github-mcp-server-sse.

What is the default port for SSE mode?

The default port is 8080. You can change it with the -p flag or the PORT environment variable.

How many tools does the server provide?

The server provides nine tools: search_repositories, create_repository, get_file_contents, create_or_update_file, push_files, fork_repository, create_pull_request, get_pull_request, and create_pull_request_review.

评论

版本控制 分类下的更多 MCP 服务器