Skip to content

Linear MCP server: connect Claude Code, Codex and Cursor

Linear's official MCP server is mcp.linear.app/mcp, with OAuth. Setup for Claude Code, Codex, Cursor, Claude and ChatGPT, its tools, and fixes for auth loops.

· 8 min read · By Sharpy

Linear hosts its official MCP server at https://mcp.linear.app/mcp. In Claude Code, run claude mcp add --transport http linear-server https://mcp.linear.app/mcp, then /mcp to sign in through OAuth. Codex, Cursor, Claude and the ChatGPT desktop app use the same URL, and there’s no API key to create unless you want one.

We checked every command on 16 November 2026 against Linear’s MCP docs, Linear’s changelog and each client’s own MCP docs. Linear ships MCP changes every few weeks, and tool names in older guides are already out of date.

Which endpoint: /mcp, /mcp/readonly or /sse?

EndpointWhat it isUse it for
https://mcp.linear.app/mcpStreamable HTTP, read and writeEvery new setup
https://mcp.linear.app/mcp/readonlyOnly read toolsSummaries, triage, any agent that shouldn’t change issues
https://mcp.linear.app/sseThe old SSE transport, deprecatedNothing new; Linear’s FAQ keeps it only as a WSL fallback

On 5 February 2026 Linear wrote that it is “fully removing SSE support” and would roll out deprecation errors over two months. If an old config points at /sse, change it to /mcp. Claude Code’s docs mark SSE deprecated too.

Sign-in is OAuth 2.1 with dynamic client registration: the client registers itself and opens your browser. Requesting only the read scope on /mcp also gives read-only access.

How do I add the Linear MCP server to Claude Code?

claude mcp add --transport http --scope user linear-server https://mcp.linear.app/mcp

In a session, type /mcp, choose linear-server and approve in the browser. From a plain shell, claude mcp login linear-server runs the same flow, and --no-browser prints the URL for SSH sessions (Claude Code MCP docs). --scope user keeps the server in every project; the default local scope ties it to the current directory.

If you already connected Linear in claude.ai and Claude Code is logged in with that account, the connector shows up in /mcp by itself.

A read-only twin next to the full server is one more line:

claude mcp add --transport http --scope user linear-readonly https://mcp.linear.app/mcp/readonly

How do I connect Linear to Codex and the ChatGPT desktop app?

codex mcp add linear --url https://mcp.linear.app/mcp

Linear says Codex then prompts you to log in; if it doesn’t, run codex mcp login linear. The entry lands in ~/.codex/config.toml:

[mcp_servers.linear]
url = "https://mcp.linear.app/mcp"

Linear’s page also tells first-time MCP users to add experimental_use_rmcp_client = true under [features]. OpenAI’s current Codex MCP docs don’t mention that flag, so try without it and add it only if an older Codex refuses the URL.

The ChatGPT desktop app and the Codex IDE extension read the same file, so one codex mcp add covers all three. In the desktop app’s UI it’s Settings, MCP servers, Add server, Streamable HTTP, paste the URL, save, Restart, then Authenticate. ChatGPT in the browser doesn’t read local config. There, Linear’s ChatGPT connector covers search and deep research for Plus and Pro users outside the EEA, Switzerland and the UK, and for Team, Enterprise and Edu.

Cursor, Claude desktop and VS Code

Cursor. Use the one-click install on Linear’s docs page, or search Linear on Cursor’s MCP tools page. By hand, in ~/.cursor/mcp.json:

{ "mcpServers": { "linear": { "url": "https://mcp.linear.app/mcp" } } }

Cursor’s docs say it signs in with the authorization code flow and PKCE, and renews expired tokens with a refresh token when the server issues one.

Claude desktop and claude.ai. Linear’s docs: on Free and Pro, add the Linear connector from Claude’s settings, Connectors; on Team and Enterprise, connect it from the connectors page. Anthropic’s help calls the path Customize, Connectors in current builds. Linear Business and Enterprise workspaces on Claude Team or Enterprise can turn on Claude auto-connect (beta), which skips the sign-in for members whose emails match.

