Cover image
Try Now
2025-04-14

In progress

3 years

Works with Finder

0

Github Watches

0

Github Forks

0

Github Stars

Linear MCP Server

This project provides an MCP server for interacting with the Linear API, enabling integration with MCP clients like Cline, IDE extensions, and other AI tools. It provides tools for managing Linear issues, projects, and teams via the Model Context Protocol.

This package is available on npm: @touchlab/linear-mcp-integration

Current Status:

  • Personal Access Token (PAT) authentication is implemented and tested.
  • Core functionality for managing issues, projects, teams, and users via PAT has been tested.
  • OAuth 2.0 flow exists in the code but is untested and likely non-functional.

Attribution

This project is based on cline/linear-mcp. The logic is largely the same, but key parts of the internals have been modified after testing.

NPM Package

Setup Guide

1. Authentication (Required)

This server requires a Linear Personal Access Token (PAT).

  1. Go to your Linear workspace settings: Account > Security & access.

Step1

  1. Under the Personal API keys section, click New API key.

Step2

  1. Give the key a descriptive label (e.g., "MCP Server Key"). For Permissions select Full Access. For team access select All teams you have access to

Step3

  1. Copy the generated key immediately (it won't be shown again).

Step4

  1. You will need to provide this key to the server using the LINEAR_ACCESS_TOKEN environment variable when running it (see Step 2).

2. Running the Server

You can run the server directly using npx without cloning the repository, or install it globally.

Option A: Using npx (Recommended)

This method runs the server directly from the npm registry without global installation. Configure your MCP client (like Cline, Cursor, Claude, etc) to run the server using npx and pass the PAT via environment variables:

// Example MCP Client Configuration (e.g., Cline, Cursor, Claude)
{
  "mcpServers": {
    "linear": {
      "command": "npx", 
      "args": ["@touchlab/linear-mcp-integration"],
      "env": {
        "LINEAR_ACCESS_TOKEN": "lin_api_your_personal_access_token"
      }
    }
  }
}

Option B: Global Installation (Less Common)

If you prefer, you can install the package globally:

npm install -g @touchlab/linear-mcp-integration

Then, you can run it directly from your terminal (you still need to provide the environment variable):

LINEAR_ACCESS_TOKEN=YOUR_PAT

(Note: Global installation is generally less preferred for server processes unless you have a specific need.)

3. Authentication Methods Details

  • Personal Access Token (PAT) - Required & Tested: This is the primary and tested authentication method. Follow the steps in Section 1.
  • OAuth Flow (Untested / Non-Functional): The code includes handlers for OAuth (linear_auth, linear_auth_callback), but this flow has not been tested and requires further development to be considered functional. Contributions welcome!

Available Tools

The server currently supports the following tools (tested with PAT authentication unless noted):

  • Authentication (OAuth - Untested):
    • linear_auth: Initiate OAuth flow (Untested)
    • linear_auth_callback: Handle OAuth callback (Untested)
  • Issues:
    • linear_create_issue: Create a single issue.
    • linear_create_issues: Create multiple issues in bulk.
    • linear_search_issues: Search issues (filter by title currently).
    • linear_delete_issue: Delete a single issue.
  • Projects:
    • linear_create_project_with_issues: Create a project and associated issues.
    • linear_get_project: Get project details by ID.
    • linear_search_projects: Search projects by exact name match.
  • Teams:
    • linear_get_teams: Get details for all teams.
  • Users:
    • linear_get_user: Get information about the authenticated user.

(Note: Bulk delete and bulk update functionality has been removed.)

Development (For Contributors)

If you want to run the MCP server locally first run these commands:

# Clone the repository
# git clone https://github.com/touchlab/linear-mcp-integration.git
# cd linear-mcp-integration

# Install dependencies
npm install

# Build the server
npm run build

# Start the server (requires LINEAR_ACCESS_TOKEN in .env or environment)
npm start

Then update your MCP configuration to point to the built index.js.

// Example MCP Client Configuration (e.g., Cline, Cursor, Claude)
{
  "mcpServers": {
    "linear": {
      "command": "node",
      "args": ["/absolute/path/to/your/linear-mcp-integration/build/index.js"],
      "env": {
        "LINEAR_ACCESS_TOKEN": "lin_api_your_personal_access_token"
      }
    }
  }
}    

Your client should now be able to access your MCP server.

Contributing

This fork of Cline's version is maintained by Touchlab.

Contributions are welcome, especially for improving or fully implementing the OAuth 2.0 flow. Please feel free to open issues or pull requests on the touchlab/linear-mcp-integration repository.

相关推荐

  • av
  • Effortlessly run LLM backends, APIs, frontends, and services with one command.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的LLM资料总结(Agent框架、辅助编程、数据处理、模型训练、模型推理、o1 模型、MCP、小语言模型、视觉语言模型) | Summary of the world's best LLM resources.

  • 1Panel-dev
  • 🔥 1Panel provides an intuitive web interface and MCP Server to manage websites, files, containers, databases, and LLMs on a Linux server.

  • rulego
  • ⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.

  • Azure
  • This repository is for development of the Azure MCP Server, bringing the power of Azure to your agents.

  • Onelevenvy
  • Flock is a workflow-based low-code platform for rapidly building chatbots, RAG, and coordinating multi-agent teams, powered by LangGraph, Langchain, FastAPI, and NextJS.(Flock 是一个基于workflow工作流的低代码平台,用于快速构建聊天机器人、RAG、Agent和Muti-Agent应用,采用 LangGraph、Langchain、FastAPI 和 NextJS 构建。)

  • caio-moliveira
  • This project was created to demonstrate how we can connect with different Model Context Protocols (MCPs).

    Reviews

    3 (8)
    Avatar
    user_EvSN3E6z
    2025-04-23

    As an avid user of the linear-mcp-integration by touchlab, I am thoroughly impressed with its seamless integration capabilities. This product has significantly streamlined our workflow, making project management more efficient and coherent. It's an essential tool for anyone looking to enhance their MCP application experience. Highly recommended!

    Avatar
    user_6qDF0g1Q
    2025-04-23

    I've been using the linear-mcp-integration by touchlab and it's simply phenomenal. The seamless integration enhances productivity and streamlines workflows effortlessly. Kudos to the team for creating such a user-friendly and efficient product! Highly recommend for anyone looking to optimize their processes.

    Avatar
    user_RzscfmNu
    2025-04-23

    As a devoted user of the linear-mcp-integration by touchlab, I am thoroughly impressed with its seamless integration capabilities and user-friendly interface. This product has significantly streamlined my workflow and increased my productivity. Highly recommended for anyone looking to enhance their MCP applications.

    Avatar
    user_c0XtdATo
    2025-04-23

    As a loyal user of the Linear-MCP-Integration by Touchlab, I can confidently say it's a game-changer in streamlining my workflow. The seamless integration and intuitive interface significantly boost productivity. Highly recommended for anyone looking to optimize their MCP experience!

    Avatar
    user_izXLgYEo
    2025-04-23

    I recently started using the linear-mcp-integration by touchlab, and it has completely transformed my workflow. This integration is seamless and has significantly improved my productivity. The interface is user-friendly, and the functionality is robust, catering to all my needs efficiently. Highly recommend this for anyone looking to streamline their tasks and manage projects more effectively.

    Avatar
    user_2MfNr71y
    2025-04-23

    As a dedicated user of the linear-mcp-integration by Touchlab, I find it incredibly efficient and easy to use. The seamless integration enhances productivity and the user interface is intuitive. The support from Touchlab is also top-notch, making the overall experience delightful. Highly recommend it to anyone looking to streamline their MCP applications!

    Avatar
    user_YyrdiBmM
    2025-04-23

    As a loyal user of the Linear MCP Integration by Touchlab, I have to say this product is a game-changer. Its seamless integration with Linear enhances productivity and streamlines workflows effortlessly. The interface is intuitive, and the efficiency boost is remarkable. Highly recommend it to anyone looking to improve their project management capabilities!

    Avatar
    user_2jl6T0oW
    2025-04-23

    As a dedicated user of the linear-mcp-integration by touchlab, I must say it has greatly streamlined my workflow. The seamless integration and user-friendly interface save me a lot of time. This tool is essential for anyone looking to enhance productivity with MCP applications. Highly recommended!