Cover image
Try Now
2025-04-14

进行中

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
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • rulego
  • ⛓️Rulego是一种轻巧,高性能,嵌入式,下一代组件编排规则引擎框架。

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

  • n8n-io
  • 具有本机AI功能的公平代码工作流程自动化平台。将视觉构建与自定义代码,自宿主或云相结合,400+集成。

  • Onelevenvy
  • Flock是一个基于工作流程的低音平台,可快速构建聊天机器人,抹布和协调多代理团队,由Langgraph,Langchain,Langchain,Fastapi和Nextjs提供支持。(羊群工作流工作流的低代码平台,rag rag rag 用于快速构建聊天机器人、 rag temant Agent fastem temantfaster和muti-agent agagent应用

  • sigoden
  • 使用普通的bash/javascript/python函数轻松创建LLM工具和代理。

  • RockChinQ
  • 😎简单易用、🧩丰富生态 -大模型原生即时通信机器人平台| 适配QQ / 微信(企业微信、个人微信) /飞书 /钉钉 / discord / telegram / slack等平台| 支持chatgpt,deepseek,dify,claude,基于LLM的即时消息机器人平台,支持Discord,Telegram,微信,Lark,Dingtalk,QQ,Slack

  • hkr04
  • 轻巧的C ++ MCP(模型上下文协议)SDK

  • dmayboroda
  • 带有可配置容器的本地对话抹布

    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!