VS Code, Windsurf, Zed and the rest. Linear’s docs route these through the mcp-remote bridge:

{
  "mcpServers": {
    "linear": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.linear.app/mcp"]
    }
  }
}

What tools does the Linear MCP server have?

Linear’s docs describe tools for “finding, creating, and updating objects in Linear like issues, projects, and comments” and don’t publish a full list. The changelog names them as they change:

AreaWhat the changelog says
Issueslist_issues, which filters by completedAt since 5 Nov 2026; save_issue, which replaced create_issue and update_issue on 26 Feb 2026; issue relations (blocking, related, duplicate) since 22 Jan 2026
Commentslist_comments, paginated since 24 Mar 2026, covering archived issues since 11 Jun 2026
Projects and planningsave_project; initiatives, initiative updates, project milestones, project updates and project labels since 5 Feb 2026
Documentssave_document, under a project, team, initiative or cycle
Teams and peoplelist_teams and get_team; assigning by part of a name since 22 Oct 2026
Customer requestslist_customer_needs (8 Oct 2026) and save_customer_need
Releasesreleases, release notes and their issues since 2 Jul 2026
ChatGPTsearch and fetch

If a prompt or skill you copied calls create_issue, it predates February. Trust the tool list your client shows after connecting, and ask the agent which Linear tools it has before you build a long prompt around them.

Troubleshooting: auth loops, /sse and internal server errors

ProblemFix
“Internal server error” on connectrm -rf ~/.mcp-auth clears mcp-remote’s saved auth; reconnect, and update Node if it’s old
Signed in to the wrong workspaceReconnecting doesn’t switch it. Give each workspace its own auth folder: MCP_REMOTE_CONFIG_DIR=~/.mcp-auth/workspace-a npx mcp-remote https://mcp.linear.app/mcp
Claude Code keeps asking you to sign inThe same name may exist in two scopes with different URLs, and sign-ins are stored per endpoint. claude mcp list shows the conflict; claude mcp remove linear-server --scope <scope> drops one
Browser shows a connection error after you approvePaste the full callback URL from the address bar into Claude Code’s prompt
Errors that mention SSEChange /sse to /mcp
A Bearer header is rejectedClaude Code reports the server as failed instead of falling back to OAuth. Check the key, or remove the header to use OAuth
Connection dropped mid-sessionDisconnect and reconnect it in the client’s MCP settings; Linear says this doesn’t touch your data or auth

Linear fixed two OAuth bugs this spring: a redirect page that hung in browsers other than Safari (2 April 2026), and connections that dropped after about a day (16 April 2026). If you gave up on the server before then, try it again.

How do I keep Linear MCP output from filling the context?

Issue lists eat the most context. Claude Code warns when one tool result passes 10,000 tokens and cuts it at 25,000 by default; MAX_MCP_OUTPUT_TOKENS=50000 claude raises the cap. Narrow requests work better:

  • Ask narrowly, filtered by team, assignee, state or dates. list_issues takes completedAt values like -P7D, and results come in pages, so “the first 20” is a real request.
  • Point agents that only read at /mcp/readonly, which loads fewer tool definitions.
  • In Codex, keep the tools you use with enabled_tools under [mcp_servers.linear].
  • Claude Code loads MCP tool definitions on demand by default (tool search), so a large server costs little until it’s used.

If several agents work on Linear issues at once, Claude Code worktrees covers keeping their checkouts apart. For Todoist, the same walkthrough is in Todoist MCP server setup.

When do you need an API key or a community server?

The official server takes a key too. Linear’s FAQ says it accepts an OAuth token or API key as Authorization: Bearer <token>. Create a personal key under Settings, Account, Security & Access (Linear docs); you can restrict it to Read, Write, Admin, Create issues or Create comments, and to specific teams. A Read-only key is the simplest read-only agent:

claude mcp add --transport http linear-server https://mcp.linear.app/mcp --header "Authorization: Bearer your-api-key"

Headers suit CI, where nobody can click through OAuth, and several workspaces, one key each. Linear doesn’t publish limits for the MCP server; its GraphQL API allows 2,500 requests an hour per user with API keys, shared across all of that user’s keys, and 5,000 with OAuth apps.

