agency-linear
v1.0.11
Published
A Linear MCP server for interacting with Linear's API
Maintainers
Readme
BetterLinearMCP
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, project)
- List issues with flexible filtering options (team, assignee, status)
- Update existing issues (title, description, status, assignee, priority, project)
- Search issues based on text queries
- Get detailed issue information including comments, labels, and metadata
- Create and update comments on issues
Team Management
- List all teams in the workspace
- Create new teams with custom properties
- Update existing teams
- Delete or archive teams
- Access team details including ID, name, key, and description
Project Management
- List all projects with optional team filtering
- Create new projects with customizable properties
- Update existing projects
- View project details including teams, state, and metadata
- Manage project milestones (create, list, update, delete)
User Management
- List all users in the workspace
- Get detailed user information
Label Management
- List all labels with optional team filtering
- Create new labels
- Update existing labels
- Delete labels
Installation & Setup
Prerequisites
- Node.js 18 or later
- A Linear account with an API key (get one here)
- Cursor, Claude, or other MCP-compatible AI assistant
Quick Installation (Recommended)
The easiest way to install and configure BetterLinearMCP:
# First, install the package globally
npm install -g agency-linear
# Then run the setup wizard
npx cursor-setupThis interactive setup will:
- Guide you through entering your Linear API key
- Automatically configure Cursor's MCP settings
- Set up everything you need to use the Linear tools
Alternative Installation Methods
Global Installation with Manual Setup
# Install globally
npm install -g agency-linear
# Then run the setup directly
cursor-setupScript-based Installation
# Install the package
npm install -g agency-linear
# Run the bash script
npx mcp-installManual Setup
If you prefer to configure your assistant manually:
Install the package:
npm install -g agency-linearEdit your MCP configuration file:
For Cursor:
- Mac:
~/.cursor/mcp.json - Windows:
%APPDATA%\Cursor\mcp.json
For Claude Desktop:
- Mac:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Mac:
Add this configuration:
{ "mcpServers": { "agency-linear": { "command": "node", "args": ["path/to/global/node_modules/agency-linear/build/index.js"], "env": { "LINEAR_API_KEY": "your-api-key-here" }, "disabled": false, "alwaysAllow": [] } } }Replace
your-api-key-herewith your actual Linear API keyReplace
path/to/global/node_moduleswith the actual path to your global node_modules folderRestart your AI assistant
Using Linear MCP
After installation, your AI assistant can use commands like:
- "Create a new Linear issue for the Engineering team"
- "List all my open Linear issues"
- "Show me the details of issue ENG-123"
- "Create a comment on issue ENG-456"
- "Assign issue ENG-789 to Project X"
The assistant will automatically use the MCP tools to interact with Linear.
Available Tools
Issue Management
create_issue- Create a new issuelist_issues- List issues with filtersupdate_issue- Update an existing issueget_issue- Get detailed issue informationsearch_issues- Search for issues using text queriescreate_comment- Create a comment on an issueupdate_comment- Update an existing comment
Team Management
list_teams- List all teams that the current user is a member oflist_all_teams- List all teams accessible by the API key, including those where the user isn't a membercreate_team- Create a new teamupdate_team- Update an existing teamdelete_team- Delete or archive a team
Issue Search and Reporting
search_issues- Search for issues using text queriessearch_team_issues- Search for issues in a specific team regardless of user membership, supporting advanced filters like type, status, date, and assignee
Project Management
list_projects- List all projectscreate_project- Create a new projectupdate_project- Update an existing projectget_project- Get detailed project informationlist_project_milestones- List milestones for a projectcreate_project_milestone- Create a new milestoneupdate_project_milestone- Update a milestonedelete_project_milestone- Delete a milestone
User Management
list_users- List all usersget_user- Get detailed user information
Label Management
list_labels- List all labelscreate_label- Create a new labelupdate_label- Update an existing labeldelete_label- Delete a label
Troubleshooting
Common Issues
Linear API Key Issues:
- Ensure your API key is valid and has the necessary permissions
- Check that the key is correctly entered in your configuration
MCP Not Found:
- Make sure the package is installed:
npm list -g agency-linear - Try using the full path to the executable
Setup Wizard Not Found:
- If
npx cursor-setupfails, try installing globally first:npm install -g agency-linear - Then run
cursor-setupdirectly
Cursor Configuration Issues:
- Verify your mcp.json file exists and contains the agency-linear configuration
- Restart Cursor after making configuration changes
For Developers
Local Development
For development with auto-rebuild:
git clone https://github.com/YevUA/BetterLinearMCP.git
cd BetterLinearMCP
npm install
npm run watchTechnical Details
Built with:
- TypeScript
- Linear SDK (@linear/sdk v37.0.0)
- MCP SDK (@modelcontextprotocol/sdk v0.6.0)
License
MIT
