How to set up the Linear MCP server in Claude Code, Cursor, VS Code and Codex
Checked against the official docs:
Linear's official MCP server lets an AI assistant find, create and update your Linear issues, projects and comments. Linear hosts it at https://mcp.linear.app/mcp and you sign in with your Linear account, so there is nothing to install. This guide shows the setup for Claude Code, Cursor, VS Code, Codex and the Claude app, how to keep the assistant read-only, and fixes for the errors in Linear's FAQ. It is based on Linear's MCP server docs (checked 25 November 2026).
Get new guides by email
New MCP servers and agent tools, checked by hand. Free, unsubscribe anytime.
Paid prompt and rules packs are on the packs page.
Quick answer
- Hosted URL:
https://mcp.linear.app/mcp. It can read and change your Linear data, and you sign in with Linear in your browser the first time. - Read-only: use
https://mcp.linear.app/mcp/readonlyinstead. It only ever offers read tools. - Claude Code:
claude mcp add --transport http linear-server https://mcp.linear.app/mcp, then run/mcpinside Claude Code to sign in. - Apps that only run local servers: use
npx -y mcp-remote https://mcp.linear.app/mcpas the command.
Free: MCP Starter Checklist
One page: Inspector smoke-test, Claude Code + Cursor connect steps, and the stdout gotcha. Join the list and download it free.
Before you start
- You need a Linear account in the workspace you want to connect.
- Decide read-write or read-only. The main URL lets the assistant create and edit issues, projects and comments. If you only want it to look things up, use the read-only URL
https://mcp.linear.app/mcp/readonly. - Keep approvals on. Set your app to ask before it runs a tool, especially anything that creates or changes issues, so you can read what it's about to do.
Set it up in your app
Claude Code
claude mcp add --transport http linear-server https://mcp.linear.app/mcpThen open a Claude Code session and run /mcp to sign in. For read-only access, put https://mcp.linear.app/mcp/readonly in the command instead.
Cursor
Search for Linear in Cursor's MCP list (Customize, then MCPs) and click to add it, or use the install link on Linear's MCP page. To add it by hand, put this in ~/.cursor/mcp.json:
{
"mcpServers": {
"linear": {
"url": "https://mcp.linear.app/mcp"
}
}
}Save, turn the server on, and finish the Linear sign-in. More Cursor help: how to add an MCP server to Cursor.
VS Code
Add Linear as a remote (HTTP) server in .vscode/mcp.json:
{
"servers": {
"linear": {
"type": "http",
"url": "https://mcp.linear.app/mcp"
}
}
}Linear's own VS Code steps use mcp-remote instead: open the Command Palette, run MCP: Add Server, choose Command (stdio), enter npx mcp-remote https://mcp.linear.app/mcp, name it Linear, then start it from MCP: List Servers. More VS Code help: how to add an MCP server to VS Code.
Codex
codex mcp add linear --url https://mcp.linear.app/mcpCodex should prompt you to log in to Linear. If it does not, run codex mcp login linear. Linear notes that the Codex CLI and IDE extension share this configuration, so you only set it up once. Or add it to ~/.codex/config.toml by hand:
[mcp_servers.linear]
url = "https://mcp.linear.app/mcp"More Codex help: how to add an MCP server to Codex.
Claude (desktop and web)
On the Free and Pro plans, open Claude Settings, then Connectors, and add the Linear connector. On Team and Enterprise, go to the connectors page and connect Linear.
Apps that only run local servers
For an app that can only start a local program, Linear gives this setup, which uses the mcp-remote package to bridge to the hosted server (it needs Node.js):
{
"mcpServers": {
"linear": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.linear.app/mcp"]
}
}
}Command: npx. Arguments: -y mcp-remote https://mcp.linear.app/mcp. Environment: none.
Prompts to try
Linear's docs include longer example prompts. A few short ones in the same spirit:
- Show my assigned issues for this cycle, sorted by priority.
- Read this planning doc and propose a Linear project with issues and milestones. Show me the plan before creating anything.
- Here are my standup notes. Match each note to an existing issue and show me the comments you would add before posting them.
- Summarize what the team finished in the last completed cycle.
Asking the assistant to show its plan before it creates or edits anything is a good habit with the read-write URL.
Common problems and fixes
Internal server error when connecting
Linear's fix is to clear the saved sign-in data in your terminal, then try connecting again:
rm -rf ~/.mcp-authLinear also says you may need a newer version of Node.js.
The connection dropped or stopped responding
Disconnect and reconnect the server in your app's MCP settings. Linear says this is a routine reset and doesn't affect your Linear data or sign-in.
It asks me to sign in again
Linear sign-ins start with a 25-day refresh window that can renew when your app refreshes its credentials, so you usually don't have to reconnect every 25 days. If the server returns a 401 error with invalid_token, the sign-in is no longer valid; reconnect your app to Linear. In Claude Code, run /mcp again. See also the needs-authentication fix.
Errors on Windows with WSL
If the main URL does not work under WSL, Linear gives this fallback, which uses the older SSE address:
{"mcpServers": {"linear": {"command": "wsl","args": ["npx","-y","mcp-remote","https://mcp.linear.app/sse","--transport sse-only"]}}}Should I use the SSE address?
Only as a fallback. Linear says https://mcp.linear.app/sse is deprecated and new setups should use https://mcp.linear.app/mcp.
FAQ
Can I connect more than one Linear workspace?
Yes, but each workspace needs its own sign-in, because reconnecting doesn't switch workspaces inside an existing sign-in. With mcp-remote, give each workspace its own config folder:
MCP_REMOTE_CONFIG_DIR=~/.mcp-auth/workspace-a npx mcp-remote https://mcp.linear.app/mcp
MCP_REMOTE_CONFIG_DIR=~/.mcp-auth/workspace-b npx mcp-remote https://mcp.linear.app/mcpSign in to each one separately.
Can I use an API key instead of signing in?
Yes. The server accepts a Linear API key or OAuth token in an Authorization: Bearer header. For read-only access with your own key, create a Linear API key with only the Read permission turned on. Keep keys in environment variables, not in files you share.
What can the assistant do in Linear?
Find, create and update issues, projects and comments. Linear says more is on the way. For a wider list of servers, see the best MCP servers for Claude Code, or the Notion MCP setup guide if your specs live in Notion.
Sources
Commands and config above come from these official docs. Tools change often, so check them for the latest steps.
PluginStack is independent and not affiliated with or endorsed by the companies mentioned. Spotted something out of date? Email pluginstackai@gmail.com.
Related guides
Tools in this guide
Get new guides by email
New MCP servers and agent tools, checked by hand. Free, unsubscribe anytime.
Paid prompt and rules packs are on the packs page.