How to use the Linear MCP server with Claude Code

Dec 2026 · MCP · 11 min read · Facts checked 2 December 2026

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 /sse endpoint is deprecated, and Linear's February 2026 changelog says it is "fully removing SSE support".
  • Claude Code setup is one command plus /mcp to authenticate. Anthropic's docs make local scope the default, so add --scope project if 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 the read OAuth 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:

EndpointWhat it is
https://mcp.linear.app/mcpThe main endpoint. Linear says it "uses Streamable HTTP as the primary transport"
https://mcp.linear.app/mcp/readonlyThe same server, "which only ever exposes read tools"
https://mcp.linear.app/sseA "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:

ScopeWho gets the serverWhere Claude Code stores it
Local (the default)You, in the current project~/.claude.json
ProjectEveryone who uses the repository.mcp.json in the project root
UserYou, 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:

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:

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:

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.

CriterionLinear MCP serverLatticeRun MCP connector
What it isAccess to your Linear workspace: issues, projects, comments, initiatives, milestones, updatesA task tree that agents claim work from, plus Project Memory and the Project Plan
Setup in Claude Codeclaude mcp add plus OAuth via /mcp; or a bearer token or API keyclaude mcp add with a bearer agent token; OAuth sign-in for claude.ai, Claude Desktop and mobile
Read-only optionYes: consent screen, /mcp/readonly or the read scopeNo 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 workOne assignee per issue, and delegation to an installed agent; no claim that refuses a second MCP client is describedlatticerun_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 workNot described; writes follow the scopes granted and, optionally, a subset of teamsStrict mode refuses writes outside the claimed branch
Context handed over when work startsThe agent reads the issue and its links; agents installed in Linear also receive workspace and team guidanceThe claim returns the project brief (agent.md), the branch, decisions, and bounded Project Memory and Project Plan context
Reporting backComments, status changes, project updateslatticerun_complete_task with a summary; a successful checkout writes a proposed Project Memory checkpoint
PriceLinear's MCP pages give no separate priceSolo 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

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.