Linear MCP Server
The Linear MCP Server enables AI models to interact with Linear issue tracking via the MCP protocol. With this server, you can:
Search and manage issues/tickets: List with filtering options, retrieve details, create new issues, and add comments
Access team information: List teams, members, and filter by various criteria
Work with projects: List projects with filtering, get detailed project information including associated issues and team members
Customize operations: Set priorities, assignees, descriptions, and other attributes when creating or managing items
Integrate with AI applications: Works with MCP Inspector, Claude Desktop, Cursor, and supports debugging functionality
Provides tools for searching, reading, updating, and commenting on issues in Linear's issue tracking system.
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 search for issues assigned to me with status 'In Progress'"
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
A Node.js implementation of an MCP server for Linear integration.
About
This MCP (Model Context Protocol) server provides a standardized interface for AI models to interact with Linear issue tracking functionality.
Key Features
Standard MCP protocol implementation for Linear using the official MCP SDK
Support for searching issues, reading details, updating, and commenting
Related MCP server: Linear MCP Server
Getting Started
Prerequisites
Node.js (v18 or later)
Linear API key
Installation
Clone the repository
Install dependencies
npm installCreate a
.envfile in the root directory with your Linear API key
LINEAR_API_KEY=your_linear_api_key_hereRunning the Server
Start the server:
npm startFor development with file watching:
just devFor development with debug logging:
just debugOr set environment variables manually:
LOG_LEVEL=DEBUG NODE_ENV=development node src/index.jsLogs will be written to the logs/mcp-linear.log file to avoid interfering with the STDIO transport.
Using with MCP Inspector
The server runs in stdio mode, which means you can connect to it with the MCP Inspector.
Start the server in one terminal:
npm startVisit the web-based inspector at: https://inspector.modelcontextprotocol.ai
Select "stdio" as the transport type
Enter the following command:
node /path/to/mcp-linear/src/index.jsClick "Connect" to connect to your running server
Usage with Claude Desktop
Add the following to your Claude Desktop configuration file (typically at
~/.config/Claude Desktop/claude_desktop_config.json):
{
"mcp": {
"servers": [
{
"name": "Linear",
"command": "node /path/to/mcp-linear/src/index.js",
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
]
}
}Usage with Cursor
For Cursor, add the following to your settings:
{
"ai.mcp.servers": [
{
"name": "Linear",
"command": "node /path/to/mcp-linear/src/index.js",
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
]
}Testing Your Integration
To verify your setup:
Configure the MCP server in your Claude Desktop or Cursor settings
Restart your application
Ask: "Search for Linear issues containing 'bug'"
The assistant should detect and use the Linear MCP server to retrieve results
Project Structure
/
├── src/ # Source code
│ ├── effects/ # Effects implementation
│ │ ├── linear/ # Linear API effects
│ │ │ └── types/ # Linear type definitions
│ │ └── logging/ # Logging effects for safe logging with STDIO
│ ├── tools/ # MCP tools implementation
│ │ ├── types/ # Tool type definitions
│ │ └── utils/ # Tool utility functions
│ ├── utils/ # Utility modules
│ │ └── config/ # Configuration utilities
│ └── index.js # Main entry point
├── docs/ # Documentation
│ └── llm_context/ # Documentation for LLMs
├── logs/ # Log files (created at runtime)
└── package.json # Project configurationAvailable Tools
The MCP server exposes the following tools:
list_issues- List Linear issues (also called tickets) with various filtering options (assignee, status, etc.)get_issue- Get detailed information about a specific Linear issue by IDlist_members- List Linear team members with optional filtering by namelist_projects- List Linear projects with optional filtering by team, name, and archive statusget_project- Get detailed information about a specific Linear project including issues, members and morelist_teams- List Linear teams with details about their members, projects, and issuesadd_comment- Add a comment to a specific Linear issuecreate_issue- Create a new issue in Linear with customizable title, description, priority, and assignee
For backward compatibility, the following tool aliases are also available:
list_tickets- Alias forlist_issuesget_ticket- Alias forget_issue
Troubleshooting
If you're having issues with the Linear MCP server:
Check your Linear API key: Make sure you've set a valid Linear API key in your .env file or environment variables. Linear API keys should start with "linapi".
Enable debug logging:
a. When starting the MCP server:
just debug # or LOG_LEVEL=DEBUG NODE_ENV=development node src/index.jsb. In your client configuration (Claude Desktop, Cursor, etc.):
"env": { "LINEAR_API_KEY": "your_linear_api_key_here", "LOG_LEVEL": "DEBUG" }c. When calling tools directly, add the debug parameter:
{ "debug": true }Check log files: Examine logs in the
logs/mcp-linear.logfile for detailed error information.Verify Linear API access: Make sure your Linear API key has appropriate permissions and that you can access the Linear API directly.
Architecture
The application follows an effects-based architecture:
Effects: Side-effecting operations are isolated in the
effectsdirectory:linear: Provides access to Linear API using the official Linear SDKlogging: Safe logging that doesn't interfere with STDIO transport
Tools: MCP tool implementations that use effects for side-effects:
Each tool follows a consistent pattern with input validation using Zod
Tools are exposed through the MCP protocol via the server
Each tool can access the Linear client through the linear effect
Utils: Utility modules for configuration and common functionality
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
8 toolsadd_commentB
Add a comment to a specific Linear ticket. This tool is useful for providing feedback, status updates, or additional information on existing tickets.
Inputs: comment (required), ticketId (required), debug.
create_issueB
Create a new issue in Linear. This tool is useful for adding new tasks, bugs, or feature requests to your Linear workspace.
Inputs: teamId (required), title (required), assigneeId, debug, +4 more.
get_issueC
Get detailed information about a specific Linear issue (also called a ticket), including comments if requested.
Inputs: issueId (required), debug, includeComments.
get_projectB
Get detailed information about a Linear project including team, lead, issues, and members. Use this to see comprehensive details of a specific project.
Inputs: projectId (required), debug, includeComments, includeIssues, +2 more.
list_issuesC
List Linear issues (also called tickets) with filtering by assignee, status, and project. Use this to browse and find issues in your Linear workspace.
Inputs: assignedToMe, assignee, debug, limit, +4 more.
list_membersC
List Linear team members with optional filtering by name. This tool is useful for finding member details including usernames, display names, and emails.
Inputs: debug, limit, nameFilter, teamId.
list_projectsB
List Linear projects with optional filtering by team, name, and archive status. Shows project details including status, lead, progress, and dates.
Inputs: debug, fuzzyMatch, includeArchived, includeThroughIssues, +5 more.
list_teamsA
List Linear teams with details about their members, projects, and issues. Use this to get a high-level view of all teams in your Linear workspace.
Inputs: debug, includeMembers, includeProjects, limit, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clearly distinct purpose targeting specific resources and actions in Linear, such as adding comments, creating issues, getting issues/projects, and listing issues/members/projects/teams. There is no overlap or ambiguity between tools, making it easy for an agent to select the correct one based on the task.
All tool names follow a consistent verb_noun pattern (e.g., add_comment, create_issue, get_issue, list_issues), with verbs like 'add', 'create', 'get', and 'list' applied uniformly to appropriate nouns. There are no deviations or mixed conventions, ensuring predictable and readable naming throughout.
With 8 tools, this server is well-scoped for managing Linear issues, projects, teams, and members. Each tool earns its place by covering essential operations like CRUD for issues and listing for resources, without being too sparse or bloated, making it efficient for typical workflows.
The tool set provides strong coverage for core Linear operations, including creating and retrieving issues, adding comments, and listing issues, members, projects, and teams. However, minor gaps exist, such as missing update or delete operations for issues and projects, which agents might need to work around for full lifecycle management.
Related MCP Connectors
Search, read and create Linear issues, projects, teams and cycles.
Find and manage issues, projects, and documents in your Linear workspace.
Issues, projects, cycles, and roadmaps via the official Linear hosted MCP server.
Unofficial Linear MCP — wraps the Linear GraphQL API (OAuth)
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI models to interact with Linear for issue tracking and project management through capabilities like creating/searching issues, managing sprints, and retrieving workflow states.-
- AlicenseAqualityDmaintenanceA Model Context Protocol server that integrates with Linear, enabling AI assistants to create, update, search, and comment on issues for project management and issue tracking.56Apache 2.0
- FlicenseNot gradedqualityDmaintenanceAllows LLMs to integrate with Linear's issue tracking system, enabling them to create, update, search, and comment on issues through the Linear API.-
- AlicenseNot gradedqualityDmaintenanceProvides access to Linear's issue tracking system through a standardized Model Context Protocol interface, allowing users to create, update, search, and manage issues, projects, and comments via natural language.1MIT