Linear MCP Server
Integrates with Linear to provide tools for retrieving ticket details, listing assigned issues with filtering, adding comments, creating issues, and fetching teams.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Linear MCP Server show my open issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Linear MCP Server
Overview
This project implements a Model Context Protocol (MCP) server that acts as a bridge between Claude and the Linear task/issue management system. It allows Claude to interact with Linear through the following tools:
get_ticket - Retrieve detailed information about a specific Linear ticket
get_my_issues - List issues assigned to the current user with filtering by state
add_comment - Add comments to Linear tickets
create_issue - Create a new issue in Linear
get_teams - Retrieve available teams for reference
Related MCP server: Linear MCP Server
Installation
No direct installation is needed. The package will be automatically downloaded and used by your Claude integration when configured properly.
Usage
Obtain a Linear API key from your Linear account settings - click 'New API key' under 'Personal API keys'.
Configure the MCP server in your code editor as shown below.
Using with VS Code
One click install:
Add this to your settings JSON file:
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "linear_api_key",
"description": "Linear API Key",
"password": true
}
],
"servers": {
"linear": {
"command": "npx",
"args": [
"-y",
"@larryhudson/linear-mcp-server"
],
"env": {
"LINEAR_API_KEY": "${input:linear_api_key}"
}
}
}
}
}Using with Cursor IDE
Add this to the MCP config JSON file:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": ["-y", "@larryhudson/linear-mcp-server"],
"env": {
"LINEAR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Using with Claude Desktop App
Add this to your MCP configuration JSON file:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": [
"-y",
"@larryhudson/linear-mcp-server"
],
"env": {
"LINEAR_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Using with Cline VS Code Extension
Add this to the MCP config JSON file:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": ["-y", "@larryhudson/linear-mcp-server"],
"env": {
"LINEAR_API_KEY": "<YOUR_API_KEY>"
},
"disabled": false,
"autoApprove": []
}
}
}Environment Variables
LINEAR_API_KEY- Your Linear API key (required)
How It Works
The server is built on the following key technologies:
Model Context Protocol (MCP) - Framework for allowing AI assistants to interact with external tools and APIs
Linear SDK - Client library for communicating with the Linear API
Node.js - JavaScript runtime environment
Zod - Type validation library for tool parameters
Key Features
Ticket Retrieval
Gets comprehensive ticket details including status, priority, assignee, and team
Fetches the full description and all comments
Processes Markdown content with embedded images
Downloads and includes images from ticket descriptions
Issue Listing
Retrieves issues assigned to the current user
Filters by state (active, backlog, completed, canceled, or all)
Returns a formatted table with key information about each issue
Comment Addition
Allows adding new comments to existing tickets
Provides confirmation of successful comment creation
Technical Implementation Details
Image Handling
Extracts image URLs from Markdown using regular expressions
Downloads images to a local temp directory
Converts images to base64 for inclusion in MCP responses
Uses MD5 hashing of URLs to create unique filenames
Linear API Integration
Authenticates using a Linear API key
Retrieves issues, tickets, comments, and user information
Formats data for human-readable display
Error Handling
Gracefully handles API errors, missing tickets, and download failures
Provides meaningful error messages to the user
Running the Server
The server communicates with Claude through standard input/output (stdio) using the MCP protocol. It requires:
A Linear API key (configured in the code)
Node.js runtime environment
The dependency packages specified in package.json
Project Structure
This is a relatively simple Node.js application with a single main source file (index.ts) that defines the MCP server, tools, and associated helper functions. It uses TypeScript for type safety and better developer experience.
Dependencies
@modelcontextprotocol/sdk: Core MCP implementation@linear/sdk: Linear API clientdotenv: Environment variable managementnode-fetch: HTTP client for image downloadszod: Schema validation for tool parameters
Limitations and Potential Improvements
There's limited pagination support for large result sets (currently limited to 20 issues)
Error handling could be improved for various edge cases
The image downloading could benefit from better MIME type detection
Consider adding more tools for managing issues (updating status, changing assignees, etc.)
Support for attachments when creating issues or adding comments
Available Tools
6 toolsadd_commentA
Add a comment to a Linear ticket
Inputs: comment (required), ticket_id (required).
create_issueB
Create a new Linear issue
Inputs: title (required), team_id (required), priority, assignee_id, +2 more.
get_my_issuesB
Get your assigned Linear issues
Inputs: state.
get_teamsB
Get available Linear teams
Inputs: no named parameters.
get_ticketA
Get a Linear ticket by ID
Inputs: ticket_id (required).
search_issuesC
Search for Linear issues with various filters
Inputs: limit, status, is_unassigned, team_identifier, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: fetching a specific ticket, listing assigned issues, adding comments, creating issues, listing teams, and searching. The only potential overlap is between get_my_issues and search_issues, but the descriptions clearly separate the convenient personal view from general-purpose search.
All tool names follow a consistent verb_noun pattern with snake_case, such as get_ticket, add_comment, and create_issue. The verbs are varied but appropriate, and the naming style is uniform throughout.
With 6 tools, the server is well-scoped for its purpose. It includes the key operations for reading, creating, searching, and commenting on issues, plus team listing, without unnecessary bloat or missing core basics.
The server covers core read and create operations, comments, and search, but lacks update and delete for issues. This leaves a notable gap in the issue lifecycle, as agents cannot modify or close tickets, making it incomplete for comprehensive Linear workflow coverage.
Maintenance
Related MCP Connectors
Issues, projects, cycles, and roadmaps via the official Linear hosted MCP server.
Search, read and create Linear issues, projects, teams and cycles.
Linear MCP — wraps the Linear GraphQL API (OAuth)
Manage Superlist tasks and lists in plain language from any MCP-compatible AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAllows LLMs to integrate with Linear's issue tracking system, enabling them to create, update, search, and comment on issues through the Linear API.418 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to interact with Linear's issue tracking system, including creating, updating, searching issues, adding comments, and accessing resources via the Linear API.418 npmMIT
- AlicenseNot gradedqualityBmaintenanceA lightweight MCP server that enables Claude to interact with Linear via a single tool with seven actions: search, get, update, comment, create, graphql, and help.548 npm90MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for integrating Linear with Claude Code and other MCP clients. Enables issue management, project planning, and status tracking through a set of tools.-