# GitHub MCP Server

> Manage repos, issues & PRs from chat

- **URL**: https://followmcp.com/en/servers/github
- **Category**: Dev Tools
- **Origin**: Official
- **Stars**: 307
- **FMRS Score**: 66/100 (Grade C)
- **Source**: https://github.com/modelcontextprotocol/servers-archived/tree/main/src/github
- **Transports**: stdio (local process)
- **Runtimes**: Node.js
- **Auth**: API key / credential required

## Overview
This server wraps the GitHub REST and GraphQL APIs so models can update files, work with issues, create pull requests, and inspect repository history from a conversation. It reduces context switching during everyday development and collaboration.

## Best for
- Development teams that want to handle issues, files, and pull requests from a coding assistant
- Maintainers automating repetitive GitHub workflows

## Not for
- Environments that cannot provide a GitHub token
- Organizations requiring every repository write to be confirmed manually in GitHub's UI

## Required permissions
- A GitHub Personal Access Token
- Least-privilege Contents, Issues, or Pull requests access for the target repositories

## Risks
- A leaked high-privilege token can modify repository code and issues
- The model can create incorrect branches, issues, or pull requests; retain human confirmation for writes

## Client config (JSON)
```json
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxxxxxxxxxxx"
      }
    }
  }
}
```

## Tools (6)
- `create_or_update_file`: Create a new repository file or update an existing one
- `search_repositories`: Search repositories by keyword
- `create_issue`: Create a new issue
- `create_pull_request`: Open a pull request
- `list_commits`: List commit history for a branch
- `merge_pull_request`: Merge an approved pull request
