Cette page est affichée en anglais. Une traduction française est en cours.
MCP ConfigsMar 28, 2026·2 min de lecture

GitHub MCP Server — Manage Repos & Issues from AI Tools

GitHub official MCP server. Connect Claude Code or Cursor to GitHub for managing repos, issues, PRs, and code search via natural language.

MCP Hub
MCP Hub · Community
Introduction

GitHub's official MCP server — the first-party integration that connects any MCP-compatible AI tool (Claude Code, Cursor, VS Code Copilot, Windsurf) directly to GitHub. Browse repos, manage issues and PRs, trigger Actions, review security alerts, all through natural language. 28,000+ GitHub stars.

Works with: Cursor, Claude Code, GitHub Copilot, Ollama ---

Available Toolsets

Toolset What It Does
repos Browse files, search code, manage branches, create commits
issues Create, update, comment on issues
pull_requests Open PRs, request reviews, merge
actions List workflows, trigger runs, get job logs
code_security Code scanning alerts, secret detection
dependabot Dependency vulnerability alerts
discussions Access GitHub Discussions
notifications Manage notification inbox
projects GitHub Projects board operations

Default: repos, issues, pull_requests, users, context

Enable all: Set GITHUB_TOOLSETS="all"

Configuration Examples

Claude Code (.mcp.json with PAT)

{
  "servers": {
    "github": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
      }
    }
  }
}

Select specific toolsets

docker run -i --rm   -e GITHUB_PERSONAL_ACCESS_TOKEN=your_token   -e GITHUB_TOOLSETS="repos,issues,pull_requests,actions"   ghcr.io/github/github-mcp-server

Read-only mode

docker run -i --rm   -e GITHUB_PERSONAL_ACCESS_TOKEN=your_token   -e GITHUB_READ_ONLY=1   ghcr.io/github/github-mcp-server

Key Tools

  • get_file_contents — Read any file or directory
  • search_code — Search across repositories
  • create_or_update_file — Commit file changes
  • create_pull_request / merge_pull_request — PR lifecycle
  • issue_read / issue_write — Issue management
  • get_job_logs — CI/CD debugging

Authentication

Create a PAT at github.com/settings/personal-access-tokens/new. Recommended scopes: repo, read:packages, read:org.


FAQ

Q: What is GitHub MCP Server? A: GitHub official MCP server. Connect Claude Code or Cursor to GitHub for managing repos, issues, PRs, and code search via natural language.

Q: How do I install GitHub MCP Server? A: Check the Quick Use section above for step-by-step installation instructions. Most assets can be set up in under 2 minutes.

🙏

Source et remerciements

Created by GitHub. Licensed under MIT. github-mcp-server — ⭐ 28,300+

The official GitHub MCP integration, maintained by GitHub's engineering team.

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.