Linear MCP server: setup, read-only mode and blocking deletes
Linear's official MCP server lives at https://mcp.linear.app/mcp and signs you in with OAuth. This guide covers setup in each client, the read-only URL, how sign-in works, and how to stop an agent from deleting issues, with a tested Corsair example.

Linear's official MCP server is hosted at https://mcp.linear.app/mcp. Add that URL to Claude, Cursor, Claude Code, VS Code, Codex or any client that supports remote MCP servers, sign in to Linear in the browser, and the agent can read and change your issues, projects and comments.
For an agent that should only look, use https://mcp.linear.app/mcp/readonly instead. One warning before you copy a config from an older guide: the old address, https://mcp.linear.app/sse, returned 404 when we checked on November 23, 2026. Some guides that rank for "linear mcp" still use it, and so do some AI answers.
This guide covers setup in each client, how sign-in works, what the agent can change, and how to stop it from deleting work. The last part includes a permission setup we ran on November 23, with the output.
What the Linear MCP server is
The Linear MCP server is Linear's own server, built and hosted by Linear. It follows the remote MCP spec, so you install nothing: your client connects to Linear's URL over Streamable HTTP and you sign in with OAuth.
It works with your Linear data as you, with your permissions. Speakeasy's catalog of the server lists 31 tools (checked November 23, 2026), including:
- Issues:
list_issues,get_issue, andsave_issue, which creates an issue or updates one when you pass its id. - Comments:
list_comments,save_comment,delete_comment. - Projects and milestones:
list_projects,save_project,list_milestones,save_milestone. - Documents, cycles, labels, teams and users: list and get tools, plus
create_document,update_documentandcreate_issue_label. - Attachments:
get_attachment,create_attachment,delete_attachment. - Linear's own docs:
search_documentation.
That list has no tool that deletes an issue. An agent can still close one, move it to another state or rewrite it through save_issue, and it can delete comments and attachments.
Linear MCP server URLs
Three addresses come up in guides. Here is what each one returned on November 23, 2026:
https://mcp.linear.app/mcpanswers with a sign-in request (HTTP 401 and a pointer to its OAuth metadata). This is the read-write server.https://mcp.linear.app/mcp/readonlyanswers the same way. Linear's docs say it only ever exposes read tools.https://mcp.linear.app/ssereturns 404. If a client says it can't reach Linear and your config ends in/sse, change it to/mcp.
How to add the Linear MCP server to your client
Claude
On Free and Pro plans, open Claude's settings, go to Connectors and add Linear. On Team and Enterprise plans, an owner connects Linear from the organization's connectors page. Linear's docs also describe auto-connect for Claude Team and Enterprise with Linear Business or Enterprise, which signs members in without a separate consent screen.
Claude Code
claude mcp add --transport http linear-server https://mcp.linear.app/mcpThen run /mcp inside Claude Code to sign in.
Cursor
Linear's docs have a one-click install link, and Linear is on Cursor's MCP tools page. To add it by hand, put this in ~/.cursor/mcp.json:
{
"mcpServers": {
"linear": { "url": "https://mcp.linear.app/mcp" }
}
}VS Code
Run MCP: Add Server, choose HTTP, and paste the URL, or add it to .vscode/mcp.json:
{
"servers": {
"linear": { "type": "http", "url": "https://mcp.linear.app/mcp" }
}
}Codex
codex mcp add linear --url https://mcp.linear.app/mcpCodex opens Linear to sign in. If it doesn't, run codex mcp login linear.
Clients without remote MCP support
Older clients that only start local servers can reach Linear through the mcp-remote package. Use npx as the command and -y mcp-remote https://mcp.linear.app/mcp as the arguments.
How Linear MCP authentication works
When a client first connects, the server answers 401 with a link to its OAuth metadata. The client registers itself (dynamic client registration), opens Linear's consent screen, and stores the token it gets back. We read that metadata on November 23:
- Scopes:
readandwrite. A client that asks only forreadgets a token that can't reach write APIs, which is the second way to get read-only access. - PKCE with S256, and refresh tokens, so the client can renew access without another consent screen.
- A
jwt-bearergrant. Linear's docs pair this kind of setup with enterprise sign-in through Okta or Claude-issued identity, where members skip the consent screen.
You can skip OAuth: Linear's docs say the server also takes a Linear API key or OAuth token in an Authorization: Bearer header. That suits scripts and CI, but the key acts with everything its owner can do.
Each sign-in belongs to one Linear workspace. For a second workspace, give it its own auth folder with MCP_REMOTE_CONFIG_DIR when you use mcp-remote, or check how your client stores MCP sign-ins.
How to stop an agent from deleting Linear issues
Pick the lightest option that fits:
- Read-only URL. Point the client at
/mcp/readonly. The agent can search and summarize but change nothing. This is the right choice for standups, cycle summaries and triage reports. - Read scope. Keep
/mcpbut approve only thereadscope. The result is the same, decided at sign-in. - Client approvals. Most MCP clients ask before running a tool that isn't marked read-only. That works while a person is watching. It doesn't help an agent that runs unattended, and people who click "allow" fifty times a day stop reading the prompt.
- Rules per action, in code. When an agent runs in your product or on a schedule, decide in code which actions run, which wait for a person and which never run.
Corsair takes the fourth approach. Corsair is an open-source integration layer for agents, and its Linear plugin labels each of its 18 operations with a risk level (from the plugin's catalog entry, November 23, 2026):
- 9 read: get and list for issues, comments, projects, teams and users.
- 6 write: create and update for issues, comments and projects.
- 3 destructive:
issues.delete,projects.deleteandcomments.delete, all three marked irreversible.
A permission mode maps those levels to a policy. cautious allows reads and writes and holds destructive actions for approval. You can override single actions. This setup never deletes an issue and makes every other delete wait for a person:
import Database from "better-sqlite3";
import { createCorsair } from "corsair";
import { linear } from "@corsair-dev/linear";
export const corsair = createCorsair({
database: new Database("corsair.db"),
kek: process.env.CORSAIR_KEK!,
multiTenancy: true,
permissions: { timeout: "30m", onTimeout: "deny", mode: "asynchronous" },
plugins: [
linear({
permissions: {
mode: "cautious",
overrides: {
"issues.delete": "deny",
},
},
}),
],
});We ran it on November 23 with corsair 0.2.29 and @corsair-dev/linear 0.1.8, a SQLite database made from the quick start's migration, and a fake Linear key stored for a tenant called acme. We then called three operations:
issues.delete({ id: "ENG-42" })
-> blocked: "Action 'issues.delete' is blocked by the permission policy."
No request reached Linear and no approval record was written.
projects.delete({ id: "proj_1" })
-> held: "Permission approval required."
corsair_permissions row: plugin linear, endpoint projects.delete,
args {"id":"proj_1"}, tenant_id acme, status pending, expires in 30 minutes
teams.list({})
-> sent to Linear, which answered 401 AUTHENTICATION_ERROR for the fake keyThe delete that waits stores its arguments as they were when the agent asked. When a person approves, Corsair runs exactly those arguments once, and the approval can't be used again. Corsair's Hub can host the approve and deny page, or you can build your own from the token.
When you're building Linear into your own product
Linear's MCP server works for one person and their own workspace. If your product's users connect their own Linear workspaces to your agent, you also need a token per user, stored safely, refreshed, and kept apart from every other user's.
Corsair's Linear plugin covers that. Your users sign in through Corsair's managed OAuth app for Linear, or you use your own OAuth app or their API keys. Every call runs as one tenant with corsair.withTenant(id), and the plugin receives 9 Linear webhook events (issues, comments and projects created, updated or removed) and syncs issues, comments, projects, teams and users to your database. Linear is one of 778 apps in Corsair's catalog, which held 31,054 operations on November 23, 2026, each with a risk level.
Limits
- Corsair's Linear plugin is smaller than Linear's server. It has 18 operations, for issues, comments, projects, teams and users. It has no documents, cycles, milestones, labels or attachments. If your agent needs those, use Linear's server or call Linear's GraphQL API yourself.
- For your own chat, use Linear's server. If you just want Claude or Cursor to read your issues, the official URL with the read-only option is simpler than adding a layer.
- Approvals need a database. Without the
corsair_permissionstable, Corsair denies any action that would need approval. - Read-only isn't harmless. A read-only agent can still read every issue its user can see. Choose who connects it with that in mind.
Try it
To give Claude, Cursor or ChatGPT Linear and your other apps through one address, with approvals before anything risky, claim a free address at lug.dev. To build Linear into your own product with per-user sign-in and the permission rules above, start with Corsair's permissions docs.
FAQs
What is the Linear MCP server URL?
The read-write server is https://mcp.linear.app/mcp, and the read-only one is https://mcp.linear.app/mcp/readonly. Both use Streamable HTTP and OAuth sign-in. The older https://mcp.linear.app/sse address returned 404 when we checked on November 23, 2026.
Can I use a Linear API key instead of OAuth?
Yes. Linear's docs say the server accepts a Linear API key or an OAuth access token in an Authorization: Bearer header. The key acts with everything its owner can do, so for a read-only agent the read scope or the read-only URL is the safer choice.
Can the Linear MCP server delete issues?
The tool list in Speakeasy's catalog of the server (31 tools, checked November 23, 2026) has no issue delete. It does have delete_comment and delete_attachment, and save_issue can close, move or rewrite an issue. To rule out every change, use the read-only URL.
How do I connect more than one Linear workspace?
Each sign-in belongs to one workspace, and reconnecting doesn't switch it. With mcp-remote, give each workspace its own folder through MCP_REMOTE_CONFIG_DIR and sign in to each separately. Clients that store their own MCP sign-ins have their own way to do this.
How do I make an AI agent ask before it deletes something in Linear?
Most MCP clients ask before running a tool that isn't marked read-only. For agents that run without a person watching, set the rule in code. With Corsair's cautious mode, reads and writes run, and every destructive Linear action waits until a person approves it.
Does the Linear MCP server work with ChatGPT?
You can add it as a custom MCP server in ChatGPT. On personal plans, ChatGPT currently uses only the read tools from a custom server, so it can look things up in Linear but not change them. Write tools need a Business or Enterprise/Edu workspace.