The MCP Linear App is a Model Context Protocol (MCP) integration that allows AI tools to interact with Linear. Through this integration, AIs can search, create, and update issues, add comments, and retrieve user and team information from Linear.
Login to Linear
Navigate to Workspace Settings
Find API Settings
Generate a New API Key
Save Your API Key
Clone the repository:
git clone [email protected]:zalab-inc/mcp-linear-app.git
cd mcp-linear-app
Install dependencies:
npm install
Create environment file:
Create a .env
file in the root directory with your Linear API key:
LINEAR_API_KEY=your_linear_api_key_here
Build the project:
npm run build
Locate your Cursor MCP configuration file:
C:\Users\<username>\.cursor\mcp.json
~/.cursor/mcp.json
~/.cursor/mcp.json
Add Linear MCP server configuration:
{
"mcpServers": {
"linear": {
"command": "<path-to-node>",
"args": [
"<path-to-project>/dist/index.js"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
Example configuration:
{
"mcpServers": {
"linear": {
"command": "C:\\nvm4w\\nodejs\\node.exe",
"args": [
"H:\\mcp\\linear\\dist\\index.js"
],
"env": {
"LINEAR_API_KEY": "lin_api_xxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
Restart Cursor for changes to take effect
Open Claude AI desktop app settings
Navigate to the "Developer" section
Find the "Tools" configuration section
Add Linear MCP configuration:
{
"tools": {
"linear": {
"command": "<path-to-node>",
"args": [
"<path-to-project>/dist/index.js"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
Example configuration:
{
"tools": {
"linear": {
"command": "/usr/local/bin/node",
"args": [
"/Users/username/projects/mcp-linear-app/dist/index.js"
],
"env": {
"LINEAR_API_KEY": "lin_api_xxxxxxxxxxxxxxxxxxxxx"
}
}
}
}
The general approach for other AI platforms that support MCP:
dist/index.js
file from this repositoryAfter configuration, your AI will have access to these Linear tools:
search_issues
- Search for issues by keyword, status, or prioritycreate_issue
- Create a new issueget_issue
- Get issue detailsupdate_issue
- Update an existing issuecreate_comment
- Add a comment to an issueget_comment
- Get comments from an issueupdate_comment
- Update or delete a commentget_profile
- Get the current Linear user profileget_team_id
- Get a list of teams and their IDsIn Cursor or Claude, you can prompt the AI to perform Linear-related tasks:
Search for issues:
Search for high priority issues in our Linear project.
Create a new issue:
Create a new issue in Linear with the title "Improve login page performance" and add it to the backlog.
Get issue details:
Get the details of the issue LIN-123 from Linear.
Add comments:
Add a comment to issue LIN-456 saying "This is fixed in the latest release. Please verify."
Update issues:
Update the priority of issue LIN-789 to urgent.
Here's a typical workflow using these tools:
Find your team ID:
What's my Linear team ID?
Create a new issue:
Create a new Linear issue titled "Implement password reset feature" for the Engineering team with a high priority.
Search for issues:
Find all high priority issues assigned to me that are currently in progress.
Update an issue:
Update issue LIN-456 to add the description "This issue has been verified and tested on all browsers."
Add and retrieve comments:
Add a comment to issue LIN-789 asking "Is this still a priority for this sprint?"
Show me all the comments on issue LIN-321
If you experience issues:
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "linear" '{"command":"<path-to-node>","args":["<path-to-project>/dist/index.js"],"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": "<path-to-node>",
"args": [
"<path-to-project>/dist/index.js"
],
"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": "<path-to-node>",
"args": [
"<path-to-project>/dist/index.js"
],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect