Linear MCP server

Integrates with Linear's project management platform to enable querying, creating, and updating sprint issues across teams using TypeScript and the Linear SDK.
Back to servers
Setup instructions
Provider
skspade
Release date
Feb 11, 2025
Language
TypeScript
Stats
5 stars

This MCP server enables AI models to interact with Linear for issue tracking and project management through the Model Context Protocol. It provides tools for creating issues, searching, managing sprints, and more.

Installation

Prerequisites

  • A Linear API key (obtained from Linear's settings > API section)
  • Node.js installed on your system

Setup Steps

  1. Create a .env file in the project root with your Linear API key:
LINEAR_API_KEY=your_api_key_here
  1. Install dependencies:
npm install
  1. Start the server:
# Development mode with auto-reload
npm run dev

# Production mode
npm start

Available Tools

Creating Issues

The linear_create_issue tool allows you to create new Linear issues with various parameters:

// Required parameters
{
  "title": "Fix login button styling",
  "teamId": "TEAM_ID_HERE"
}

// With optional parameters
{
  "title": "Fix login button styling",
  "teamId": "TEAM_ID_HERE", 
  "description": "The button is misaligned on mobile devices",
  "priority": 2,
  "status": "In Progress"
}

Searching Issues

Use linear_search_issues to find issues with flexible filtering:

// Simple search
{
  "query": "login button"
}

// Advanced filtering
{
  "teamId": "TEAM_ID_HERE",
  "status": "In Progress",
  "assigneeId": "USER_ID_HERE",
  "priority": 2,
  "limit": 20,
  "sortBy": "updated",
  "sortDirection": "desc"
}

Sprint Management

Get all issues in the current sprint with linear_sprint_issues:

{
  "teamId": "TEAM_ID_HERE"
}

Filter sprint issues by status with linear_filter_sprint_issues:

{
  "teamId": "TEAM_ID_HERE",
  "status": "Pending Prod Release"
}

Team Management

Search and retrieve teams with linear_search_teams:

{
  "query": "engineering"
}

Issue Details

Get comprehensive information about a specific issue:

{
  "issueId": "DATA-1284"
}

Bulk Status Updates

Update multiple issues at once:

{
  "issueIds": ["ENG-123", "DATA-456"],
  "targetStatus": "In Progress"
}

Cycle (Sprint) Management

Manage Linear cycles (sprints) with the linear_manage_cycle tool:

// Create a new cycle
{
  "action": "create",
  "teamId": "TEAM_ID_HERE",
  "name": "Sprint 42",
  "startDate": "2023-06-01",
  "endDate": "2023-06-14",
  "description": "Focus on UI improvements"
}

// Get information about a cycle
{
  "action": "get",
  "teamId": "TEAM_ID_HERE",
  "cycleId": "CYCLE_ID_HERE"
}

// List all cycles
{
  "action": "list",
  "teamId": "TEAM_ID_HERE"
}

Deployment on Smithery

You can deploy this server on Smithery.ai:

  1. Add this repository to Smithery or claim an existing server
  2. Access the Deployments tab (authenticated owners only)
  3. Configure the deployment with your Linear API key
  4. Deploy the server

Testing Locally with Docker

# Build the Docker image
docker build -t linear-mcp-server .

# Run the container with your Linear API key
docker run -e LINEAR_API_KEY=your_api_key_here linear-mcp-server

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "linear" '{"command":"npx","args":["-y","@skspade/mcp-linear-server"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "linear": {
            "command": "npx",
            "args": [
                "-y",
                "@skspade/mcp-linear-server"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "linear": {
            "command": "npx",
            "args": [
                "-y",
                "@skspade/mcp-linear-server"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later