$ recombobulate _
home / tips / add-the-github-mcp-server-for-repository-automation
0

Add the GitHub MCP Server for Repository Automation

bagwaa @bagwaa · Mar 25, 2026 · MCP Servers
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.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Build a Custom MCP Server to Expose Your Internal APIs

Scaffold a custom MCP server with Claude to give it direct access to your internal APIs, dashboards, and microservices.

bagwaa @bagwaa · 3 hours ago
0
Lock Down MCP Servers with --strict-mcp-config

Use --strict-mcp-config to restrict Claude Code to only the MCP servers you explicitly provide, ignoring all other sources.

bagwaa @bagwaa · 4 hours ago
0
Use the /mcp Command to Inspect Your MCP Servers

When an MCP server misbehaves, /mcp gives you a live view of every connected server, its status, and the tools it's exposing — right inside your session.

bagwaa @bagwaa · 6 hours ago