MCP.so
登录
服务器

Github Mcp Server

@github

GitHub's official MCP Server

概览

What is Github Mcp Server?

The GitHub MCP Server connects AI tools directly to GitHub's platform, enabling AI agents, assistants, and chatbots to read repositories and code files, manage issues and PRs, analyze code, and automate workflows through natural language interactions. It is built for developers who want to connect their AI tools to GitHub context and capabilities.

How to use Github Mcp Server?

The server is available in two versions: a remote server hosted by GitHub, and a local server running in Docker. For the remote server, a compatible MCP host (VS Code 1.101+, Claude Desktop, Cursor, Windsurf, etc.) is required. For the local server, Docker must be installed and running. Authentication uses GitHub OAuth (browser flow or device code) or a GitHub Personal Access Token (PAT). One-click install buttons are provided for VS Code, VS Code Insiders, and Visual Studio. Manual configuration via JSON is also supported.

Key features of Github Mcp Server

  • Browse and query code across any accessible repository
  • Create, update, and manage issues and pull requests
  • Monitor GitHub Actions workflow runs and analyze builds
  • Examine security findings and Dependabot alerts
  • Access discussions, manage notifications, and analyze team activity
  • Supports both remote (hosted) and local (Docker) deployment

Use cases of Github Mcp Server

  • Repository Management: Navigate code structure, search files, and analyze commits
  • Issue & PR Automation: Triage bugs, review code changes, and maintain project boards
  • CI/CD & Workflow Intelligence: Get insights into build failures and release management
  • Code Analysis: Understand code patterns and receive codebase insights
  • Team Collaboration: Streamline processes and manage team activity

FAQ from Github Mcp Server

What is the difference between the remote and local GitHub MCP Server?

The remote server is hosted by GitHub and requires no local setup other than a compatible MCP host. The local server runs in a Docker container on your machine and can be used with hosts that do not support remote MCP servers or for GitHub Enterprise Server.

How do I authenticate with the GitHub MCP Server?

You can authenticate using GitHub OAuth (a browser-based flow; the token is kept in memory only) or by providing a GitHub Personal Access Token via the GITHUB_PERSONAL_ACCESS_TOKEN environment variable. The PAT takes precedence over OAuth if both are set.

What are the prerequisites for running the server?

For the remote server: a compatible MCP host (e.g., VS Code 1.101+, Claude Desktop, Cursor, Windsurf) and applicable policies enabled. For the local server: Docker installed and running.

Does the server support GitHub Enterprise?

The remote server supports GitHub Enterprise Cloud with data residency (ghe.com) using a specific API URL and PAT or OAuth. GitHub Enterprise Server does not support remote server hosting and must use the local server instead.

Which MCP hosts are supported?

The README lists installation guides for Copilot CLI, GitHub Copilot in other IDEs (JetBrains, Visual Studio, Eclipse, Xcode), Claude Desktop and Claude Code CLI, OpenAI Codex, Cursor, OpenCode, Windsurf, Zed, and Rovo Dev CLI. Support varies by host; refer to the host's documentation.

标签

来自「版本控制」的更多内容