Sponsored by Deepsite.site

Linear MCP Server

Created By
anoncam9 months ago
A Linear MCP implementation that handles all Linear resource types.
Content

Linear MCP Server

A Model Context Protocol (MCP) server for Linear, providing AI assistants with access to Linear's project management capabilities.

Features

  • Resources: Access issues, projects, teams, users, roadmaps, documents, initiatives, and more
  • Tools: Create and update issues, manage projects, search, link projects to initiatives
  • Prompts: Templates for issue creation, bug reports, feature requests, and more

Setup

Prerequisites

  • Node.js 18 or later
  • A Linear API key

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/linear-mcp.git
    cd linear-mcp
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file with your Linear API key:

    LINEAR_API_KEY=your_linear_api_key_here
    
  4. Build the project:

    npm run build
    

Usage

Command-line (stdio)

To run the server with stdio transport (for use with CLI tools that support MCP):

npm start

Or:

node dist/index.js stdio

HTTP Server (for remote connections)

To run the server as an HTTP service with Server-Sent Events (SSE):

node dist/index.js http

This will start an HTTP server on port 3000 (configurable via PORT environment variable).

Development Mode

To run in development mode with automatic reloading:

npm run dev

Claude Desktop Integration

To use this server with Claude Desktop:

  1. Build the project:

    npm run build
    
  2. In Claude Desktop, go to Settings → Advanced → MCP Configuration.

  3. Add the following configuration (adjust paths to match your installation):

    {
      "mcpServers": {
        "linear": {
          "command": "node",
          "args": [
            "/path/to/linear-mcp/dist/index.js"
          ],
          "env": {
            "LINEAR_API_KEY": "your_linear_api_key_here"
          }
        }
      }
    }
    
  4. Save the configuration and restart Claude Desktop.

Alternatively, you can copy the provided claude-desktop-config.json file and modify the paths to match your installation.

Resources

The server provides access to all major Linear entities as resources:

Core Resources

  • Issues: linear://issues and linear://issues/{id}
  • Teams: linear://teams and linear://teams/{id}
  • Projects: linear://projects and linear://projects/{id}
  • Users: linear://users and linear://users/{id}
  • Initiatives: linear://initiatives and linear://initiatives/{id}

Additional Resources

  • Roadmaps: linear://roadmaps and linear://roadmaps/{id}
  • Milestones: linear://milestones and linear://milestones/{id}
  • Documents: linear://documents and linear://documents/{id}
  • Integrations: linear://integrations and linear://integrations/{id}
  • Organization: linear://organization

Specialized Resources

  • linear://teams/{teamId}/issues - Issues for a specific team
  • linear://users/{userId}/issues - Issues assigned to a specific user
  • linear://projects/{projectId}/issues - Issues in a specific project
  • linear://teams/{teamId}/states - Workflow states for a team
  • linear://teams/{teamId}/labels - Labels for a team
  • linear://teams/{teamId}/cycles - Cycles for a team
  • linear://teams/{teamId}/members - Members of a team
  • linear://teams/{teamId}/documents - Documents for a team
  • linear://projects/{projectId}/documents - Documents for a project
  • linear://projects/{projectId}/initiative - Initiative associated with a project
  • linear://initiatives/{initiativeId}/projects - Projects associated with an initiative
  • linear://milestones/{milestoneId}/projects - Projects for a milestone
  • linear://organization/subscription - Organization subscription details
  • linear://organization/auth-services - Organization authentication services
  • linear://integration-services - Available integration services

Tools

The server provides tools for:

  • Issue Management

    • Creating new issues
    • Updating existing issues
    • Adding comments to issues
  • Project Management

    • Creating new projects
    • Updating existing projects
    • Adding issues to projects
  • Initiative Management

    • Creating initiatives
    • Linking projects to initiatives
    • Unlinking projects from initiatives
  • Search Capabilities

    • Comprehensive search across Linear entities
    • Finding issues with specific criteria

Prompts

The server provides prompt templates for:

  • Issue Related

    • Creating new issues
    • Creating bug reports
    • Creating feature requests
  • Project Related

    • Creating new projects
    • Planning projects with issues
    • Creating project status updates

Testing

Test with the MCP Inspector:

npx @modelcontextprotocol/inspector stdio -- npm start

Or, if running in HTTP mode, open the MCP Inspector in your browser and connect to your server's URL.

Environment Variables

  • LINEAR_API_KEY (required): Your Linear API key
  • SERVER_PORT (optional): Port for HTTP server (default: 3000)
  • LOG_LEVEL (optional): Logging level (default: info)

License

MIT

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
CursorThe AI Code Editor
Playwright McpPlaywright MCP server
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
WindsurfThe new purpose-built IDE to harness magic
Tavily Mcp
Serper MCP ServerA Serper MCP Server
ChatWiseThe second fastest AI chatbot™
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
DeepChatYour AI Partner on Desktop