How to use the Linear MCP server with Claude Code
Linear runs an official, hosted MCP server at https://mcp.linear.app/mcp. To use it with Claude Code, run claude mcp add --transport http linear-server https://mcp.linear.app/mcp, then type /mcp inside a Claude Code session to sign in to Linear with OAuth. After that, Claude can find, create and update Linear issues, projects and comments from the terminal.
This article is for founders and developers who run Claude Code on real projects and already track work in Linear. It covers setup from Linear's and Anthropic's documentation, checked on 2 December 2026, and a dated comparison with a task tree that agents claim work from (LatticeRun, our product), including where Linear is the better fit.
Key takeaways
- Linear's MCP server is hosted by Linear and uses Streamable HTTP at
https://mcp.linear.app/mcp. The old/sseendpoint is deprecated, and Linear's February 2026 changelog says it is "fully removing SSE support". - Claude Code setup is one command plus
/mcpto authenticate. Anthropic's docs make local scope the default, so add--scope projectif you want the server in a shared.mcp.json. - Linear documents three ways to keep an agent read-only: pick read-only on the consent screen, connect to
https://mcp.linear.app/mcp/readonly, or request only thereadOAuth scope. - Linear describes the server's tools as "finding, creating, and updating objects in Linear like issues, projects, and comments". Initiatives, initiative updates, project milestones and project updates were added in February 2026.
- The server gives an agent access to your Linear workspace. As of December 2026, a Linear issue has one assignee and can be delegated to an installed agent, but Linear's MCP docs don't describe a lock that stops two Claude Code sessions from working the same issue, or a limit that keeps an agent's writes to one piece of work. If that's your problem, a task tree with server-enforced claims fits better.
What is the Linear MCP server?
MCP (Model Context Protocol) is the open protocol that lets AI clients such as Claude Code call tools on other services. Linear announced its official MCP server in a changelog entry dated 1 May 2025, saying "Your AI models and agents can use our official MCP server to access your Linear data in a simple and secure way" and that "the server is centrally hosted and managed". You don't install or run anything: Claude Code connects to Linear's URL.
As of December 2026, Linear's "MCP server" documentation mentions three endpoints:
| Endpoint | What it is |
|---|---|
https://mcp.linear.app/mcp | The main endpoint. Linear says it "uses Streamable HTTP as the primary transport" |
https://mcp.linear.app/mcp/readonly | The same server, "which only ever exposes read tools" |
https://mcp.linear.app/sse | A "deprecated fallback for clients that do not support Streamable HTTP" |
Many older guides, including Linear's own May 2025 changelog, still show the /sse URL with --transport sse. Linear's changelog of 5 February 2026 says "To switch, update your endpoint from https://mcp.linear.app/sse to https://mcp.linear.app/mcp". Use the /mcp URL.
How do you connect Linear to Claude Code?
Linear's documentation gives this command for Claude Code:
claude mcp add --transport http linear-server https://mcp.linear.app/mcp
Then start Claude Code, type /mcp, choose the Linear server and complete the sign-in in your browser. Anthropic's "Connect Claude Code to tools via MCP" page says to "Use /mcp to authenticate with remote servers that require OAuth 2.0 authentication". Linear's docs say the interactive flow "uses OAuth 2.1 with dynamic client registration", so there's no client ID or secret to copy.
Three decisions are worth making before you press enter.
1. Which scope? Anthropic's docs define three installation scopes:
| Scope | Who gets the server | Where Claude Code stores it |
|---|---|---|
| Local (the default) | You, in the current project | ~/.claude.json |
| Project | Everyone who uses the repository | .mcp.json in the project root |
| User | You, in all your projects | ~/.claude.json |
If your whole team uses Linear from Claude Code, a project-scoped entry saves everyone the setup, because Anthropic's page suggests you "Check .mcp.json into version control so everyone on your team gets the same MCP tools and services". Each person still signs in to Linear with their own account. Anthropic's docs also say Claude Code "prompts for approval in interactive sessions before using project-scoped servers from .mcp.json files", so a teammate sees a prompt the first time.
2. Read-only or full access? Linear's docs give three ways to limit an agent to reading: choose read-only on the consent screen, connect to the /mcp/readonly endpoint, or request only the read OAuth scope on /mcp. A read-only server suits agents that should look up the issue they're working on but never change the board. For example, a project-scoped, read-only entry:
claude mcp add --transport http --scope project linear-readonly https://mcp.linear.app/mcp/readonly
Linear's docs also say you can limit access to "all the teams you can access or a subset of teams", although that limit doesn't apply to workspace-level data.
3. OAuth or a token? For scripts, CI or headless runs where nobody can complete a browser sign-in, Linear's docs say "You can also authenticate directly with a bearer token or Linear API key". Anthropic documents a --header option for this:
claude mcp add --transport http linear-server https://mcp.linear.app/mcp \
--header "Authorization: Bearer $LINEAR_API_KEY"
Linear's docs add that an API key created with only the Read permission gives a read-only alternative. Your shell expands $LINEAR_API_KEY when the command runs, so the key itself is saved in your Claude Code configuration. Treat it like a password, keep it out of a committed .mcp.json, and use the local or user scope for token-based entries.
To check the result, run claude mcp list or claude mcp get linear-server from your shell, or open /mcp inside a session. To revoke access, Anthropic's page says to use "Clear authentication" in the /mcp menu. It also notes that claude mcp remove deletes the stored tokens without revoking them at the server that issued them. Where the server supports revocation, run claude mcp logout linear-server before claude mcp remove linear-server.
What can Claude do through the Linear MCP server?
Linear's documentation describes the tools in one sentence: "The Linear MCP server has tools available for finding, creating, and updating objects in Linear like issues, projects, and comments". It doesn't publish a full tool list on that page. The 5 February 2026 changelog lists what was added then:
- create and edit initiatives and initiative updates;
- create and edit project milestones and project updates;
- manage project labels;
- support for loading images.
The same entry says Linear "added broad support for loading Linear resources through URLs", so you can paste a Linear link into the prompt. In practice that gives Claude Code prompts like these:
- "Read LIN-482 and its comments, then find the code it refers to."
- "Create a bug in the Platform team for the failing migration test, with the stack trace in the description."
- "Post a comment on LIN-482 summarising what this commit changed."
- "Draft a project update for the Billing project from the issues closed this week."
The exact tools change as Linear ships them, so open /mcp in Claude Code to see the list your connection exposes.
What goes wrong, and how do you fix it?
Linear's docs and its Claude integration page cover the common failures:
- The connection fails or needs several attempts. Linear's Claude integration page says "Remote MCP connections are still early and we've found that the connection may fail or require multiple attempts." Linear suggests restarting your client or disabling and re-enabling the Linear MCP server.
- An internal server error during sign-in. Linear's docs suggest running
rm -rf ~/.mcp-authand reconnecting, and updating Node if needed. That folder belongs to themcp-remotehelper that some clients use. Claude Code connects over HTTP itself, so our suggestion is to use "Clear authentication" in/mcpand sign in again. - A 401 with
error="invalid_token". Linear's docs say standard OAuth connections "start with a 25-day refresh window" that can renew when your client refreshes its credentials, and that a 401 withinvalid_tokenmeans the token is no longer valid. Claude Code refreshes tokens automatically, so if you still see this, re-authenticate from/mcp. - Several Linear workspaces. Linear's docs say "each workspace needs its own separate authentication context". In Claude Code, our suggestion is to add one server per workspace, each under its own name and authenticated with an API key from that workspace in the
Authorizationheader, so each entry carries its own credentials. - Untrusted servers. Anthropic's page warns: "Verify you trust each server before connecting it. Servers that fetch external content can expose you to prompt injection risk." Issue descriptions and comments are external content too, so a read-only connection is a sensible default for an agent that only needs context.
When does a task tree with claims suit agent-run work better?
The Linear MCP server gives an agent a way to use your tracker. It doesn't change what the tracker is for. Linear's agent platform page says you "Delegate issues by assigning the issue to the agent" and that "Agents are not counted as billable seats in Linear". That page describes agents installed into a Linear workspace. Claude Code connected over MCP with OAuth uses the access of the account that signed in. Linear does let you limit an MCP connection, or an installed agent, to selected teams, and lets you write workspace and team guidance that installed agents receive. Linear's "Assign and delegate issues" page says "Issues in Linear are assigned to a single person at a time", and that an issue can be delegated to an agent while the assigned teammate keeps ownership. As of December 2026, though, neither of those pages nor Linear's MCP documentation describes a claim that refuses a second MCP client working the same issue, or a limit that keeps an agent's writes inside one piece of work.
As of December 2026, here is how the two compare on criteria that matter when agents, not people, do most of the work. Facts about Linear come from the Linear pages listed under Sources; facts about LatticeRun come from our MCP connector documentation and Agent Guide.
| Criterion | Linear MCP server | LatticeRun MCP connector |
|---|---|---|
| What it is | Access to your Linear workspace: issues, projects, comments, initiatives, milestones, updates | A task tree that agents claim work from, plus Project Memory and the Project Plan |
| Setup in Claude Code | claude mcp add plus OAuth via /mcp; or a bearer token or API key | claude mcp add with a bearer agent token; OAuth sign-in for claude.ai, Claude Desktop and mobile |
| Read-only option | Yes: consent screen, /mcp/readonly or the read scope | No read-only token or endpoint; read tools carry the standard MCP read-only hint, and enforcement is set per project (Off, Guided, Strict) |
| Exclusive claim on work | One assignee per issue, and delegation to an installed agent; no claim that refuses a second MCP client is described | latticerun_start_task claims a branch; one claim at a time, and a claim left quiet for 45 minutes can be taken over (Agent Guide) |
| Writes limited to the claimed work | Not described; writes follow the scopes granted and, optionally, a subset of teams | Strict mode refuses writes outside the claimed branch |
| Context handed over when work starts | The agent reads the issue and its links; agents installed in Linear also receive workspace and team guidance | The claim returns the project brief (agent.md), the branch, decisions, and bounded Project Memory and Project Plan context |
| Reporting back | Comments, status changes, project updates | latticerun_complete_task with a summary; a successful checkout writes a proposed Project Memory checkpoint |
| Price | Linear's MCP pages give no separate price | Solo Pro ($12/month) covers agents, the connector, Project Memory and the Project Plan. On the Free plan, projects stay in the browser |
Choose the Linear MCP server if your team already plans in Linear, people assign and review the work, and you want Claude Code to read issues and keep them up to date. It's the better fit for a team where people outnumber agents, and it needs no new tool.
Choose a task tree with claims if several agents work the same project and you keep finding duplicated or overwritten work, if each new session starts without the decisions the last one made, or if you want the server, not the agent's good intentions, to decide which tasks an agent may change (on a Strict project). We explain the underlying idea in how agent task trees keep several AI agents on one plan and list the specific breakages in what breaks when agents share task state.
The two can also sit side by side: Linear as the record people plan in, and a claimed tree for the agent-run part of the work. Our broader comparison of LatticeRun with Jira, Linear, Notion and Asana covers that split in more detail, and connecting an agent to a LatticeRun tree over MCP shows the other side of the setup.
Frequently asked questions
Is the Linear MCP server official?
Yes. Linear announced it as "our official MCP server" in its changelog on 1 May 2025, and it's hosted by Linear at https://mcp.linear.app/mcp. Third-party Linear MCP servers exist too; this article covers only Linear's own.
Does the Linear MCP server work with Claude Desktop and claude.ai?
Yes. As of December 2026, Linear's docs say that in Claude Desktop (Free and Pro) you add the Linear connector from Settings, then Connectors, and that on Team and Enterprise plans you connect Linear from the connectors page in claude.ai. Anthropic's Claude Code documentation says connectors added in claude.ai are automatically available in Claude Code when you're logged in with a claude.ai subscription, and appear in /mcp. If you sign in to Claude Code with an API key instead, or want project scope, a read-only endpoint or a token header, add the server with claude mcp add as shown above.
Can Claude Code remember Linear context between sessions?
Not through the MCP server alone: each session reads what it needs from Linear again. What Claude Code carries forward is covered in what Claude Code remembers between sessions. Putting the issue key in your prompt, or in a plan written in Claude Code plan mode, is the simplest way to point a new session at the right work.
Sources
- MCP server — Linear
- Linear MCP server – Changelog — Linear
- Linear MCP for product management – Changelog — Linear
- Agent platform — Linear
- Assign and delegate issues — Linear
- Connect Claude to the Linear MCP server — Linear
- Connect Claude Code to tools via MCP — Anthropic
Related articles
- Let your AI agent tend your tree — The LatticeRun MCP connector gives Claude Code, Kimi, Hermes and any MCP-compatible agent read/write access to your task trees.
- What is Claude Code plan mode, and how do you use it? — How Claude Code's plan mode (planning mode) works, from Shift+Tab and /plan to approval, and what to do when one approved plan must guide several sessions.
- Does Claude Code have memory? What persists between sessions — What Claude Code remembers between sessions: CLAUDE.md files, auto memory and resumed transcripts, where each lives, and what none of them covers.
Keep your agents on one plan
LatticeRun gives each coding agent the brief, Project Memory and its claimed branch over MCP. The planner is free; agents are on Solo Pro, $12/month.