Community servers call the GraphQL API with your key. The author of jerhadf/linear-mcp-server, which many 2025 guides recommend, has deprecated it in favour of the official server. @tacticlaunch/mcp-linear is maintained (v1.4.6, 13 November 2026) and reads LINEAR_API_TOKEN:

claude mcp add --env LINEAR_API_TOKEN=your-api-key --transport stdio linear -- npx -y @tacticlaunch/mcp-linear

Reach for one when you need something the official server lacks, such as the workspace webhook and OAuth app tools in tacticlaunch’s server, or code you can read and pin to a version.

Linear issues on the same list as everything else

Linear’s server tells an agent about Linear, but your work also sits in mail and Slack. Sharpy is a free AI to-do list for Mac that puts it on one list. Issues assigned to you in Linear come onto it, next to tasks from Gmail, Slack, GitHub and the text on your screen. A task closes by itself when the issue closes or the pull request merges. Tick a Linear task done in Sharpy and it closes in Linear; finish it in Linear and it closes in Sharpy.

Sharpy’s own MCP server gives Claude Code, Codex, Cursor and the ChatGPT desktop app that whole list, so “what’s next?” covers more than one tracker. On a task, Sharpy can also hand the work to Claude Code or Codex. The agent works on its own in its branch and opens a pull request; you decide whether to merge, and the task closes when you do (Sharpy for engineers).

We haven’t verified that a task an agent marks done over Sharpy’s MCP also closes in Linear, and Sharpy’s MCP has no tools that act in connected apps. Keep Linear’s server for creating and editing issues.

Sharpy runs on macOS 14 or later, on Macs with Apple silicon, and the app has to be running for agents to reach it. It reads screen text through macOS Accessibility, with no video and no keystrokes, and sends the relevant text through its server to cloud AI models. Download Sharpy for Mac.

Questions

What is the Linear MCP server URL?

https://mcp.linear.app/mcp, over Streamable HTTP, with OAuth 2.1 and dynamic client registration, so the client opens a browser and registers itself. https://mcp.linear.app/mcp/readonly exposes only read tools. The old https://mcp.linear.app/sse endpoint is deprecated; Linear said in February 2026 it is removing SSE support.

Can I use a Linear API key with the official MCP server?

Yes. Linear's docs say the server accepts an OAuth token or a personal API key in an Authorization: Bearer header instead of the interactive sign-in. Create the key in Linear under Settings, Account, Security & Access, and restrict it to Read if the agent should only look. This also suits CI and machines without a browser.

Why does the Linear MCP keep asking me to sign in, or show the wrong workspace?

Reconnecting does not switch workspaces inside an existing auth session, so each workspace needs its own auth context. With mcp-remote, give each one its own MCP_REMOTE_CONFIG_DIR; for an internal server error, clear saved auth with rm -rf ~/.mcp-auth. In Claude Code, check claude mcp list for the same server name in two scopes with different URLs, because sign-ins are stored per endpoint.

Does the Linear MCP server work with ChatGPT?

In the ChatGPT desktop app, yes: add https://mcp.linear.app/mcp under Settings, MCP servers, or with codex mcp add, since the desktop app, Codex CLI and the Codex IDE extension share ~/.codex/config.toml. ChatGPT in the browser does not read local config. There, Linear's ChatGPT connector covers search and deep research on the plans Linear lists.

What happened to the create_issue and update_issue tools?

Linear combined them into one save_issue tool on 26 February 2026. Prompts, skills and guides written before then that name create_issue or update_issue are out of date. Linear's changelog is the place to watch, because its docs page does not publish a full tool list.

How is Sharpy different from the Linear MCP server?

Linear's server gives an agent your Linear workspace. Sharpy is a Mac to-do list that puts issues assigned to you next to tasks from mail, Slack, GitHub and your screen, and its own MCP server gives agents that one list. A task ticked done in Sharpy closes in Linear, but an agent's done over Sharpy's MCP reaching Linear is not verified, so keep Linear's server for creating and editing issues.

Let it find its first job.

Free in early access. macOS 14 or later, Apple silicon.