# Github

> Github is an open-source MCP server for developer tools. MCP server giving AI assistants read access to GitHub PRs, issues, repos and code search. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/davidweb3-ctrl/mcp-github-server
- **MCP Registry name:** io.github.davidweb3-ctrl/github
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-21

## About

This server lets an AI assistant query GitHub on your behalf through the Model Context Protocol. Once connected, a client can pull up pull requests and issues, look at repository statistics and metadata, and run code searches across GitHub using its query syntax.

It runs locally as a stdio process installed from npm, and authenticates with a personal access token supplied through the GITHUB_TOKEN environment variable. Listing tools accept filters such as state, branch, labels and assignee, and the PR viewer can optionally include the diff.

It suits developers and teams who already work with an AI client and want it to review open work, check issue details or find code examples without leaving the conversation. Its tool set is read-oriented and covers six operations.

## Features

- **Pull request browsing:** Lists pull requests with filters for state, head and base branch, sorting and pagination, and shows individual PR details.
- **Issue inspection:** Lists issues by label, assignee or creator and retrieves a single issue with optional comments.
- **Repository overview:** Returns statistics and metadata for a given repository.
- **Cross-repo code search:** Searches code across GitHub using GitHub's code search syntax, with sorting and paging.
- **Optional diff output:** Can include the diff content when viewing a pull request.

## Good for

- Asking an AI client to summarise open pull requests in a repository
- Pulling up a specific issue and its comments during triage
- Checking repository stats while comparing projects
- Searching GitHub for how a function or API is used across codebases

## Install

### Claude Code (Terminal)

```sh
claude mcp add github --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y @davidweb3-ctrl/mcp-github-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@davidweb3-ctrl/mcp-github-server"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@davidweb3-ctrl/mcp-github-server"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "github": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@davidweb3-ctrl/mcp-github-server"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@davidweb3-ctrl/mcp-github-server"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@davidweb3-ctrl/mcp-github-server"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
```

## Tools

- `github_pr_list`: List pull requests for a repository.
- `github_pr_view`: View details of a specific pull request.
- `github_issue_list`: List issues for a repository.
- `github_issue_view`: View details of a specific issue.
- `github_repo_info`: Get repository information and statistics.
- `github_search_code`: Search code across GitHub.

## FAQ

### What do I need to run Github?

You need a GitHub personal access token set as the GITHUB_TOKEN environment variable, and the server is installed from npm.

### How is Github connected to an AI client?

You add it to the client's MCP settings as a command that runs the npm package via npx, passing the token in the environment block.

### Which license does Github use?

The project is released under the MIT License.

### Is Github free?

Yes. Github is open source, so you can use and self-host it for free.

### How do I add Github to Claude Code?

Run this command in your terminal: claude mcp add github --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y @davidweb3-ctrl/mcp-github-server

### What are the best alternatives to Github?

The closest alternatives to Github are Github MCP, Git MCP Server, GitHub Repository Intelligence, Github Gist and Github MCP Server.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Github MCP](https://ai-powered.com/mcp/github-mcp): Github MCP is an open-source MCP server for developer tools.
- [Git MCP Server](https://ai-powered.com/mcp/git-mcp-server): Git MCP Server is an open-source MCP server for developer tools.
- [GitHub Repository Intelligence](https://ai-powered.com/mcp/github-repository-intelligence): GitHub Repository Intelligence is a freemium MCP server for developer tools.
- [Github Gist](https://ai-powered.com/mcp/github-gist): Github Gist is an open-source MCP server for developer tools.
- [Github MCP Server](https://ai-powered.com/mcp/github-mcp-server): Github MCP Server is a paid MCP server for developer tools.
- [Github Repo MCP](https://ai-powered.com/mcp/github-repo-mcp): Github Repo MCP is an open-source MCP server for developer tools.
- [Github Actions](https://ai-powered.com/mcp/github-actions): Github Actions is an open-source MCP server for developer tools.
- [Github Huggingface Arxiv Papers Repos Search Api MCP](https://ai-powered.com/mcp/github-huggingface-arxiv-papers-repos-search-api-mcp): Github Huggingface Arxiv Papers Repos Search Api MCP is a freemium MCP server for ai models and llm tooling.

---
Source: https://ai-powered.com/mcp/github-davidweb3-ctrl
