A Model Context Protocol server for the Linear API.
This server provides integration with Linear's issue tracking system through MCP, allowing LLMs to interact with Linear issues.
Note: This package is published as a scoped package
@tomperi/linear-mcp-server. It's currently in beta (v0.1.4).
- Install the package:
npm install @tomperi/linear-mcp-server
# or
yarn add @tomperi/linear-mcp-server
# or
pnpm add @tomperi/linear-mcp-server-
Create or get a Linear API key for your team: https://linear.app/YOUR-TEAM/settings/api
-
Add server config to Claude Desktop:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- MacOS:
{
"mcpServers": {
"linear": {
"command": "npx",
"args": ["-y", "@tomperi/linear-mcp-server"],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}The Linear MCP Server provides tools for managing issues, projects, milestones, and more.
A detailed documentation of all tools, their parameters, examples, and best practices can be found in our Tools Documentation.
Here's a quick overview of the available tools:
linear_create_issue: Create new Linear issueslinear_update_issue: Update existing issueslinear_search_issues: Search issues with flexible filteringlinear_get_user_issues: Get issues assigned to a userlinear_add_comment: Add comments to issues
linear_list_projects: List available projectslinear_get_project: Get detailed project informationlinear_create_milestone: Create new project milestoneslinear_create_document: Create new project documents- Create issues within projects by using
linear_create_issuewith a projectId and optional milestoneId
linear_get_labels: Get available issue labelslinear_get_viewer: Get information about the authenticated userlinear_list_teams: List teams in the organization with their details
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 context
Some example prompts you can use with Claude Desktop to interact with Linear:
-
"Show me all my high-priority issues" → execute the
search_issuestool and/orlinear-user:///{userId}/assignedto find issues assigned to you with priority 1 -
"Based on what I've told you about this bug already, make a bug report for the authentication system" → use
create_issueto create a new high-priority issue with appropriate details and status tracking -
"Find all in progress frontend tasks" → use
search_issuesto locate frontend-related issues with in progress task -
"Give me a summary of recent updates on the issues for mobile app development" → use
search_issuesto identify the relevant issue(s), thenlinear-issue:///{issueId}fetch the issue details and show recent activity and comments -
"What's the current workload for the mobile team?" → combine
linear-team:///{teamId}/issuesandsearch_issuesto analyze issue distribution and priorities across the mobile team -
"Create a new task in the API Redesign project for the Q2 milestone" → use
linear_list_projectsto find the project,linear_get_projectto find milestone details, andlinear_create_issuewith projectId and milestoneId to create the issue
- Clone the repository:
git clone https://github.com/tomperi/linear-mcp-server.git
cd linear-mcp-server- Install dependencies:
npm install
# or
yarn
# or
pnpm install- Configure Linear API key in
.env:
LINEAR_API_KEY=your_api_key_here- Build the server:
npm run build
# or
yarn build
# or
pnpm run buildFor development with auto-rebuild:
npm run watch
# or
yarn watch
# or
pnpm run watchTo publish a new version to npm:
- Update the version in
package.json - Build the package:
pnpm run build
- Publish the package:
pnpm run release
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.