Skip to main content
Glama

Legible Linear MCP

An MCP server that connects Claude Code to Linear with OAuth authentication and multi-workspace support.

Quick Start

1. Install

# Clone and build
git clone https://github.com/bleugreen/linear-mcp.git
cd linear-mcp
npm install
npm run build

# Install CLI globally (optional, for easy auth management)
npm link

2. Authenticate

# Opens browser for OAuth login
lmcp auth login

# Or if not installed globally:
node dist/cli.js auth login

3. Configure Claude Code

Add to your Claude Code MCP settings (~/.claude.json or via Claude Code settings):

{
  "mcpServers": {
    "linear-mcp": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/linear-mcp/dist/mcp-server.js"]
    }
  }
}

Restart Claude Code and you're ready to go!

Related MCP server: streamlinear

Authentication

OAuth provides a seamless authentication experience with automatic token refresh:

lmcp auth login      # Authenticate with Linear
lmcp auth status     # Check current auth status
lmcp auth list       # List connected workspaces
lmcp auth switch     # Switch active workspace
lmcp auth logout     # Remove a workspace

Credentials are stored securely in ~/.linear-mcp/credentials.json.

Multi-Workspace Support

Connect to multiple Linear workspaces and switch between them:

# Add first workspace
lmcp auth login

# Add another workspace (will show consent screen)
lmcp auth login

# Switch between them
lmcp auth switch my-company
lmcp auth switch side-project

Environment Variable (Legacy)

You can also use an API key directly:

export LINEAR_API_KEY=lin_api_YOUR_KEY_HERE

Note: OAuth credentials take priority over the environment variable.

CLI Reference

lmcp <command> [options]

Commands:
  auth login       Authenticate with Linear via OAuth
  auth logout      Remove a workspace's credentials
  auth list        List all connected workspaces
  auth switch      Switch active workspace
  auth status      Show current authentication status
  serve            Start the MCP server (default)
  help             Show help message

Environment Variables:
  LINEAR_API_KEY       Use API key instead of OAuth (fallback)
  LINEAR_WORKSPACE     Override active workspace for session
  LINEAR_CLIENT_ID     Use custom OAuth app client ID
  LINEAR_CLIENT_SECRET Use custom OAuth app client secret

Features

Core Capabilities

  • Full CRUD: Issues, comments, projects, cycles, teams, users

  • Human-Readable IDs: Use team keys (TEAM), issue identifiers (TEAM-123), project names, user emails

  • Smart Chunking: Automatically splits large content across multiple comments

  • Markdown Export: Get full issue content with all comments in clean markdown

Reliability

  • Auto Token Refresh: OAuth tokens refresh automatically before expiry

  • Rate Limiting: Respects Linear's 1,500 req/hr limit with exponential backoff

  • Query Splitting: Handles Linear's 10,000 complexity limit automatically


Troubleshooting

"Field membership argument userId required"

The server handles this automatically by using raw GraphQL queries for affected endpoints.

"Query too complex"

The server automatically splits complex queries. If you still see this error, please file an issue.

SSE Connection Drops

The server sends heartbeats every 15 seconds. Check your proxy/firewall timeout settings.

Rate Limiting

The server implements exponential backoff. If you're hitting limits frequently, consider reducing request frequency or batch operations.

Available Tools

22 tools
mcp__linear__add_commentC

Add a comment to a Linear issue

Inputs: id (required), comment (required).

mcp__linear__create_issueC

Create a new Linear issue

Inputs: title (required), teamId (required), links, cycleId, +8 more.

mcp__linear__create_projectC

Create a new project

Inputs: name (required), teamIds (required), startDate, targetDate, +1 more.

mcp__linear__create_subissueC

Create a sub-issue under a parent issue

Inputs: title (required), parentId (required), stateId, labelIds, +1 more.

mcp__linear__delete_issueC

Archive/delete a Linear issue

Inputs: id (required).

mcp__linear__file_historyC

Get Linear issues that modified a specific file in the git repository

Inputs: file_path (required), limit.

mcp__linear__get_capabilitiesB

Get the capabilities and features of the Linear MCP server

Inputs: no named parameters.

mcp__linear__get_current_userA

Get details for the currently authenticated user

Inputs: no named parameters.

mcp__linear__get_issueA

Get issue details formatted as markdown with full description, comments, and metadata

Inputs: id (required).

mcp__linear__get_projectB

Get details for a specific project

Inputs: id (required).

mcp__linear__get_teamC

Get details for a specific team

Inputs: id (required).

mcp__linear__get_userC

Get details for a specific user

Inputs: id (required).

mcp__linear__list_commentsB

List comments on a Linear issue

Inputs: issueId (required).

mcp__linear__list_issuesC

List issues in the user's Linear workspace

Inputs: limit, query, teamId, cycleId, +7 more.

mcp__linear__list_labelsC

List all labels for a team

Inputs: teamId (required).

mcp__linear__list_projectsB

List projects in the user's Linear workspace

Inputs: limit.

mcp__linear__list_statesB

List all workflow states for a team

Inputs: teamId (required).

mcp__linear__list_teamsB

List teams in the user's Linear workspace

Inputs: after, limit, query, before, +4 more.

mcp__linear__list_usersC

List users in the Linear workspace

Inputs: limit.

mcp__linear__search_issuesB

Search for issues using full text search with filters

Inputs: query (required), limit, teamId, stateId, +4 more.

mcp__linear__update_issueC

Update an existing Linear issue

Inputs: id (required), links, title, cycleId, +9 more.

mcp__linear__update_projectC

Update an existing project

Inputs: id (required), name, startDate, targetDate, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 22 tools

    Disambiguation4/5

    Each tool targets a distinct resource+action, and the get/list/create/update/delete split per resource (issue, project, team, user) is clear. The only mild overlap is list_issues vs search_issues, but the descriptions (full workspace listing vs filtered full-text search) make the boundary readable.

    Naming Consistency4/5

    Almost all tools follow a consistent snake_case verb_noun pattern (list_issues, create_issue, update_project, get_team). The single deviation is file_history, a noun-first name with no verb, which slightly breaks the pattern but remains understandable.

    Tool Count4/5

    22 tools is on the heavy side, but the domain (issues, projects, teams, users, labels, comments) genuinely justifies the breadth. Each tool earns its place with no obvious filler, though a few read-only list/get pairs could theoretically be consolidated.

    Completeness4/5

    Issues have full lifecycle coverage (list, search, get, create, subissue, update, delete) plus comments, and projects have list/get/create/update. Gaps remain: no delete_project, no label creation/management, no update/delete for comments, and teams are read-only, but these are workable omissions rather than blocking ones.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Cache-first MCP server for Linear that provides tools to search, read, create, update, and comment on issues and projects, caching data locally to reduce API calls and respect rate limits.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A lightweight MCP server that enables Claude to interact with Linear via a single tool with seven actions: search, get, update, comment, create, graphql, and help.
      540 npm
      90
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for integrating Linear with Claude Code and other MCP clients. Enables issue management, project planning, and status tracking through a set of tools.
      -