Linear MCP Server
Linear MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with Linear's API, enabling AI agents to manage issues, projects, and teams programmatically through the Linear platform.
Features
- Issue Management
- Create new issues with customizable properties (title, description, team, assignee, priority, labels)
- List issues with flexible filtering options (team, assignee, status)
- Update existing issues (title, description, status, assignee, priority)
- Team Management
- List all teams in the workspace
- Access team details including ID, name, key, and description
- Project Management
- List all projects with optional team filtering
- View project details including name, description, state, and associated teams
Prerequisites
- Node.js (v16 or higher)
- A Linear account with API access
- Linear API key with appropriate permissions
Installation
- Clone the repository:
- Install dependencies:
- Build the project:
Configuration
- Obtain a Linear API key:
- Go to your Linear workspace settings
- Navigate to the API section
- Generate a new API key with appropriate permissions
- Configure the MCP server in your settings file based on your client:
For Cline (VS Code Extension)
Location: ~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/cline_mcp_settings.json
For Roo Cline
Location: ~/Library/Application Support/Roo Cline/settings/cline_mcp_settings.json
For Claude Desktop
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
Available Tools
create_issue
Creates a new issue in Linear.
list_issues
Lists issues with optional filters.
update_issue
Updates an existing issue.
list_teams
Lists all teams in the workspace. No parameters required.
list_projects
Lists all projects with optional filtering.
Development
For development with auto-rebuild:
Debugging
Since MCP servers communicate over stdio, debugging can be challenging. The project includes the MCP Inspector for debugging:
This will provide a URL to access debugging tools in your browser.
Error Handling
The server includes comprehensive error handling for:
- Invalid API keys
- Missing required parameters
- Linear API errors
- Invalid tool requests
All errors are properly formatted and returned with descriptive messages to help diagnose issues.
Technical Details
Built with:
- TypeScript
- Linear SDK (@linear/sdk v37.0.0)
- MCP SDK (@modelcontextprotocol/sdk v0.6.0)
The server uses stdio for communication and implements the Model Context Protocol for seamless integration with AI agents.
Enables AI agents to manage issues, projects, and teams on the Linear platform programmatically.