Add the GitHub MCP Server for Repository Automation
The GitHub MCP server turns Claude Code into a GitHub power user — reading issues, creating pull requests, checking CI status, and more, all without leaving your terminal.
// .claude/settings.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
}
}
}
Once connected, you can work with your repositories conversationally:
"Summarise the open issues on this repo and group them by severity"
"Create a PR for the current branch with a description of what changed"
"Which CI check is failing on PR #47 and what does the error say?"
"Close all issues labelled 'wontfix' with a brief explanation comment"
You can combine it with git worktrees so Claude can make changes on a branch, then open a PR for its own work automatically. It's particularly powerful in agentic workflows where you want Claude to complete a full cycle from code to review-ready PR.
Generate a fine-grained personal access token scoped to just the repos you want Claude to access — don't hand it a token with write access to everything.
The GitHub MCP server collapses your dev workflow into a single conversation.
Log in to leave a comment.
MCP servers aren't just for third-party integrations — you can build your own to give Claude direct access to your internal tools, databases, APIs, and workflows. A custom MCP server turns any system your team uses into a tool Claude can call natively from your session.
MCP servers can be scoped at three levels — user (available everywhere you work), project (shared with the team via version control), or enterprise (managed by your organization). Pick the right scope so each project gets exactly the tools it needs without cluttering unrelated ones.
Instead of manually editing settings JSON to add MCP servers, use the claude mcp command — add servers with one line, list what's configured, remove ones you don't need, and scope them to the right level, all from the terminal.