This server provides integration with Linear's issue tracking system through the Model Context Protocol (MCP), enabling Large Language Models to interact with Linear issues. The server allows you to create, update, search, and comment on Linear issues directly through AI assistants like Claude.
To install the Linear MCP server for Claude Desktop automatically via Smithery:
npx @smithery/cli install linear-mcp-server --client claude
Create or get a Linear API key for your team: https://linear.app/YOUR-TEAM/settings/api
Add server config to Claude Desktop:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"linear": {
"command": "npx",
"args": [
"-y",
"linear-mcp-server"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
Use the linear_create_issue
tool to create new Linear issues:
Required inputs:
- title (string): Issue title
- teamId (string): Team ID to create issue in
Optional inputs:
- description (string): Issue description (markdown supported)
- priority (number, 0-4): Priority level (1=urgent, 4=low)
- status (string): Initial status name
Use the linear_update_issue
tool to update existing issues:
Required inputs:
- id (string): Issue ID to update
Optional inputs:
- title (string): New title
- description (string): New description
- priority (number, 0-4): New priority
- status (string): New status name
Use the linear_search_issues
tool for flexible issue filtering:
Optional inputs:
- query (string): Text to search in title/description
- teamId (string): Filter by team
- status (string): Filter by status
- assigneeId (string): Filter by assignee
- labels (string[]): Filter by labels
- priority (number): Filter by priority
- limit (number, default: 10): Max results
Use the linear_get_user_issues
tool to retrieve issues assigned to a user:
Optional inputs:
- userId (string): User ID (omit for authenticated user)
- includeArchived (boolean): Include archived issues
- limit (number, default: 50): Max results
Use the linear_add_comment
tool to add comments to issues:
Required inputs:
- issueId (string): Issue ID to comment on
- body (string): Comment text (markdown supported)
Optional inputs:
- createAsUser (string): Custom username
- displayIconUrl (string): Custom avatar URL
The server also provides access to these resource endpoints:
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","linear-mcp-server"],"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",
"linear-mcp-server"
],
"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",
"linear-mcp-server"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect