# GitHub MCP server

> Automates GitHub workflows including Actions monitoring, PR management, and intelligent code search with high token efficiency.

- Repository: https://github.com/crypto-ninja/mcp-server-for-Github
- Page: https://hostedmcp.org/servers/crypto-ninja/mcp-server-for-github
- Transport: stdio
- Stars: 5
- Latest version: 2.5.7

## Install

### Claude Code

```sh
claude mcp add mcp-server-for-github -- uvx github-mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-server-for-github": {
      "command": "uvx",
      "args": [
        "github-mcp-server"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-server-for-github": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "github-mcp-server"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server-for-github","type":"stdio","command":"uvx","args":["github-mcp-server"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-server-for-github": {
      "command": "uvx",
      "args": [
        "github-mcp-server"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server-for-github -- uvx github-mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-server-for-github]
command = "uvx"
args = ["github-mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-server-for-github uvx -- github-mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-server-for-github": {
      "command": "uvx",
      "args": [
        "github-mcp-server"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `GITHUB_APP_ID` | no | no |  |
| `GITHUB_APP_INSTALLATION_ID` | no | no |  |
| `GITHUB_APP_PRIVATE_KEY_PATH` | no | no |  |
| `GITHUB_MCP_DEBUG_AUTH` | no | no |  |
| `GITHUB_TOKEN` | no | no |  |
| `MCP_WORKSPACE_ROOT` | no | no |  |

## Tools (6)

- `listAvailableTools`
- `searchTools`
- `getToolInfo`
- `github_grep`
- `github_read_file_chunk`
- `github_str_replace`

## FAQ

### How much can I save on tokens using this server?

The server features a code-first architecture that provides up to 98% token reduction, making workflows significantly more cost-effective.

### Does it support GitHub App authentication?

Yes, it supports GitHub App authentication which provides 3x higher rate limits (15,000 requests per hour) compared to Personal Access Tokens.
