Skip to content
← All guides

Linear MCP server security: what it can access

Linear’s hosted MCP server can read and change issues, projects and comments. See its read-only URL, OAuth scopes and how to limit it in Claude Code and Codex.

4 min read

The Linear MCP server is hosted and managed by Linear at https://mcp.linear.app/mcp. It signs in with OAuth 2.1, or with a bearer token or Linear API key. By default it can find, create and update issues, projects and comments. For a read-only connection, use https://mcp.linear.app/mcp/readonly, which Linear says exposes only read tools.

Who runs it and how it signs in

Linear describes the server as centrally hosted and managed, and takes feedback through its support channel. There is nothing to install. The SSE endpoint at https://mcp.linear.app/sse is deprecated, so use the Streamable HTTP URL.

There are three ways to authenticate.

  • Interactive OAuth 2.1 with dynamic client registration.
  • A bearer token or Linear API key in an Authorization: Bearer <yourtoken> header, which skips the interactive flow.
  • For enterprises, Okta managed authentication and Claude-issued authentication (beta).

Members keep their existing Linear permissions, so the server can reach what the signed-in account can reach. Linear’s docs note that bearer tokens and API keys bypass the interactive flow, so scope them carefully.

What the tools can do

Linear’s page describes tools for finding, creating and updating objects in Linear such as issues, projects and comments, and its intro mentions documents. It does not list individual tool names. Run /mcp in your client after connecting to see the current names, and don’t guess them in rules. Use a server-wide pattern until you have checked.

CapabilityExamples from the docs
ReadFind issues, projects, comments
WriteCreate and update issues, projects, comments

Linear’s docs don’t describe delete tools either way.

Limit it at the server

Linear documents three ways to get read-only access.

  1. Connect to https://mcp.linear.app/mcp/readonly.
  2. Use /mcp and request only the read OAuth scope. Linear says tokens with the read scope can’t reach write APIs.
  3. Create a Linear API key with only the Read permission.

Prefer these over a rule in your agent, because a server-side limit still holds when a client or config changes.

Risks that remain

  • Issue titles, descriptions, comments and linked documents are written by many people, including customers and external reporters. They can carry instructions an agent may follow.
  • A write-capable connection can edit or close many issues quickly.
  • OAuth connections have a 25-day refresh window. After that, the client must reconnect. An HTTP 401 with error="invalid_token" means the token is no longer valid.
  • Multiple workspaces need separate authentication contexts.

Limit it in Claude Code

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

Claude Code stores that entry in ~/.claude.json for the current project by default. Use --scope project to write .mcp.json for your team, or --scope user for all your projects. For a connection that can write, require a prompt:

{
  "permissions": {
    "ask": ["mcp__linear__*"]
  }
}

Put the rule in .claude/settings.json or ~/.claude/settings.json. Claude Code checks deny rules first, then ask, then allow. The mcp__linear__* pattern matches every tool from a server named linear.

Limit it in Codex

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

Codex defaults auth to oauth for HTTP servers. If you use a token, set bearer_token_env_var and keep the key in your environment. After you list the tool names, enabled_tools and disabled_tools can narrow a read-write connection. The docs also describe default_tools_approval_mode with auto, prompt, writes or approve.

Checklist

  1. Start on the /mcp/readonly URL.
  2. Use the read scope or a Read-only API key if you use a token.
  3. Treat issue and comment text as untrusted input.
  4. Keep API keys out of committed config files.
  5. For write access, ask before every tool, then review the issues changed in Linear afterward.

Checked against the vendor documentation on November 25, 2026. Linear MCP docs · Claude Code MCP · Claude Code permissions · Codex MCP

Where Excellent fits

Excellent’s free scan reads supported logs on the Mac and reports findings for review. It reads the session logs of Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code. It does not inspect MCP servers themselves. For a local report without installing an app, run the free scan. See a sample report. If a key ends up in a log, read Keeping keys and your email out of agent logs.

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Agent coverage · pricing. Pro is US-only for now.

Related guides

View all