
This guide walks through connecting AI agents to Merge Agent Handler's Linear MCP server via Claude Code.
Once set up, your Claude agents can create issues, update statuses, manage projects, and search across your Linear workspace without leaving the terminal.
Merge Agent Handler, our MCP gateway, handles the connection between Claude Code and Linear's API. You install the Merge CLI, run a one-time login, and register the MCP server with a single command. Agent Handler manages your Linear OAuth credentials and routes API calls on your behalf so you don't store tokens locally or handle token refresh yourself.
Here's the command that registers the connection:
merge setup claude-codeBefore 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 Linear MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Install with pipx: pipx install merge-api

Verify your installation: merge --version
Related: How to use a Linear MCP in Cursor
Run merge login to authenticate your session and link the CLI to your Merge Agent Handler account: merge login
This authenticates your session so the CLI can make authorized requests on your behalf going forward.
Run the following to register the Agent Handler MCP server with Claude Code:
merge setup claude-codeOr, if you prefer to register manually:
claude mcp add
--transport http agent-handler https://ah-api.merge.dev/mcp
Open a new Claude Code session and run: /mcp
agent-handler should appear under Local MCPs with a connected status.

Related: How to start using a Linear MCP in Codex
Open a Claude Code session and run a test query like: "Find all unassigned P1 issues in the current sprint and summarize what's blocking each one."
The first time you invoke a Linear tool, a Magic Link will appear to complete connector authentication.

{{this-blog-only-cta}}
In case you have any more questions on setting up and using a Linear MCP server in Claude Code, we’ve addressed several more questions below:
Here are just a few common use cases:
Using the connector’s 30+ tools, your agents can operate autonomously across the entire project management lifecycle.
Here’s additional context:
In simple terms, Linear is where engineering work lives, and Claude Code is where engineers already are. So connecting them means your agent can act on your backlog without your engineers switching contexts.
Use Merge Agent Handler’s 150+ connectors (including Linear) to power reliable, secure, and powerful agents.