OmniscioGuidesClaude Code and Linear
How to connect Claude Code to Linear
Linear runs a remote MCP server itself (MCP is the Model Context Protocol, the standard that lets Claude Code use an outside service's tools), which makes this one of the simpler integrations in Claude Code: there is nothing to install locally, the documented flow asks for no token to paste, and one command does the setup. The work is in choosing read-write or read-only, and in what you ask for afterwards.
This page is the Linear connection end to end. The MCP setup guide covers what a server is and what each scope stores; the MCP error guide covers a connection that fails outright.
- The command and the sign-in.
- Read-only, when you want it.
- What to ask it for.
- Making it available everywhere.
- When it does not work.
Checked against Linear's MCP documentation and Anthropic's Claude Code MCP documentation on November 25, 2026. By the Omniscio team. Updated .
The command and the sign-in
Linear documents the Claude Code route in one line, and the server name it uses is linear-server:
claude mcp add --transport http linear-server https://mcp.linear.app/mcpThat command only registers the server. The sign-in is the second step, and it happens inside a session: run /mcp and go through the authentication flow it offers. Linear describes that flow as OAuth 2.1 with dynamic client registration, so the sign-in happens in your browser rather than through a key you paste.
If you want the read-only connection, add the read-only endpoint below instead of this one, before you sign in. Choosing it later means removing the server and adding it again, because the sign-in is tied to the endpoint.
The server is centrally hosted and managed by Linear, so nothing runs on your machine and there is no local process to keep alive. To confirm it registered, run claude mcp list: linear-server should be listed with its status.
Anthropic's form for a remote server is claude mcp add --transport http <name> <url>: the name you give it is what /mcp lists, which is why Linear's command calls it linear-server.
Read-only, when you want it
By default the server is read-write. That is the right default for a chat assistant and a slightly alarming one for an agent that can also edit your repository, so Linear offers two ways to narrow it.
- Point at a different endpoint:
https://mcp.linear.app/mcp/readonlyonly ever exposes read tools, so there is nothing to mis-click. - Or keep
https://mcp.linear.app/mcpand have the client request only the read permission scope. Linear says a client that requests read is granted read-only access, and the underlying token cannot reach its write APIs. That is a choice the client makes when it starts the sign-in, not a switch you flip on a consent screen, so the readonly endpoint is the route you can pick yourself.
The difference matters when you are letting an agent work unattended. The read-only endpoint is a property of the URL you configured; the read permission is a property of the token, and a token granted only read cannot reach the write APIs whatever the client asks for later. Note that this permission scope is a different thing from the --scope flag, which decides where Claude Code stores the server definition.
To switch, remove the server and add it again against the other endpoint, then authenticate once more:
claude mcp remove linear-server
claude mcp add --transport http linear-server https://mcp.linear.app/mcp/readonlyClaude Code stores OAuth sign-ins per endpoint, so the sign-in you completed for one endpoint does not carry over to the other.
What to ask it for
The tools cover the objects you would expect: finding, creating and updating issues, projects and comments. Linear's own examples are the best guide to what that is worth in practice, because each one is a task rather than a query.
- Turn a planning document into a project. Ask Claude to read the document, create a project that reflects its objective, scope and timeline, then create the issues that represent the work, with milestones where the document implies phases. Linear's own prompt tells the model to flag ambiguity and return an outline for review instead of guessing, which is the right instinct here too.
- Post standup notes onto the issues they mention. Give it the raw notes; it matches each note to an issue by ID, title or owner, and comments only where the match is strong. The pattern worth copying is that it shows the planned comments first, then applies them and lists what it skipped.
- Investigate a tracked bug. Start from the existing issue, use its description and any linked context as the starting point, search for the most likely root cause by following the technical, product or workflow clues, and write the findings back as a comment so the reasoning stays with the ticket.
- Summarise a completed cycle. Ask for what the team actually finished in a cycle, naming the team identifier, rather than for a status report. Linear's own example treats a cycle as a timeframe and labels the teams
LINandFEA.
Two habits make these safer. Ask for the plan before the action, which is what Linear's own prompts do, and name the issue by its identifier, such as LIN-123, as Linear's own example does, because an ID cannot be misread.
Making it available everywhere
Anthropic's default for claude mcp add is local scope: the server loads only in the project where you added it, and it stays private to you. If you want Linear in every repository, add the flag at the same time:
claude mcp add --transport http linear-server --scope user https://mcp.linear.app/mcpUser scope is the one that follows you between projects. Project scope writes the definition into the repository's .mcp.json, which is the right choice for a team that wants everyone to get the same server, and the wrong one for anything that depends on your own sign-in.
To check what is registered, run claude mcp list for every server and its status, or open /mcp inside a session for the tool counts and the per-server menu. A server that shows as needing authentication there is one whose sign-in did not finish.
The end-to-end check is a prompt rather than a status. Try asking Claude to list the Linear issues assigned to you: a connected server has the tools to find them, and a session with no Linear tools means the sign-in did not complete.
When it does not work
- Nothing shows up in a new project: you added it at local scope, which loads only where you added it. Remove that definition and add the server again with
--scope user, rather than leaving both in place. - Claude reports that it changed an issue but Linear shows the old text: check which endpoint you added and which scope you granted.
claude mcp get linear-servershows the server's details, and a token granted only the read scope cannot reach Linear's write APIs. - The same server name exists in more than one scope with different endpoints: Claude Code warns about the conflict in
claude mcp listand in/mcp, and stores the sign-in per endpoint, so the definition that loads may not be the one you authenticated. - A rejected stored token: Claude Code shows a notice pointing at
/mcpbefore the next tool call fails, so open it and re-authenticate the server.
For a connection that fails with an HTTP status or a transport error rather than an auth prompt, the messages are in the MCP error guide.
Sources
Every factual line above rests on these pages, read on November 25, 2026. The Linear side is Linear's; the Claude Code side is Anthropic's.
- Linear's MCP server, for the hosted server, Streamable HTTP, the read-write and read-only endpoints, the OAuth 2.1 flow, the Claude Code command, the client list and the example prompts.
- Anthropic's Connect Claude Code to tools via MCP, for the
claude mcp add --transport httpform, the scope thatclaude mcp addwrites by default, what user and project scope store,claude mcp list, and how a rejected stored token is reported.
No Linear workspace was connected for this page. Every command, endpoint and permission rule is transcribed from those pages.
Common questions
How do I connect Claude Code to Linear?
Run claude mcp add --transport http linear-server https://mcp.linear.app/mcp, then open a Claude Code session and run /mcp to go through the authentication flow. Linear's server is hosted by Linear and uses OAuth 2.1, so the sign-in opens in a browser and you do not paste a token.
Can Claude Code read Linear without changing anything?
Yes, two ways. Connect to https://mcp.linear.app/mcp/readonly, which only ever exposes read tools, or use the standard endpoint and request only the read OAuth scope; clients that request read are granted read-only access and the token cannot reach write APIs.
What can Claude Code do with Linear data?
Linear's server exposes tools for finding, creating and updating issues, projects and comments. Linear's own examples are turning a planning document into a project with milestones and issues, posting standup notes as issue comments, investigating a bug and recording the findings on its issue, and summarising a completed cycle.
Why does /mcp show Linear as needing authentication?
Claude Code flags a remote server for sign-in when it answers 401 or 403, and stores OAuth sign-ins per endpoint. Select the server in /mcp and authenticate again; if a stored refresh token was rejected, Claude Code shows a notice pointing at /mcp before the next tool call fails.
Does the Linear connection apply to every project?
Only the project you added it from, unless you pass --scope user. Claude Code's default for claude mcp add is local scope, which loads only in that project and stays private to you.
Tickets on one side, the session on the other
Omniscio puts the session that is working a Linear issue next to the diff it produced, so the comment you post at the end is written from what actually changed.