This MCP server integrates Linear's issue tracking system with Language Learning Models via the Model Context Protocol. It allows AI assistants like Claude to interact directly with your Linear issues, create new tickets, search existing ones, and more, all through natural language conversation.
Install the Linear Integration Server for Claude Desktop automatically using Smithery:
npx -y @smithery/cli install @gerbal/linear-mcp-server-1 --client claude
Create or get a Linear API key for your team at: https://linear.app/YOUR-TEAM/settings/api
Add server configuration to Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"linear": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-linear"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
Use linear_create_issue
to create new Linear issues:
title
(string): Issue titleteamId
(string): Team ID to create issue indescription
(string): Issue description (markdown supported)priority
(number, 0-4): Priority level (1=urgent, 4=low)status
(string): Initial status nameUse linear_update_issue
to modify existing issues:
id
(string): Issue ID to updatetitle
(string): New titledescription
(string): New descriptionpriority
(number, 0-4): New prioritystatus
(string): New status nameUse linear_search_issues
to find issues with flexible filtering:
query
(string): Text to search in title/descriptionteamId
(string): Filter by teamstatus
(string): Filter by statusassigneeId
(string): Filter by assigneelabels
(string[]): Filter by labelspriority
(number): Filter by prioritylimit
(number, default: 10): Max resultsUse linear_get_user_issues
to see issues assigned to a user:
userId
(string): User ID (omit for authenticated user)includeArchived
(boolean): Include archived issueslimit
(number, default: 50): Max resultsUse linear_add_comment
to add comments to issues:
issueId
(string): Issue ID to comment onbody
(string): Comment text (markdown supported)createAsUser
(string): Custom usernamedisplayIconUrl
(string): Custom avatar URLThe server provides several resource endpoints to access Linear data:
linear-issue:///{issueId}
- View individual issue detailslinear-team:///{teamId}/issues
- View team issueslinear-user:///{userId}/assigned
- View user's assigned issueslinear-organization:
- View organization infolinear-viewer:
- View current user contextHere are some example prompts you can use with Claude Desktop:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "linear" '{"command":"npx","args":["-y","@modelcontextprotocol/server-linear"],"env":{"LINEAR_API_KEY":"your_linear_api_key_here"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-linear"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-linear"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect