This repository has been deprecated and is no longer maintained.
Use the official Linear MCP integration available directly through Cursor:
- Check the Cursor MCP Servers Page for the latest Linear integration
- The official integration provides more robust features and better support
If you were using this tool:
- Remove any references to
mcp-linearfrom your setup - Follow the official Cursor documentation to set up the new Linear integration
- Update your
.cursor/mcp.jsonconfiguration accordingly
This repository is archived for historical reference only.
A Model Context Protocol (MCP) server that enables Linear issue management directly from Cursor's Composer feature.
-
Read Operations:
- Fetch Linear tickets assigned to the authenticated user
- Filter tickets by status (active, completed, canceled)
- Limit the number of results returned
- Get all teams to find team IDs for creating tickets
-
Write Operations:
- Create new Linear tickets/issues
- Automatically attach
agent-createdlabel for tracking - Support for priority, assignee, labels, and workflow states
-
Seamless Integration:
- Works directly in Cursor's AI assistant
- Automatic team discovery
- Full error handling and validation
If you want to use this as a git submodule in your project:
-
Add as git submodule:
# From your project root (e.g., pie-mono) # Note: The first command is only necessary if the submodule is not yet setup in the repo git submodule add https://github.com/stashgg/mcp-linear path/to/mcp-linear git submodule update --init --recursive # initializes submodule in your local setup
-
Run the setup script:
cd path/to/mcp-linear ./setup-mcp-linear.shIf you get a permission error, run:
chmod +x setup-mcp-linear.sh
If you've cloned this repository directly:
-
Navigate to the mcp-linear directory:
cd path/to/mcp-linear ./setup-mcp-linear.shIf you get a permission error, run:
chmod +x setup-mcp-linear.sh
-
Follow the script's instructions:
- It will install dependencies with yarn and build the package
- It will install the MCP tool globally with npm (more reliable for global tools)
- It will help you set up your Linear API key and MCP config
-
Set your Linear API key:
export LINEAR_API_KEY="your-linear-api-key"
- To get your API key, visit StashGG Linear API Settings
- (Strongly recommended) Add this line to your
~/.zshrcor~/.bashrcfor persistence.
-
Configure Cursor:
- Open Cursor
- Go to Settings → Tools & Integrations → MCP Tools
- Click Add Custom MCP (this opens
.cursor/mcp.json) - Add the following:
{ "mcpServers": { "linear": { "command": "mcp-linear", "type": "stdio" } } }
-
Test the setup:
- Restart Cursor
- Open Cursor's Composer
- Try: "Show me my Linear tickets"
- Try: "Show me all my Linear teams"
- Try: "Create a new Linear ticket titled 'Test ticket' in the Engineering team"
- Node.js (v20 or higher)
- npm (for global installation)
- yarn (for local development)
-
Install dependencies and build:
yarn install yarn build
-
Install the package globally with npm:
npm install -g . -
Set your Linear API key and configure Cursor as above.
If you're using this as a git submodule and want to update to the latest version:
cd tools/mcp-linear
git pull origin main
./setup-mcp-linear.sh # Rebuild and reinstall
cd ../..
git add tools/mcp-linear
git commit -m "Update mcp-linear submodule"Once configured, you can use the Linear MCP in Cursor's Composer:
- "Show me my active Linear tickets"
- "Get my completed tickets from Linear"
- "Show me 5 of my active Linear tickets"
- "Show me all my Linear teams"
- "Create a new Linear ticket titled 'Fix login bug' in the Engineering team"
- "Create a high priority ticket titled 'Performance issue' with description 'App is slow on mobile devices'"
- "Create a ticket assigned to John Doe titled 'Review PR'"
All tickets created through the MCP automatically get an agent-created label for easy tracking and filtering.
yarn install
yarn buildyarn build
npm install -g . # Reinstall globally
# Restart Cursor to pick up changes- Local development: Uses
yarnfor faster installs and better dependency management - Global installation: Uses
npmfor better compatibility with global tools and MCP
- Permission denied:
Runchmod +x setup-mcp-linear.sh - mcp-linear: command not found:
Make sure your npm global bin directory is in your PATH (npm bin -g) - API key issues:
Make sure you've setLINEAR_API_KEYin your environment - Node version incompatibility:
This project requires Node.js 20 or higher. If you're using nvm:nvm use 20 # or install if not available nvm install 20 nvm use 20 - Submodule issues:
Rungit submodule update --init --recursiveto ensure submodules are properly initialized - Tools not showing up in Cursor:
- Completely quit and restart Cursor (Cmd+Q on Mac)
- Check MCP status in Settings → Tools & Integrations → MCP Tools
- Verify the linear server shows as connected
get-linear-tickets- Get tickets assigned to youget-linear-teams- Get all teams (helpful for creating tickets)create-linear-ticket- Create new tickets with auto-labeling
MIT License