A Model Context Protocol (MCP) server that provides seamless integration with Linear for project and issue management.
- ✅ Create Projects - Create new Linear projects with custom names, descriptions, priorities, and content
- ✅ List Projects - Get all projects in your workspace with detailed information
- ✅ View Project Details - Retrieve comprehensive information about specific projects
- ✅ Delete Projects - Remove projects from your workspace
- ✅ Create Issues - Create new issues with titles, descriptions, priorities, and project assignments
- ✅ List Issues - View all issues assigned to you
- ✅ Delete Issues - Remove issues from your workspace
- ✅ Auto-Assignment - Issues are automatically assigned to the current user
- ✅ Get Team Info - View information about your Linear teams
- ✅ Get Current User - Display information about the authenticated user
- ✅ Default Team - Automatically uses your default team for operations
create-project- Create a new Linear projectget-all-project- List all projectsview-project-detail- Get detailed project informationdelete-project- Delete a project by ID
create-issue- Create a new issueget-all-issues- List all assigned issuesdelete-issue- Delete an issue by ID
get-team-info- Get team informationcurrent-user- Get current user information
- Node.js (v16 or higher)
- npm or yarn
- Linear API key
- Clone the repository:
git clone https://github.com/TechAIInsights/linear-mcp-server.git
cd linear-mcp-server- Install dependencies:
npm install- Set up environment variables:
# Create a .env file
echo "LINEAR_API_KEY=your_linear_api_key_here" > .env- Get your Linear API key:
- Go to Linear Settings > API
- Generate a new API key
- Add it to your
.envfile
npm run devnpm run build
npm start{
"mcpServers": {
"linear-mcp": {
"command": "node",
"args": ["/absolute/path/to/repo/dist/index.js"],
"env": {
"LINEAR_API_KEY": "your_linear_api_key_here"
}
}
}
}# Create a project with basic info
create-project "My New Project"
# Create a project with full details
create-project "Advanced Project" --description "A complex project" --priority "high" --content "Project details here"# Create a basic issue
create-issue "Fix authentication bug"
# Create an issue with priority and project
create-issue "Implement new feature" --priority 2 --projectId "proj_123"# List all projects
get-all-project
# View project details
view-project-detail --id "proj_123"
# Delete a project
delete-project --id "proj_123"LINEAR_API_KEY- Your Linear API key (required)
- 0 - No priority
- 1 - Urgent
- 2 - High
- 3 - Normal
- 4 - Low
The server is built with a modular architecture for maintainability:
- Modular Tools - Each tool category has its own module
- Standardized Responses - Consistent response format across all tools
- Error Handling - Comprehensive error handling with context-aware messages
- Type Safety - Full TypeScript support with proper type definitions
npm run build- Compile TypeScript to JavaScriptnpm run start- Run the compiled applicationnpm run dev- Run with hot reload (HMR)npm run dev:watch- Run with TypeScript compilation + nodemonnpm run watch- Watch for changes and recompile automaticallynpm run test- Run tests with Jestnpm run clean- Remove compiled output