Skip to main content
Glama

Linear MCP Server

An MCP server for interacting with Linear's API. This server provides a set of tools for managing Linear issues, projects, and teams through Cline.

Setup Guide

1. Environment Setup

  1. Clone the repository

  2. Install dependencies:

    npm install
  3. Copy .env.example to .env:

    cp .env.example .env

2. Authentication

The server supports two authentication methods:

  1. Go to Linear Settings

  2. Navigate to the "Security & access" section

  3. Find the "Personal API keys" section

  4. Click "New API key"

  5. Give the key a descriptive label (e.g. "Cline MCP")

  6. Copy the generated token immediately

  7. Add the token to your .env file:

    LINEAR_API_KEY=your_api_key

OAuth Flow (Alternative) NOT IMPLEMENTED

  1. Create an OAuth application at https://linear.app/settings/api/applications

  2. Configure OAuth environment variables in .env:

    LINEAR_CLIENT_ID=your_oauth_client_id
    LINEAR_CLIENT_SECRET=your_oauth_client_secret
    LINEAR_REDIRECT_URI=http://localhost:3000/callback

3. Running the Server

  1. Build the server:

    npm run build
  2. Start the server:

    npm start

4. Cline Integration

  1. Open your Cline MCP settings file:

    • macOS: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

    • Windows: %APPDATA%/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

    • Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

  2. Add the Linear MCP server configuration:

    {
      "mcpServers": {
        "linear": {
          "command": "node",
          "args": ["/path/to/linear-mcp/build/index.js"],
          "env": {
            "LINEAR_API_KEY": "your_personal_access_token"
          },
          "disabled": false,
          "autoApprove": []
        }
      }
    }

Related MCP server: Linear MCP Server

Available Actions

The server currently supports the following operations:

Issue Management

  • ✅ Create issues with full field support (title, description, team, project, etc.)

  • ✅ Update existing issues (priority, description, etc.)

  • ✅ Delete issues (single or bulk deletion)

  • ✅ Search issues with filtering

  • ✅ Associate issues with projects

  • ✅ Create parent/child issue relationships

Project Management

  • ✅ Create projects with associated issues

  • ✅ Get project information

  • ✅ Associate issues with projects

Team Management

  • ✅ Get team information (with states and workflow details)

  • ✅ Access team states and labels

Authentication

  • ✅ API Key authentication

  • ✅ Secure token storage

Batch Operations

  • ✅ Bulk issue creation

  • ✅ Bulk issue deletion

Bulk Updates (In Testing)

  • 🚧 Bulk issue updates (parallel processing implemented, needs testing)

Features in Development

The following features are currently being worked on:

Issue Management

  • 🚧 Comment functionality (add/edit comments, threading)

  • 🚧 Complex search filters

  • 🚧 Pagination support for large result sets

Metadata Operations

  • 🚧 Label management (create/update/assign)

  • 🚧 Cycle/milestone management

Project Management

  • 🚧 Project template support

  • 🚧 Advanced project operations

Authentication

  • 🚧 OAuth flow with automatic token refresh

Performance & Security

  • 🚧 Rate limiting

  • 🚧 Detailed logging

  • 🚧 Load testing and optimization

Development

# Install dependencies
npm install

# Run tests
npm test

# Run integration tests (requires LINEAR_API_KEY)
npm run test:integration

# Build the server
npm run build

# Start the server
npm start

Integration Testing

Integration tests verify that authentication and API calls work correctly:

  1. Set up authentication (API Key recommended for testing)

  2. Run integration tests:

    npm run test:integration

For OAuth testing:

  1. Configure OAuth credentials in .env

  2. Remove .skip from OAuth tests in src/__tests__/auth.integration.test.ts

  3. Run integration tests

Available Tools

13 tools
linear_authC

Initialize OAuth flow with Linear

Inputs: clientId (required), clientSecret (required), redirectUri (required).

linear_auth_callbackC

Handle OAuth callback

Inputs: code (required).

linear_bulk_update_issuesC

Update multiple issues at once

Inputs: issueIds (required), update (required).

linear_create_issueC

Create a new issue in Linear

Inputs: title (required), description (required), teamId (required), assigneeId, +5 more.

linear_create_issuesA

Create multiple issues at once

Inputs: issues (required).

linear_create_project_with_issuesB

Create a new project with associated issues. Note: Project requires teamIds (array) not teamId (single value).

Inputs: project (required), issues (required).

linear_delete_issueC

Delete an issue

Inputs: id (required).

linear_delete_issuesC

Delete multiple issues

Inputs: ids (required).

linear_get_projectC

Get project information

Inputs: id (required).

linear_get_teamsA

Get all teams with their states and labels

Inputs: no named parameters.

linear_get_userB

Get current user information

Inputs: no named parameters.

linear_search_issuesB

Search for issues with filtering and pagination

Inputs: query, teamIds, assigneeIds, states, +4 more.

linear_search_projectsC

Search for projects by name

Inputs: name (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools have distinct purposes targeting specific resources and actions, but there is some overlap between linear_create_issue and linear_create_issues, and between linear_delete_issue and linear_delete_issues, which could cause confusion about when to use the singular vs. plural versions. The descriptions clarify the bulk operations, but the naming similarity still creates minor ambiguity.

    Naming Consistency5/5

    All tools follow a consistent snake_case naming pattern with a 'linear_' prefix and clear verb_noun structure (e.g., linear_create_issue, linear_search_issues). The naming is highly predictable and uniform across all 13 tools, making it easy for agents to understand and use them.

    Tool Count5/5

    With 13 tools, the server is well-scoped for managing Linear issues, projects, teams, and users, covering core operations like CRUD, search, and bulk actions. Each tool appears to earn its place without feeling bloated or insufficient for the domain of project management and issue tracking.

    Completeness4/5

    The toolset provides strong coverage for issue and project management, including CRUD operations, search, and bulk actions, with no major dead ends. However, there are minor gaps, such as missing update operations for projects or teams, and no tools for managing issue comments or attachments, which could limit some workflows.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables comprehensive issue tracking and project management through Linear's GraphQL API. Supports creating and managing issues, organizing projects and sprints, team collaboration, and roadmap planning for modern development workflows.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables LLMs to interact with Linear's issue tracking system, including creating, updating, searching issues, adding comments, and accessing resources via the Linear API.
      MIT