Github
MCP server giving AI assistants read access to GitHub PRs, issues, repos and code search
Github is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API, Self-hosted
- Runs
- Locally
- Version
- 1.0.0
- Listing updated
Similar MCP servers
Install
Run in a terminal
claude mcp add github --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y @davidweb3-ctrl/mcp-github-serverAdd to claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-github-server"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-github-server"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"github": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-github-server"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-github-server"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-github-server"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
GITHUB_TOKENGitHub Personal Access TokenRequired
About Github
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.
Tools this server provides (6)
Taken from the project documentation; the running server may differ.
- 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.
What it does
- 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
Pricing
Open source
Free and open source under the MIT License.
More servers for the same service
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.