Skip to content
AI Agent How-To

Home ›MCP server setup guides

Linear MCP Server (Remote OAuth Setup)

Intermediate ~4 min read Last tested November 2026

Updated 2026-11-17

Linear’s hosted MCP server exposes issues, projects, and comments to MCP clients over Streamable HTTP. You authorize once with OAuth instead of pasting a long-lived API key into every config file. Use it from Cursor or bridge it with mcp-remote on stdio-only clients. To call MCP tools from your own Python loop, see Connect an AI agent to an MCP server. For GitHub issues instead, see GitHub MCP server. Last tested 2026-11-17.

Docs used:

Prerequisites

  • A Linear workspace you can sign into
  • Cursor (or another client listed on Linear’s MCP page)
  • Node.js if you use the mcp-remote bridge

Steps

1. Add the remote server in Cursor

Linear’s primary endpoint is https://mcp.linear.app/mcp.

Create or edit .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):

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

Cursor also offers a one-click install from Linear’s documentation page.

2. Complete OAuth

  1. Open Cursor Settings → MCP (or Tools & Integrations).
  2. Start the Linear server and follow the browser OAuth flow.
  3. Pick the workspace when prompted.

Linear uses OAuth 2.1 with dynamic client registration on this endpoint.

3. Confirm tools in chat

Ask the model to list open issues in a team you can access. If tools are missing, restart Cursor completely and check that Linear shows as connected under MCP settings.

4. Use read-only mode when appropriate

For automation that must not create or edit issues:

  • Connect to https://mcp.linear.app/mcp/readonly, which exposes only read tools, or
  • Use the standard endpoint but request the read OAuth scope where your client supports scoped consent.

5. Fallback: stdio clients with mcp-remote

Clients that only support local stdio servers can use Linear’s documented bridge:

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

For Visual Studio Code, Linear’s docs use the same npx mcp-remote command via MCP: Add Server.

6. Bearer token or API key (non-interactive)

Linear’s FAQ states you may pass Authorization: Bearer <token> instead of interactive OAuth—useful for CI or headless agents. You can use a Linear personal API key or OAuth access token; read-only keys should use the read-only endpoint or a key with only Read permission.

Never commit tokens. Store them in environment variables or your client’s secret store.

Common errors

Internal server error on first connect: Linear suggests clearing saved auth: rm -rf ~/.mcp-auth, then reconnect.

Wrong workspace after switching orgs: OAuth sessions bind to one workspace per auth store. Use separate MCP_REMOTE_CONFIG_DIR paths when Linear documents multi-workspace setups.

Streamable HTTP unsupported: Legacy clients may need the deprecated SSE URL https://mcp.linear.app/sse with mcp-remote --transport sse-only. Prefer Streamable HTTP for new setups.

WSL on Windows: If the default HTTP transport fails, Linear documents an SSE fallback inside WSL—see their FAQ.

Authorization header rejected: Expired OAuth or wrong token type. Regenerate the Linear API key or complete OAuth again.

FAQ

What is the Linear MCP URL?

Use https://mcp.linear.app/mcp for read-write access with default OAuth scopes. Use https://mcp.linear.app/mcp/readonly when you only need search and read tools.

Does Linear MCP replace the GraphQL API?

No. MCP is for tool-calling clients (IDEs, agents). Custom backends can still use the Linear GraphQL API directly.

Can Claude Code connect without a JSON file?

Yes. Linear documents: claude mcp add --transport http linear-server https://mcp.linear.app/mcp, then run /mcp in a session to finish authentication.