The GitHub MCP server is available to all GitHub users regardless of plan type. However, specific tools within the MCP server inherit the same access requirements as their corresponding GitHub features. If a feature requires a paid GitHub or Copilot license, the equivalent MCP tool will require the same subscription. For example, tools that interact with Copilot Cloud Agent require a paid Copilot license.
For the latest information and updates, see the GitHub MCP server repository.
О GitHub сервере MCP
MCP-сервер GitHub — это сервер Model Context Protocol (MCP), предоставляемый и поддерживаемый GitHub. MCP позволяет интегрировать возможности искусственного интеллекта с другими инструментами и службами, расширяя возможности разработки, предоставляя контекстную помощь ИИ.
Для полного введения в GitHub сервер MCP и обзора MCP см. О протоколе контекста модели (MCP).
Prerequisites
- A GitHub account.
- Visual Studio Code.
- Если вы являетесь членом организации или предприятия с планом Copilot Business или Copilot Enterprise, политика MCP в Copilot должна быть включена, чтобы использовать MCP с Copilot.
Setting up the GitHub MCP server in Visual Studio Code
The GitHub MCP server in Visual Studio Code can be configured remotely or locally. The remote GitHub MCP server is hosted by GitHub and is the recommended option for most users. The local GitHub MCP server is hosted on your machine and is recommended for users who want to customize their setup or have specific security requirements.
The steps below describe remote configuration through the MCP Registry view in Visual Studio Code's extensions panel. This view is backed by the GitHub MCP Registry. See GitHub MCP Registry.
For information on manually configuring the remote or local GitHub MCP server, see the GitHub MCP server documentation.
- In Visual Studio Code, open the extensions panel by clicking the extensions icon in the sidebar or pressing Ctrl+Shift+X (Windows/Linux) / Command+Shift+X (Mac).
- In the extensions search bar, type
@mcp githubto search the MCP server gallery. - Select the GitHub MCP server from the search results. On the details page, click Install.
- When prompted, confirm that you trust the server to start it.
- To verify that the GitHub MCP server is configured correctly, open the command palette by pressing Ctrl+Shift+P (Windows/Linux) / Command+Shift+P (Mac).
- Type and select MCP: List Servers. You should see the GitHub MCP server listed as a configured server.
О GitHub сервере MCP
MCP-сервер GitHub — это сервер Model Context Protocol (MCP), предоставляемый и поддерживаемый GitHub. MCP позволяет интегрировать возможности искусственного интеллекта с другими инструментами и службами, расширяя возможности разработки, предоставляя контекстную помощь ИИ.
Для полного введения в GitHub сервер MCP и обзора MCP см. О протоколе контекста модели (MCP).
Prerequisites
- Access to Copilot. См . раздел AUTOTITLE.
- Visual Studio version 17.14 or later. For more information on installing Visual Studio, see the Visual Studio downloads page.
- Sign in to GitHub from Visual Studio.
- Если вы являетесь членом организации или предприятия с планом Copilot Business или Copilot Enterprise, политика MCP в Copilot должна быть включена, чтобы использовать MCP с Copilot.
Setting up the GitHub MCP server in Visual Studio
The instructions below guide you through setting up the GitHub MCP server in Visual Studio. Other MCP-compatible editors may have similar steps, but the exact process may vary.
The remote GitHub MCP server uses one-click OAuth authentication by default, but you can also manually configure it to use a personal access token (PAT) for authentication. If you use OAuth, the MCP server can only access the scopes you approve during sign-in. In organization-owned contexts, access may also be limited by admin policies that control which scopes and apps are permitted. If you use a PAT, the MCP server will have access to the scopes granted by the PAT, which is also subject to any PAT restrictions configured by the organization.
Примечание.
If you are an Enterprise Managed User, then PAT is disabled by default, unless enabled by an enterprise administrator. If PAT is disabled, you won't be able to use PAT authentication. If you have OAuth access policy restrictions, you will need the OAuth App for each client (MCP host application) to be enabled (except Visual Studio Code and Visual Studio).
For information on setting up the GitHub MCP server locally, see the GitHub MCP server documentation.
Remote MCP server configuration with OAuth
You do not need to create a PAT or install any additional software to use the remote GitHub MCP server with OAuth. You can set it up directly in Visual Studio.
-
In the Visual Studio menu bar, click View, then click GitHub Copilot Chat.
-
At the bottom of the chat panel, select Agent from the mode dropdown.
-
In the Copilot Chat window, click the tools icon, then click the plus icon in the tool picker window.
-
In the "Configure MCP server" pop-up window, fill out the fields.
- For "Server ID", type
github. - For "Type", select "HTTP/SSE" from the dropdown.
- For "URL", type
https://api.githubcopilot.com/mcp/.
- For "Server ID", type
-
Click Save. The configuration in the
mcp.jsonfile should look like this:JSON { "servers": { "github": { "url": "https://api.githubcopilot.com/mcp/" } } }{ "servers": { "github": { "url": "https://api.githubcopilot.com/mcp/" } } } -
In the
mcp.jsonfile, click Auth from the CodeLens above the server to authenticate to the server. A pop-up will come up allowing you to authenticate with your GitHub account.
Remote MCP server configuration with PAT
To configure the remote GitHub MCP server with a PAT, ensure you have created a PAT with the necessary scopes for the access you want to grant to the MCP server. For more information, see Управление личными маркерами доступа.
-
In the Visual Studio menu bar, click View, then click GitHub Copilot Chat.
-
At the bottom of the chat panel, select Agent from the mode dropdown.
-
In the Copilot Chat window, click the tools icon, then click the plus icon in the tool picker window.
-
In the "Configure MCP server" pop-up window, fill out the fields.
- For "Server ID", type
github. - For "Type", select "HTTP/SSE" from the dropdown.
- For "URL", type
https://api.githubcopilot.com/mcp/. - Add a new header under "Headers", called "Authorization" and set to the value
Bearer YOUR_GITHUB_PAT, replacing "YOUR_GITHUB_PAT" with your PAT.
- For "Server ID", type
-
Click Save. The configuration in the
mcp.jsonfile should look like this:JSON { "servers": { "github": { "url": "https://api.githubcopilot.com/mcp/", "requestInit": { "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } } }{ "servers": { "github": { "url": "https://api.githubcopilot.com/mcp/", "requestInit": { "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } } }
For more information on configuring MCP servers in Visual Studio, see Use MCP servers in Visual Studio (Preview) in the Visual Studio documentation.
О GitHub сервере MCP
MCP-сервер GitHub — это сервер Model Context Protocol (MCP), предоставляемый и поддерживаемый GitHub. MCP позволяет интегрировать возможности искусственного интеллекта с другими инструментами и службами, расширяя возможности разработки, предоставляя контекстную помощь ИИ.
Для полного введения в GitHub сервер MCP и обзора MCP см. О протоколе контекста модели (MCP).
Prerequisites
-
Access to Copilot. См . раздел AUTOTITLE.
-
A compatible JetBrains IDE. GitHub Copilot is compatible with the following IDEs:
-
IntelliJ IDEA (Ultimate, Community, Education)
-
Android Studio
-
CLion
-
Код со мной Гость
-
DataGrip
-
DataSpell
-
GoLand
-
Клиент JetBrains
-
MPS
-
PhpStorm
-
PyCharm (Профессиональный, Общественный, Образовательный)
-
Rider
-
RubyMine
-
RustRover
-
WebStorm
Чтобы скачать средство поиска удостоверений IDEs JetBrains, см. раздел "Поиск удостоверений".
-
-
Последняя версия GitHub Copilot расширения. Смотрите GitHub Copilot плагин на рынке JetBrains. Инструкции по установке см. в разделе Installing the GitHub Copilot extension in your environment.
-
Войдите GitHub в свой IDE JetBrains. Инструкции по проверке подлинности см. в разделе Installing the GitHub Copilot extension in your environment.
-
Если вы являетесь членом организации или предприятия с планом Copilot Business или Copilot Enterprise, политика MCP в Copilot должна быть включена, чтобы использовать MCP с Copilot.
Setting up the GitHub MCP server in JetBrains IDEs
The instructions below guide you through setting up the GitHub MCP server in JetBrains IDEs. Other MCP-compatible editors may have similar steps, but the exact process may vary.
The remote GitHub MCP server uses one-click OAuth authentication by default, but you can also manually configure it to use a personal access token (PAT) for authentication. If you use OAuth, the MCP server can only access the scopes you approve during sign-in. In organization-owned contexts, access may also be limited by admin policies that control which scopes and apps are permitted. If you use a PAT, the MCP server will have access to the scopes granted by the PAT, which is also subject to any PAT restrictions configured by the organization.
Примечание.
If you are an Enterprise Managed User, then PAT is disabled by default, unless enabled by an enterprise administrator. If PAT is disabled, you won't be able to use PAT authentication. If you have OAuth access policy restrictions, you will need the OAuth App for each client (MCP host application) to be enabled (except Visual Studio Code and Visual Studio).
For information on setting up the GitHub MCP server locally, see the GitHub MCP server documentation.
Remote MCP server configuration with OAuth
You do not need to create a PAT or install any additional software to use the remote GitHub MCP server with OAuth. You can set it up directly in JetBrains IDEs.
-
В правом нижнем углу щелкните .
-
В меню выберите "Открыть чат", убедитесь, что вы находитесь в режиме агента, а затем щелкните значок инструментов ("Настроить сервер MCP") в нижней части окна чата.
-
Нажмите кнопку "Добавить инструменты MCP".
-
In the
mcp.jsonfile, add the following configuration:JSON { "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" } } }{ "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" } } } -
In the "GitHub Copilot" popup that says the "MCP server definition wants to authenticate to GitHub, click Allow.
-
If you have not yet authorized the GitHub Copilot plugin, in the browser popup, click Continue next to your personal account.
Remote MCP server configuration with PAT
To configure the remote GitHub MCP server with a PAT, ensure you have created a PAT with the necessary scopes for the access you want to grant to the MCP server. For more information, see Управление личными маркерами доступа.
- В правом нижнем углу щелкните .
- В меню выберите "Открыть чат", убедитесь, что вы находитесь в режиме агента, а затем щелкните значок инструментов ("Настроить сервер MCP") в нижней части окна чата.
- Нажмите кнопку "Добавить инструменты MCP".
- In the
mcp.jsonfile, add the following configuration, replacingYOUR_GITHUB_PATwith the PAT you created:
{
"servers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
{
"servers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
О GitHub сервере MCP
MCP-сервер GitHub — это сервер Model Context Protocol (MCP), предоставляемый и поддерживаемый GitHub. MCP позволяет интегрировать возможности искусственного интеллекта с другими инструментами и службами, расширяя возможности разработки, предоставляя контекстную помощь ИИ.
Для полного введения в GitHub сервер MCP и обзора MCP см. О протоколе контекста модели (MCP).
Prerequisites
- Access to Copilot. См . раздел AUTOTITLE.
- GitHub Copilot for Xcode extension. See Installing the GitHub Copilot extension in your environment.
- Если вы являетесь членом организации или предприятия с планом Copilot Business или Copilot Enterprise, политика MCP в Copilot должна быть включена, чтобы использовать MCP с Copilot.
Setting up the GitHub MCP server in Xcode
The instructions below guide you through setting up the GitHub MCP server in Xcode. Other MCP-compatible editors may have similar steps, but the exact process may vary.
The remote GitHub MCP server uses one-click OAuth authentication by default, but you can also manually configure it to use a personal access token (PAT) for authentication. If you use OAuth, the MCP server can only access the scopes you approve during sign-in. In organization-owned contexts, access may also be limited by admin policies that control which scopes and apps are permitted. If you use a PAT, the MCP server will have access to the scopes granted by the PAT, which is also subject to any PAT restrictions configured by the organization.
Примечание.
If you are an Enterprise Managed User, then PAT is disabled by default, unless enabled by an enterprise administrator. If PAT is disabled, you won't be able to use PAT authentication. If you have OAuth access policy restrictions, you will need the OAuth App for each client (MCP host application) to be enabled (except Visual Studio Code and Visual Studio).
For information on setting up the GitHub MCP server locally, see the GitHub MCP server documentation.
Remote MCP server configuration with OAuth
You do not need to create a PAT or install any additional software to use the remote GitHub MCP server with OAuth. You can set it up directly in Xcode.
-
Откройте GitHub Copilot для расширения Xcode и перейдите к разделу "Параметры".
- Кроме того, в активной рабочей области Xcode можно найти параметры, щелкнув редактор в строке меню, выбрав GitHub Copilot, а затем нажмите кнопку "Открыть GitHub Copilot для параметров Xcode.
-
Перейдите на вкладку MCP и нажмите кнопку "Изменить конфигурацию".
-
Add the following configuration:
JSON { "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" } } }{ "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" } } } -
In the "GitHub Copilot" popup that says the "MCP Server Definition wants to authenticate to GitHub", click Continue.
-
If you have not yet authorized the GitHub Copilot plugin, in the browser popup, click Continue next to your personal account.
Remote MCP server configuration with PAT
To configure the remote GitHub MCP server with a PAT, ensure you have created a PAT with the necessary scopes for the access you want to grant to the MCP server. For more information, see Управление личными маркерами доступа.
- Откройте GitHub Copilot для расширения Xcode и перейдите к разделу "Параметры".
- Кроме того, в активной рабочей области Xcode можно найти параметры, щелкнув редактор в строке меню, выбрав GitHub Copilot, а затем нажмите кнопку "Открыть GitHub Copilot для параметров Xcode.
- Перейдите на вкладку MCP и нажмите кнопку "Изменить конфигурацию".
- Add the following configuration, replacing
YOUR_GITHUB_PATwith the PAT you created:
{
"servers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
{
"servers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
О GitHub сервере MCP
MCP-сервер GitHub — это сервер Model Context Protocol (MCP), предоставляемый и поддерживаемый GitHub. MCP позволяет интегрировать возможности искусственного интеллекта с другими инструментами и службами, расширяя возможности разработки, предоставляя контекстную помощь ИИ.
Для полного введения в GitHub сервер MCP и обзора MCP см. О протоколе контекста модели (MCP).
Prerequisites
- Доступ к Copilot. См . раздел AUTOTITLE.
- Совместимая версия Eclipse. Чтобы использовать расширение GitHub Copilot, необходимо иметь Eclipse версии 2024-09 или более поздней. См. страницу скачивания Eclipse.
- Если вы являетесь членом организации или предприятия с планом Copilot Business или Copilot Enterprise, политика MCP в Copilot должна быть включена, чтобы использовать MCP с Copilot.
- Latest version of the GitHub Copilot extension. Download this from the Eclipse Marketplace. For more information, see Installing the GitHub Copilot extension in your environment.
- Sign in to GitHub from Eclipse.
Setting up the GitHub MCP server in Eclipse
The instructions below guide you through setting up the GitHub MCP server in Eclipse. Other MCP-compatible editors may have similar steps, but the exact process may vary.
The remote GitHub MCP server uses one-click OAuth authentication by default, but you can also manually configure it to use a personal access token (PAT) for authentication. If you use OAuth, the MCP server can only access the scopes you approve during sign-in. In organization-owned contexts, access may also be limited by admin policies that control which scopes and apps are permitted. If you use a PAT, the MCP server will have access to the scopes granted by the PAT, which is also subject to any PAT restrictions configured by the organization.
Примечание.
If you are an Enterprise Managed User, then PAT is disabled by default, unless enabled by an enterprise administrator. If PAT is disabled, you won't be able to use PAT authentication. If you have OAuth access policy restrictions, you will need the OAuth App for each client (MCP host application) to be enabled (except Visual Studio Code and Visual Studio).
For information on setting up the GitHub MCP server locally, see the GitHub MCP server repository.
Remote MCP server configuration with OAuth
You do not need to create a PAT or install any additional software to use the remote GitHub MCP server with OAuth. You can set it up directly in Eclipse.
-
Щелкните значок Copilot () в строке состояния в нижней части Eclipse.
-
В меню выберите "Открыть чат " и в окне чата щелкните "Настройка инструментов..." икона.
- Кроме того, можно выбрать параметры редактирования, а затем в левой области разверните узел GitHub Copilot и щелкните MCP.
-
Add the following configuration under "Server Configurations":
JSON { "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" } } }{ "servers": { "github": { "type": "http", "url": "https://api.githubcopilot.com/mcp/" } } } -
Click Apply.
-
In the "GitHub Copilot" popup that says the "MCP Server Definition wants to authenticate to GitHub", click OK.
-
If you have not yet authorized the GitHub Copilot plugin, in the browser popup, click Continue next to your personal account.
Remote MCP server configuration with PAT
To configure the remote GitHub MCP server with a PAT, ensure you have created a PAT with the necessary scopes for the access you want to grant to the MCP server. For more information, see Управление личными маркерами доступа.
- Щелкните значок Copilot () в строке состояния в нижней части Eclipse.
- В меню выберите "Открыть чат " и в окне чата щелкните "Настройка инструментов..." икона.
- Кроме того, можно выбрать параметры редактирования, а затем в левой области разверните узел GitHub Copilot и щелкните MCP.
- Add the following configuration under "Server Configurations", replacing
YOUR_GITHUB_PATwith the PAT you created:
{
"servers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
{
"servers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
Enterprise configuration
If you are using GitHub Enterprise Server or GitHub Enterprise Cloud with data residency, additional configuration is required. For more information, see Configuring the GitHub MCP Server for GitHub Enterprise.
Next steps
- To learn how to use the GitHub MCP server in Visual Studio Code, see Using the GitHub MCP Server in your IDE.
- For information on configuring individual toolsets with read-only or read/write access, see Configuring toolsets for the GitHub MCP Server.