github-mcp-server
社区使用中by github
github-mcp-server 是 GitHub 官方发布的 MCP Server,用于将 AI 工具直接连接到 GitHub 平台,支持通过自然语言读取仓库与代码文件、管理 Issue 和 PR、分析代码、监控 GitHub Actions 工作流以及自动化开发流程。它提供远程托管和本地部署两种方式,兼容 VS Code、Claude Desktop、Cursor 等主流
安装配置
将以下配置添加到你的 AI 编程助手中
预览配置(粘贴到 claude_desktop_config.json 或 Cursor 设置中)
{
"mcpServers": {
"github-mcp-server": {}
}
}JSON配置
{}描述
GitHub MCP Server
The GitHub MCP Server connects AI tools directly to GitHub's platform. This gives AI agents, assistants, and chatbots the ability to read repositories and code files, manage issues and PRs, analyze code, and automate workflows. All through natural language interactions.
Use Cases
- Repository Management: Browse and query code, search files, analyze commits, and understand project structure across any repository you have access to.
- Issue & PR Automation: Create, update, and manage issues and pull requests. Let AI help triage bugs, review code changes, and maintain project boards.
- CI/CD & Workflow Intelligence: Monitor GitHub Actions workflow runs, analyze build failures, manage releases, and get insights into your development pipeline.
- Code Analysis: Examine security findings, review Dependabot alerts, understand code patterns, and get comprehensive insights into your codebase.
- Team Collaboration: Access discussions, manage notifications, analyze team activity, and streamline processes for your team.
Built for developers who want to connect their AI tools to GitHub context and capabilities, from simple natural language queries to complex multi-step agent workflows.
Remote GitHub MCP Server
The remote GitHub MCP Server is hosted by GitHub and provides the easiest method for getting up and running. If your MCP host does not support remote MCP servers, don't worry! You can use the local version of the GitHub MCP Server instead.
Prerequisites
- A compatible MCP host with remote server support (VS Code 1.101+, Claude Desktop, Cursor, Windsurf, etc.)
- Any applicable policies enabled
Install in VS Code
For quick installation, use one of the one-click install buttons above. Once you complete that flow, toggle Agent mode (located by the Copilot Chat text input) and the server will start. Make sure you're using VS Code 1.101 or later for remote MCP and OAuth support.
Alternatively, to manually configure VS Code, choose the appropriate JSON block from the examples below and add it to your host configuration:
<table> <tr><th>Using OAuth</th><th>Using a GitHub PAT</th></tr> <tr><th align=left colspan=2>VS Code (version 1.101 or greater)</th></tr> <tr valign=top> <td>{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}
</td>
<td>
{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${input:github_mcp_pat}"
}
}
},
"inputs": [
{
"type": "promptString",
"id": "github_mcp_pat",
"description": "GitHub Personal Access Token",
"password": true
}
]
}
</td>
</tr>
</table>
Install in other MCP hosts
- Copilot CLI - Installation guide for GitHub Copilot CLI
- GitHub Copilot in other IDEs - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
- Claude Applications - Installation guide for Claude Desktop and Claude Code CLI
- Codex - Installation guide for OpenAI Codex
- Cursor - Installation guide for Cursor IDE
- OpenCode - Installation guide for the OpenCode terminal agent
- **[Windsurf](/docs/installation-guides/install-…
统计信息
32k
星标
4.8k
Fork
Go
语言
2026/8/15
更新
MIT
开源协议
标签
链接
相关服务器
atlassian-mcp-server
Atlassian 官方提供的远程 MCP 服务器,作为云托管桥梁,让 Claude、ChatGPT、Cursor、VS Code 等 AI 工具通过 OAuth 2.1 或 API token 安全、实时地访问 Jira、Confluence、Jira Service Management、Bitbucket 和 Compass 等 Atlassian 产品数据。该服务器已正
matlab-mcp-server
matlab-mcp-server 是 MathWorks 官方推出的 MCP 服务器,允许 AI 应用通过 Model Context Protocol 启动、运行和评估 MATLAB 代码,并支持 Claude Code、Visual Studio Code 等主流编码代理。该服务器为工程计算与 AI 工作流的结合提供了官方桥梁,可配合 MATLAB Agentic Too
mcp-server-guide
Figma MCP server 将 Figma 设计文件中的设计信息直接提供给 AI 代理,使其能够基于设计生成代码、提取设计上下文(如变量、组件和布局数据),并支持通过 Code Connect 复用实际组件以提升代码一致性。该指南详细介绍了在 VS Code、Cursor 等 MCP 客户端中的安装与配置步骤,并说明了速率限制和 Beta 功能(如写入画布)的注意事项。
mongodb-mcp-server
mongodb-mcp-server 是一个基于 Model Context Protocol 的服务器,用于连接 MongoDB 数据库和 MongoDB Atlas 集群。它使 AI 助手能够通过 MCP 协议直接与 MongoDB 交互,执行查询、数据操作等任务,支持只读模式以保障数据安全。该工具简化了 AI 应用与 MongoDB 的集成流程,适用于开发者在 VS Co