- Explore MCP Servers
- mcp-linear
Mcp Linear
What is Mcp Linear
mcp-linear is a Deno 2.0 implementation of an MCP server designed for integration with Linear’s issue tracking functionality, providing a standardized interface for AI models.
Use cases
Use cases for mcp-linear include automating issue tracking processes, integrating AI-driven insights into Linear, and enhancing project management workflows.
How to use
To use mcp-linear, clone the repository and run ‘just post-clone’ to set up git hooks. Use ‘just dev’ to run the development server and ‘deno task start’ to start the server. Various commands are available for formatting, linting, and testing.
Key features
Key features include MCP protocol endpoints for Linear functionality, support for searching issues, reading details, updating, and commenting, and a clean architecture based on functional programming principles.
Where to use
mcp-linear can be used in software development environments where integration with Linear’s issue tracking is required, particularly in projects involving AI models.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Mcp Linear
mcp-linear is a Deno 2.0 implementation of an MCP server designed for integration with Linear’s issue tracking functionality, providing a standardized interface for AI models.
Use cases
Use cases for mcp-linear include automating issue tracking processes, integrating AI-driven insights into Linear, and enhancing project management workflows.
How to use
To use mcp-linear, clone the repository and run ‘just post-clone’ to set up git hooks. Use ‘just dev’ to run the development server and ‘deno task start’ to start the server. Various commands are available for formatting, linting, and testing.
Key features
Key features include MCP protocol endpoints for Linear functionality, support for searching issues, reading details, updating, and commenting, and a clean architecture based on functional programming principles.
Where to use
mcp-linear can be used in software development environments where integration with Linear’s issue tracking is required, particularly in projects involving AI models.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
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
Getting Started
Prerequisites
- Node.js (v18 or later)
- Linear API key
Installation
- Clone the repository
- Install dependencies
npm install
- Create a
.envfile in the root directory with your Linear API key
LINEAR_API_KEY=your_linear_api_key_here
Running the Server
Start the server:
npm start
For development with file watching:
just dev
For development with debug logging:
just debug
Or set environment variables manually:
LOG_LEVEL=DEBUG NODE_ENV=development node src/index.js
Logs 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 start
-
Visit 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.js
- Click “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 configuration
Available 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.):
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.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










