Skip to content

Commit 2e63e81

Browse files
authored
Update installation guide for GitHub MCP Server (#699)
* Update installation guide for GitHub MCP Server Removed reference to GitHub.com in the installation guide. The GitHub server is available to Coding Agent by default, without installation needed. * Rename section to 'Install in Other MCP Hosts' Updating title for consistency and adding a link to the "other Copilot IDEs" install guide. * Revise installation guide for Cursor MCP setup Updated installation guide for Cursor with steps clarified, remote server installation, and one-click install deeplinks to open Cursor and add the github server to the config file.
1 parent b5e3348 commit 2e63e81

File tree

3 files changed

+36
-51
lines changed

3 files changed

+36
-51
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,11 @@ Optionally, you can add a similar example (i.e. without the mcp key) to a file c
234234

235235
</details>
236236

237-
### Install in Other Host Applications
237+
### Install in Other MCP Hosts
238238

239239
For other MCP host applications, please refer to our installation guides:
240240

241+
- **[GitHub Copilot in other IDEs](/docs/installation-guides/install-other-copilot-ides.md)** - Installation for JetBrains, Visual Studio, Eclipse, and Xcode with GitHub Copilot
241242
- **[Claude Code & Claude Desktop](docs/installation-guides/install-claude.md)** - Installation guide for Claude Code and Claude Desktop
242243
- **[Cursor](docs/installation-guides/install-cursor.md)** - Installation guide for Cursor IDE
243244
- **[Windsurf](docs/installation-guides/install-windsurf.md)** - Installation guide for Windsurf IDE

docs/installation-guides/install-cursor.md

Lines changed: 33 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,18 @@
77

88
## Remote Server Setup (Recommended)
99

10-
The remote GitHub MCP server is hosted by GitHub at `https://api.githubcopilot.com/mcp/` and supports Streamable HTTP protocol. Cursor currently supports remote servers with PAT authentication.
10+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=github&config=eyJ1cmwiOiJodHRwczovL2FwaS5naXRodWJjb3BpbG90LmNvbS9tY3AvIiwiaGVhZGVycyI6eyJBdXRob3JpemF0aW9uIjoiQmVhcmVyIFlPVVJfR0lUSFVCX1BBVCJ9LCJ0eXBlIjoiaHR0cCJ9)
11+
12+
Uses GitHub's hosted server at https://api.githubcopilot.com/mcp/. Requires Cursor v0.48.0+ for Streamable HTTP support. While Cursor supports OAuth for some MCP servers, the GitHub server currently requires a Personal Access Token.
13+
14+
### Install steps
15+
1. Click the install button above and follow the flow, or go directly to your global MCP configuration file at `~/.cursor/mcp.json` and enter the code block below
16+
2. In Tools & Integrations > MCP tools, click the pencil icon next to "github"
17+
3. Replace `YOUR_GITHUB_PAT` with your actual [GitHub Personal Access Token](https://github.com/settings/tokens)
18+
4. Save the file
19+
5. Restart Cursor
1120

1221
### Streamable HTTP Configuration
13-
As of Cursor v0.48.0, Cursor supports Streamable HTTP servers directly:
1422

1523
```json
1624
{
@@ -25,12 +33,20 @@ As of Cursor v0.48.0, Cursor supports Streamable HTTP servers directly:
2533
}
2634
```
2735

28-
**Note**: You may need to update to the latest version, if the current version doesn't support direct Streamable HTTP
29-
3036
## Local Server Setup
3137

32-
### Docker Installation (Required)
33-
> **Important**: The npm package `@modelcontextprotocol/server-github` is no longer supported as of April 2025. Use the official Docker image `ghcr.io/github/github-mcp-server` instead.
38+
[![Install MCP Server](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/install-mcp?name=github&config=eyJjb21tYW5kIjoiZG9ja2VyIiwiYXJncyI6WyJydW4iLCItaSIsIi0tcm0iLCItZSIsIkdJVEhVQl9QRVJTT05BTF9BQ0NFU1NfVE9LRU4iLCJnaGNyLmlvL2dpdGh1Yi9naXRodWItbWNwLXNlcnZlciJdLCJlbnYiOnsiR0lUSFVCX1BFUlNPTkFMX0FDQ0VTU19UT0tFTiI6IllPVVJfR0lUSFVCX1BHVCJ9fQ==)
39+
40+
The local GitHub MCP server runs via Docker and requires Docker Desktop to be installed and running.
41+
42+
### Install steps
43+
1. Click the install button above and follow the flow, or go directly to your global MCP configuration file at `~/.cursor/mcp.json` and enter the code block below
44+
2. In Tools & Integrations > MCP tools, click the pencil icon next to "github"
45+
3. Replace `YOUR_GITHUB_PAT` with your actual [GitHub Personal Access Token](https://github.com/settings/tokens)
46+
4. Save the file
47+
5. Restart Cursor
48+
49+
### Docker Configuration
3450

3551
```json
3652
{
@@ -53,50 +69,18 @@ As of Cursor v0.48.0, Cursor supports Streamable HTTP servers directly:
5369
}
5470
```
5571

56-
## Installation Steps
57-
58-
### Via Cursor Settings UI
59-
1. Open Cursor
60-
2. Navigate to **Settings****Tools & Integrations****MCP**
61-
3. Click **"+ Add new global MCP server"**
62-
4. This opens `~/.cursor/mcp.json` in the editor
63-
5. Add your chosen configuration from above
64-
6. Save the file
65-
7. Restart Cursor
66-
67-
### Manual Configuration
68-
1. Create or edit the configuration file:
69-
- **Global (all projects)**: `~/.cursor/mcp.json`
70-
- **Project-specific**: `.cursor/mcp.json` in project root
71-
2. Add your chosen configuration
72-
3. Save the file
73-
4. Restart Cursor completely
74-
75-
### Token Security
76-
- Create PATs with minimum required scopes:
77-
- `repo` - For repository operations
78-
- `read:packages` - For Docker image pull (local setup)
79-
- Additional scopes based on tools you need
80-
- Use separate PATs for different projects
81-
- Regularly rotate tokens
82-
- Never commit configuration files to version control
83-
84-
## Configuration Details
85-
86-
- **File paths**:
87-
- Global: `~/.cursor/mcp.json`
88-
- Project: `.cursor/mcp.json`
89-
- **Scope**: Both global and project-specific configurations supported
90-
- **Format**: Must be valid JSON (use a linter to verify)
91-
92-
## Verification
93-
94-
After installation:
72+
> **Important**: The npm package `@modelcontextprotocol/server-github` is no longer supported as of April 2025. Use the official Docker image `ghcr.io/github/github-mcp-server` instead.
73+
74+
## Configuration Files
75+
76+
- **Global (all projects)**: `~/.cursor/mcp.json`
77+
- **Project-specific**: `.cursor/mcp.json` in project root
78+
79+
## Verify Installation
9580
1. Restart Cursor completely
96-
2. Open Settings → Tools & Integrations → MCP
97-
3. Look for green dot next to your server name
98-
4. In chat/composer, check "Available Tools"
99-
5. Test with: "List my GitHub repositories"
81+
2. Check for green dot in Settings → Tools & Integrations → MCP Tools
82+
3. In chat/composer, check "Available Tools"
83+
4. Test with: "List my GitHub repositories"
10084

10185
## Troubleshooting
10286

docs/installation-guides/install-other-copilot-ides.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Install GitHub MCP Server in Copilot IDEs & GitHub.com
1+
# Install GitHub MCP Server in Copilot IDEs
22

33
Quick setup guide for the GitHub MCP server in GitHub Copilot across different IDEs. For VS Code instructions, refer to the [VS Code install guide in the README](/README.md#installation-in-vs-code)
44

0 commit comments

Comments
 (0)