Linear MCP Integration Server
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Integrations
Provides tools for interacting with the Linear issue tracking system, enabling management of issues, teams, projects, and sprints, with capabilities for creating issues, searching, filtering by status, and retrieving workflow states.
Linear MCP Integration Server
This server provides Linear integration capabilities through the Model Context Protocol (MCP). It allows AI models to interact with Linear for issue tracking and project management.
Features
The server provides the following tools through the MCP interface:
linear_create_issue
Creates a new Linear issue with the following parameters:
title
(required): Issue titleteamId
(required): Team ID to create issue indescription
(optional): Issue description (markdown supported)priority
(optional): Priority level (0-4)status
(optional): Initial status name
linear_search_issues
Search Linear issues with flexible filtering:
query
(optional): Text to search in title/descriptionteamId
(optional): Filter by teamstatus
(optional): Filter by statusassigneeId
(optional): Filter by assigneepriority
(optional): Priority level (0-4)limit
(optional, default: 10): Max results to return
linear_sprint_issues
Get all issues in the current sprint/iteration:
teamId
(required): Team ID to get sprint issues for
linear_search_teams
Search and retrieve Linear teams:
query
(optional): Text to search in team names
linear_filter_sprint_issues
Filter current sprint issues by status and automatically filters to the current user:
teamId
(required): Team ID to get sprint issues forstatus
(required): Status to filter by (e.g. "Pending Prod Release")
linear_get_workflow_states
Get all available workflow states (statuses) for a team:
teamId
(required): Team ID to get workflow states for
linear_list_projects
Get a list of all projects available with their IDs:
teamId
(optional): Team ID to filter projects by teamlimit
(optional, default: 50): Max number of projects to return
Developer Setup
- Get your Linear API key from Linear's settings > API section
- Copiez le fichier d'exemple d'environnement :Copy
- Modifiez le fichier
.env
et ajoutez votre clé API Linear :Copy - Install dependencies:Copy
- Start the server:Copy
Docker Setup if project cloned from GitHub
You can also run this application using Docker:
- Make sure you have Docker and Docker Compose installed on your system
- Create a
.env
file with your Linear API key as described above - Build and start the container:Copy
- The server will be running inside the container and will automatically restart unless explicitly stopped
Using Docker (Simplified method with docker-compose)
- Create a
.env
file with your Linear API key:Copy - Create a
docker-compose.yml
file:Copy - Start the container:Copy
- To configure Cursor, use:
- Transport type: command
- Command: docker exec -i mcp-linear-server node dist/server.js
Docker Development
For development with Docker:
Technical Details
- Built with TypeScript and the Model Context Protocol SDK
- Uses Linear SDK for API interactions
- Includes error handling, rate limiting, and connection management
- Supports automatic reconnection with configurable retry attempts
- Implements heartbeat monitoring for connection health
- Provides detailed logging in debug mode
Error Handling
The server includes comprehensive error handling:
- API timeout protection
- Automatic reconnection attempts on connection loss
- Detailed error logging with timestamps
- Graceful shutdown handling
- Heartbeat monitoring for connection health
Dependencies
@linear/sdk
: Linear API client@modelcontextprotocol/sdk
: MCP server implementationzod
: Runtime type checking and validationdotenv
: Environment variable management- TypeScript and related development tools
For the complete list of dependencies, see package.json
.
Use in Cursor
To use this server in Cursor, you can add it as a MCP server.
Without Docker
Warning Make sure to set the
LINEAR_API_KEY
directly in the command when adding the MCP server in Cursor. This is crucial for the server to authenticate and interact with the Linear API correctly. Failure to do so will result in authentication errors and the server will not function as expected.Example:
Copy
- Open the Cursor settings menu
- Go to the "MCP Servers" section
- Click "Add MCP Server"
- Enter the following details:
- Name: linear-mcp-server
- Transport type: command
- Command: env LINEAR_API_KEY=your_linear_api_key node /path/to/your/mcp-linear-server/dist/server.js
- Click "Save"
- You should now see the Linear tool in the list of tools in Cursor.
With Docker
- Open the Cursor settings menu
- Go to the "MCP Servers" section
- Click "Add MCP Server"
- Enter the following details:
- Name: linear-mcp-server
- Transport type: command
- Command: docker exec -i mcp-linear-server node dist/server.js
- Click "Save"
- You should now see the Linear tool in the list of tools in Cursor.
Instructing Claude
When instructing Claude to use this MCP server, you can refer to the following endpoints:
Create a new Linear issue with title, description, teamId, priority, and status.
Search Linear issues with flexible filtering by query, team, status, assignee, priority, and limit.
Get all issues in the current sprint/iteration for a specific team.
Search and retrieve Linear teams by name.
Filter current sprint issues by status for a specific team.
Get all available workflow states (statuses) for a specific team.
Get a list of all projects available with their IDs, optionally filtered by team.
This server cannot be installed
Enables AI models to interact with Linear for issue tracking and project management through capabilities like creating/searching issues, managing sprints, and retrieving workflow states.
- Features
- Developer Setup
- Docker Setup if project cloned from GitHub
- Using Docker (Simplified method with docker-compose)
- Technical Details
- Error Handling
- Dependencies
- Use in Cursor
- Instructing Claude