You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Claude MCP install guide after testing (#706)
* Revise Claude installation guide
- Verified Claude Code installation steps
- Identified and documented issues with Claude Desktop setup
- Updated installation documentation based on testing
* Revise instructions for opening Claude Code
Updated recommendations for opening Claude Code.
* Update docs/installation-guides/install-claude.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update docs/installation-guides/install-claude.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update installation guide for Claude setup
Added installation option for using Claude Code using a release binary.
* Change section title for Go Binary installation
Updated section title for clarity regarding installation without Docker.
* Close double quote in bash command
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: LuluBeatson <lulubeatson@github.com>
Co-authored-by: Matt Holloway <mattdholloway@github.com>
Co-authored-by: Tommaso Moro <37270480+tommaso-moro@users.noreply.github.com>
# Install GitHub MCP Server in Claude Applications
2
2
3
-
This guide covers installation of the GitHub MCP server for Claude Code CLI, Claude Desktop, and Claude Web applications.
4
-
5
-
## Claude Web (claude.ai)
6
-
7
-
Claude Web supports remote MCP servers through the Integrations built-in feature.
3
+
## Claude Code CLI
8
4
9
5
### Prerequisites
6
+
- Claude Code CLI installed
7
+
-[GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
8
+
- For local setup: [Docker](https://www.docker.com/) installed and running
9
+
- Open Claude Code inside the directory for your project (recommended for best experience and clear scope of configuration)
10
10
11
-
1. Claude Pro, Team, or Enterprise account (Integrations not available on free plan)
12
-
2.[GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
13
-
14
-
### Installation
15
-
16
-
**Note**: As of July 2025, the remote GitHub MCP Server has known compatibility issues with Claude Web. While Claude Web supports remote MCP servers from other providers (like Atlassian, Zapier, Notion), the GitHub MCP Server integration may not work reliably.
17
-
18
-
For other remote MCP servers that do work with Claude Web:
19
-
20
-
1. Go to [claude.ai](https://claude.ai) and log in
21
-
2. Click your profile icon → **Settings**
22
-
3. Navigate to **Integrations** section
23
-
4. Click **+ Add integration** or **Add More**
24
-
5. Enter the remote server URL
25
-
6. Follow the OAuth authentication flow when prompted
11
+
<details>
12
+
<summary><b>Storing Your PAT Securely</b></summary>
13
+
<br>
26
14
27
-
**Alternative**: Use Claude Desktop or Claude Code CLI for reliable GitHub MCP Server integration.
15
+
For security, avoid hardcoding your token. One common approach:
28
16
29
-
---
30
-
31
-
## Claude Code CLI
32
-
33
-
Claude Code CLI provides command-line access to Claude with MCP server integration.
34
-
35
-
### Prerequisites
17
+
1. Store your token in `.env` file
18
+
```
19
+
GITHUB_PAT=your_token_here
20
+
```
36
21
37
-
1. Claude Code CLI installed
38
-
2.[GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
39
-
3.[Docker](https://www.docker.com/) installed and running
22
+
2. Add to .gitignore
23
+
```bash
24
+
echo -e ".env\n.mcp.json">> .gitignore
25
+
```
40
26
41
-
### Installation
27
+
</details>
42
28
43
-
Run the following command to add the GitHub MCP server using Docker:
29
+
### Remote Server Setup (Streamable HTTP)
44
30
31
+
1. Run the following command in the Claude Code CLI
45
32
```bash
46
-
claude mcp add github -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN ghcr.io/github/github-mcp-server
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=YOUR_GITHUB_PAT -- docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKENghcr.io/github/github-mcp-server
57
49
```
58
50
59
-
**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.
3. Run `claude mcp list` to see if the GitHub server is configured
66
68
67
69
### Verification
68
-
69
-
Run the following command to verify the installation:
70
70
```bash
71
71
claude mcp list
72
+
claude mcp get github
72
73
```
73
74
74
75
---
75
76
76
77
## Claude Desktop
77
78
78
-
Claude Desktop provides a graphical interface for interacting with the GitHub MCP Server.
79
+
> ⚠️ **Note**: Some users have reported compatibility issues with Claude Desktop and Docker-based MCP servers. We're investigating. If you experience issues, try using another MCP host, while we look into it!
79
80
80
81
### Prerequisites
82
+
- Claude Desktop installed (latest version)
83
+
-[GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
84
+
-[Docker](https://www.docker.com/) installed and running
81
85
82
-
1. Claude Desktop installed
83
-
2.[GitHub Personal Access Token](https://github.com/settings/personal-access-tokens/new)
84
-
3.[Docker](https://www.docker.com/) installed and running
86
+
> **Note**: Claude Desktop supports MCP servers that are both local (stdio) and remote ("connectors"). Remote servers can generally be added via Settings → Connectors → "Add custom connector". However, the GitHub remote MCP server requires OAuth authentication through a registered GitHub App (or OAuth App), which is not currently supported. Use the local Docker setup instead.
**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.
93
+
### Local Server Setup (Docker)
118
94
119
-
### Using Environment Variables
120
-
121
-
Claude Desktop supports environment variable references. You can use:
95
+
Add this codeblock to your `claude_desktop_config.json`:
122
96
123
97
```json
124
98
{
@@ -134,71 +108,60 @@ Claude Desktop supports environment variable references. You can use:
134
108
"ghcr.io/github/github-mcp-server"
135
109
],
136
110
"env": {
137
-
"GITHUB_PERSONAL_ACCESS_TOKEN": "$GITHUB_PAT"
111
+
"GITHUB_PERSONAL_ACCESS_TOKEN": "YOUR_GITHUB_PAT"
138
112
}
139
113
}
140
114
}
141
115
}
142
116
```
143
117
144
-
Then set the environment variable in your system before starting Claude Desktop.
145
-
146
-
### Installation Steps
147
-
118
+
### Manual Setup Steps
148
119
1. Open Claude Desktop
149
-
2. Go to Settings (from the Claude menu) → Developer → Edit Config
150
-
3.Add your chosen configuration
151
-
4.Save the file
152
-
5. Restart Claude Desktop
153
-
154
-
### Verification
155
-
156
-
After restarting, you should see:
157
-
- An MCP icon in the Claude Desktop interface
158
-
- The GitHub server listed as "running" in Developer settings
120
+
2. Go to Settings → Developer → Edit Config
121
+
3.Paste the code block above in your configuration file
122
+
4.If you're navigating to the configuration file outside of the app:
- If pull fails: `docker logout ghcr.io` then retry
146
+
147
+
**Server Not Starting / Tools Not Showing:**
148
+
- Run `claude mcp list` to view currently configured MCP servers
149
+
- Validate JSON syntax
150
+
- If using an environment variable to store your PAT, make sure you're properly sourcing your PAT using the environment variable
151
+
- Restart Claude Code and check `/mcp` command
152
+
- Delete the GitHub server by running `claude mcp remove github` and repeating the setup process with a different method
153
+
- Make sure you're running Claude Code within the project you're currently working on to ensure the MCP configuration is properly scoped to your project
154
+
- Check logs:
155
+
- Claude Code: Use `/mcp` command
156
+
- Claude Desktop: `ls ~/Library/Logs/Claude/` and `cat ~/Library/Logs/Claude/mcp-server-*.log` (macOS) or `%APPDATA%\Claude\logs\` (Windows)
0 commit comments