This MCP server for Linear enables integration with the Linear task management API, providing tools to create, update, search issues, add comments, and more through the Model Context Protocol.
# Download linux binary for the latest release
RELEASE=$(curl -s https://api.github.com/repos/geropl/linear-mcp-go/releases/latest)
DOWNLOAD_URL=$(echo $RELEASE | jq -r '.assets[] | select(.name | contains("linux")) | .browser_download_url')
curl -L -o ./linear-mcp-go $DOWNLOAD_URL
chmod +x ./linear-mcp-go
# Set your Linear API key as an environment variable
# Note: Ona does not require this for setup
export LINEAR_API_KEY=your_linear_api_key
# Basic setup (Cline is the default tool)
./linear-mcp-go setup
# Setup with write access enabled
./linear-mcp-go setup --write-access
# Setup with auto-approval for read-only tools
./linear-mcp-go setup --auto-approve=allow-read-only
Check the server version:
./linear-mcp-go version
Run the server:
# Run in read-only mode (default)
export LINEAR_API_KEY=your_linear_api_key
./linear-mcp-go serve
# Run with write access enabled
./linear-mcp-go serve --write-access
These tools are available in default mode:
Search for Linear issues using various criteria:
{
"query": "login page",
"teamId": "TEAM123",
"status": "In Progress",
"limit": 5
}
Get issues assigned to a user:
{
"userId": "USER123",
"limit": 10
}
Retrieve a specific issue:
{
"issueId": "TEAM-123"
}
List all teams or filter by name:
{
"name": "Engineering"
}
These tools require the --write-access
flag:
Create new issues, including sub-issues:
{
"title": "Implement login form validation",
"team": "ENG",
"description": "Add client-side validation for the login form",
"priority": "high",
"makeSubissueOf": "ENG-42",
"labels": "bug,frontend"
}
Update an existing issue:
{
"id": "ENG-123",
"title": "Updated title",
"status": "In Progress"
}
Add a comment to an issue:
{
"issue": "ENG-123",
"body": "This issue needs more details"
}
Add a reply to an existing comment:
{
"issue": "ENG-123",
"body": "I agree with your suggestion",
"thread": "https://linear.app/.../issue/ENG-123/...#comment-abc123"
}
Reply directly to a comment (automatically determines the issue):
{
"thread": "https://linear.app/.../issue/ENG-123/...#comment-abc123",
"body": "Thanks for your feedback"
}
Get comments for an issue:
{
"issue": "ENG-123",
"limit": 10
}
Get replies to a specific comment:
{
"issue": "ENG-123",
"thread": "comment-abc123",
"limit": 5
}
Update an existing comment:
{
"comment": "comment-abc123",
"body": "Updated comment text"
}
When setting up the server with the --auto-approve
flag, you can specify:
--auto-approve=allow-read-only
: Auto-approve all read-only tools--auto-approve=tool1,tool2,...
: Auto-approve specific tools (comma-separated)To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "linear" '{"command":"./linear-mcp-go","args":["serve"]}'
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": "./linear-mcp-go",
"args": [
"serve"
]
}
}
}
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": "./linear-mcp-go",
"args": [
"serve"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect