
By using Merge Agent Handler's GitHub connector with Claude Code, your agents can create and manage issues, search across repositories, add comments, update workflows and more directly from the terminal.
This guide walks through the set up.
Merge Agent Handler acts as the layer between Claude Code and GitHub's API. You install the Merge CLI, log in once, and register the connection with a single terminal command. Agent Handler stores your GitHub OAuth credentials and handles token refresh so none of that lives in your local environment.
Here's the command that registers the connection:
Related: A guide to integrating a GitHub MCP with Codex
Before getting started, you'll need the following:
claude --version to confirm)pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's GitHub MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Install with pipx: pipx install merge-api

Confirm the install completed: merge --version
Related: How to use a GitHub MCP in Cursor
Start with the interactive configuration: merge configure
This prompts you for your Merge API key and sets your default workspace preferences, linking the CLI to your Merge Agent Handler account.
Then authenticate: merge login
Once you log in, the CLI can make authorized API requests on your behalf.
To add Agent Handler to Claude Code, run:
Or register manually with:
Verify the connection registered. Open Claude Code and run: /mcp
agent-handler should appear under Local MCPs with a connected status.

Related: How to use the Google Drive MCP in Claude Code
Open a Claude Code session and test it with: "Search open issues in the backend repo labeled 'bug' and assign them to me."
The first time you use a GitHub tool, a Magic Link will appear to authenticate the connector.

You should then see an output like the following:

Or get updates from GitHub: What’s the latest on the issue in the API repo titled 'Rate limiter not resetting on token refresh?"

{{this-blog-only-cta}}
In case you have more questions about connecting GitHub to Claude Code or using it in the terminal, we've answered a few more below.
Merge Agent Handler's GitHub connector includes enterprise-grade security controls, data loss prevention, and real-time observability over every tool call. You can scope exactly which repositories your agent can access and set custom guardrails to control what it can read or write.
GitHub is where engineering work is tracked, and Claude Code is where engineers already are. Connecting the two means your agents can surface relevant issues, log new bugs, update existing tickets as part of your coding workflows, and more without switching tabs or losing context.
Use Merge Agent Handler’s 150+ connectors (including Google Drive) to power reliable, secure, and powerful agents.