Linear

by dvcrn

2 stars
427 downloads
Not rated
GitHub

About

a (working!) MCP server for accessing Linear with multiple workspaces support

Details

Author
dvcrn
GitHub stars
2
Downloads
427
Categories
Developer Tools

- Create, update, delete, and search issues with full field support
- Manage comments: create, update, delete, and resolve/unresolve
- Create and manage projects with milestones
- View team information, states, and workflow details
- Batch operations for bulk issue creation and deletion
- Support for multiple Linear workspaces via TOOL_PREFIX

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Linear
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Obtain a Linear API token (developer token or personal API key) and add the server configuration to your Cline MCP settings JSON file. The server runs automatically via npx when needed.

linear_auth_callback

Handle OAuth callback

linear_create_issue

Create a new issue in Linear

linear_create_project_with_issues

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

linear_bulk_update_issues

Update multiple issues at once

linear_edit_issue

Edit an existing issue, updating any of its fields. Note: When setting projectMilestoneId, you must also set projectId.

linear_search_issues

Search for issues with filtering and pagination

linear_search_issues_by_identifier

Search for issues by their identifiers (e.g., ["ENG-78", "ENG-79"])

linear_get_issue

Get a single issue by identifier, including all comments

linear_get_teams

Get all teams with their states and labels

linear_get_user

Get current user information

linear_delete_issue

Delete an issue

linear_get_project

Get project information

linear_list_projects

List all projects or filter them by criteria

linear_create_issues

Create multiple issues at once

linear_create_comment

Creates a new comment on an issue

linear_update_comment

Updates an existing comment

linear_delete_comment

Deletes a comment

linear_resolve_comment

Resolves a comment

linear_unresolve_comment

Unresolves a comment

linear_create_customer_need_from_attachment

Creates a new customer need from an attachment

linear_get_project_milestones

Get milestones for a project with filtering and pagination

linear_create_project_milestone

Create a new project milestone

linear_update_project_milestone

Update a project milestone

linear_delete_project_milestone

Delete a project milestone

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "linear": {
            "linear": {
                "command": "npx",
                "args": [
                    "mcp-server-linear"
                ],
                "env": {
                    "LINEAR_ACCESS_TOKEN": "your_linear_api_token_here"
                }
            }
        }
    }
}

McpServers

{
    "linear": {
        "command": "npx",
        "args": [
            "mcp-server-linear"
        ],
        "env": {
            "LINEAR_ACCESS_TOKEN": "your_linear_api_token_here"
        }
    }
}

Company1-linear

{
    "command": "npx",
    "args": [
        "mcp-server-linear"
    ],
    "env": {
        "LINEAR_ACCESS_TOKEN": "your_company1_linear_token_here",
        "TOOL_PREFIX": "company1"
    }
}

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. Get Linear API Token

You can use either a Developer Token or a Personal API Key.

Option 1: Developer Token
1. Go to Linear: Workspace Settings > API > OAuth application > Create or select an application (e.g., "Cline MCP").
2. Under "Developer Token", click "Create & copy token".
3. Select "Application" as the actor and copy the generated token.

Option 2: Personal API Key
1. Go to Linear: Your Personal Settings > API > Personal API Keys.
2. Click "Create key", give it a label (e.g., "Cline MCP"), and copy the generated key.

2. Configure Cline MCP

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": "npx",
"args": ["-y", "mcp-server-linear"],
"env": {
"LINEAR_ACCESS_TOKEN": "your_linear_api_token_here"
},
"disabled": false,
"autoApprove": []
}
}
}

That's it! The server will be automatically downloaded and run through npx when needed.

If you use Cline/Roo, you can also simply tell it install the MCP from https://github.com/dvcrn/mcp-server-linear and it'll do the rest.

Available Actions

The server currently supports the following operations:

Issue Management

- ✅ Create issues with full field support (title, description, team, project, parent/child relationships, etc.) - ✅ Update existing issues (priority, description, etc.) - ✅ Delete issues (single or bulk deletion) - ✅ Search issues with filtering and by identifier - ✅ Associate issues with projects - ✅ Create parent/child issue relationships - ✅ Comment management (create, update, delete comments) - ✅ Comment resolution handling (resolve/unresolve comments) - ✅ Create customer needs from attachments

Project Management

- ✅ Create projects with associated issues - ✅ Get project information - ✅ List all projects with optional filtering - ✅ Associate issues with projects - ✅ Project milestone management (create, update, delete) - ✅ List and filter project milestones

Team Management

- ✅ Get team information (with states and workflow details) - ✅ Access team states and labels

Authentication

- ✅ Personal Access Token (PAT) 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

- 🚧 Complex search filters - 🚧 Pagination support for large result sets

Metadata Operations

- 🚧 Label management (create/update/assign)

Project Management

- ✅ Project milestone management - 🚧 Project template support - 🚧 Advanced project operations

Authentication

- 🚧 OAuth flow with automatic token refresh

Performance & Security

- 🚧 Rate limiting - 🚧 Detailed logging - 🚧 Load testing and optimization

Parent/Child Issue Relationships

The server supports creating and managing hierarchical relationships between issues:

Creating Sub-issues

You can create sub-issues by specifying a parent issue's UUID when creating a new issue:
{
  "title": "Sub-task Implementation",
  "description": "Implement this specific part of the parent task",
  "teamId": "team_uuid",
  "parentId": "parent_issue_uuid"
}

Note: The parentId must be the UUID of the parent issue, not the issue identifier (e.g., use the UUID, not "ENG-123").

Using Multiple Linear Workspaces

You can connect to multiple Linear workspaces by adding the Linear MCP server multiple times with different TOOL_PREFIX values. This allows you to work with separate Linear workspaces within the same Cline environment.

Configuration Example

{
  "mcpServers": {
    "company1-linear": {
      "command": "npx",
      "args": ["mcp-server-linear"],
      "env": {
        "LINEAR_ACCESS_TOKEN": "your_company1_linear_token_here",
        "TOOL_PREFIX": "company1"
      },
      "disabled": false,
      "autoApprove": []
    },
    "company2-linear": {
      "command": "npx",
      "args": ["mcp-server-linear"],
      "env": {
        "LINEAR_ACCESS_TOKEN": "your_company2_linear_token_here",
        "TOOL_PREFIX": "company2"
      },
      "disabled": false,
      "autoApprove": []
    },
    "company3-linear": {
      "command": "npx",
      "args": ["mcp-server-linear"],
      "env": {
        "LINEAR_ACCESS_TOKEN": "your_company3_linear_token_here",
        "TOOL_PREFIX": "company3"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

How It Works

When you set a TOOL_PREFIX value:

1. All tool names are prefixed with it (e.g., company1_linear_create_issue)
2. Tool descriptions include the prefix (e.g., "For 'company1' Linear workspace: Create a new issue")

This makes it clear which workspace each tool is operating on and prevents conflicts between different Linear instances.

Contributing

If you want to contribute to the development of this MCP server, follow these steps:

1. Clone the repository
2. Install dependencies:

   npm install

3. Copy .env.example to .env:
   cp .env.example .env

4. Add your Linear API token to .env:
   LINEAR_ACCESS_TOKEN=your_personal_access_token

Development

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.