Linear MCP Server
Handles Linear's GraphQL API complexity limits by automatically splitting complex queries into multiple simpler ones and assembling results transparently.
Bridges with Linear's GraphQL API, providing full CRUD operations for issues, comments, projects, cycles, teams, and users. Features include smart content chunking, human-readable identifiers, markdown export, and real-time updates via webhooks and SSE.
Enables exporting Linear issues with all comments in clean markdown format and handles markdown content when creating or updating issues and comments.
Requires Node.js 18+ as runtime environment for the server.
Utilizes Pino for structured JSON logging to enhance observability of server operations and troubleshooting.
Provides metrics for monitoring server performance, including RPC requests, latency, rate limiting, and active connections, accessible at the /metrics endpoint.
Leverages TypeScript with Linear's official SDK for full type safety across all API operations.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Linear MCP Server show me the open issues for the mobile team"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Legible Linear MCP
An MCP server that connects Claude Code to Linear with OAuth authentication and multi-workspace support.
Quick Start
1. Install
# Clone and build
git clone https://github.com/bleugreen/linear-mcp.git
cd linear-mcp
npm install
npm run build
# Install CLI globally (optional, for easy auth management)
npm link2. Authenticate
# Opens browser for OAuth login
lmcp auth login
# Or if not installed globally:
node dist/cli.js auth login3. Configure Claude Code
Add to your Claude Code MCP settings (~/.claude.json or via Claude Code settings):
{
"mcpServers": {
"linear-mcp": {
"type": "stdio",
"command": "node",
"args": ["/path/to/linear-mcp/dist/mcp-server.js"]
}
}
}Restart Claude Code and you're ready to go!
Related MCP server: streamlinear
Authentication
OAuth (Recommended)
OAuth provides a seamless authentication experience with automatic token refresh:
lmcp auth login # Authenticate with Linear
lmcp auth status # Check current auth status
lmcp auth list # List connected workspaces
lmcp auth switch # Switch active workspace
lmcp auth logout # Remove a workspaceCredentials are stored securely in ~/.linear-mcp/credentials.json.
Multi-Workspace Support
Connect to multiple Linear workspaces and switch between them:
# Add first workspace
lmcp auth login
# Add another workspace (will show consent screen)
lmcp auth login
# Switch between them
lmcp auth switch my-company
lmcp auth switch side-projectEnvironment Variable (Legacy)
You can also use an API key directly:
export LINEAR_API_KEY=lin_api_YOUR_KEY_HERENote: OAuth credentials take priority over the environment variable.
CLI Reference
lmcp <command> [options]
Commands:
auth login Authenticate with Linear via OAuth
auth logout Remove a workspace's credentials
auth list List all connected workspaces
auth switch Switch active workspace
auth status Show current authentication status
serve Start the MCP server (default)
help Show help message
Environment Variables:
LINEAR_API_KEY Use API key instead of OAuth (fallback)
LINEAR_WORKSPACE Override active workspace for session
LINEAR_CLIENT_ID Use custom OAuth app client ID
LINEAR_CLIENT_SECRET Use custom OAuth app client secretFeatures
Core Capabilities
Full CRUD: Issues, comments, projects, cycles, teams, users
Human-Readable IDs: Use team keys (TEAM), issue identifiers (TEAM-123), project names, user emails
Smart Chunking: Automatically splits large content across multiple comments
Markdown Export: Get full issue content with all comments in clean markdown
Reliability
Auto Token Refresh: OAuth tokens refresh automatically before expiry
Rate Limiting: Respects Linear's 1,500 req/hr limit with exponential backoff
Query Splitting: Handles Linear's 10,000 complexity limit automatically
Related Links
Troubleshooting
"Field membership argument userId required"
The server handles this automatically by using raw GraphQL queries for affected endpoints.
"Query too complex"
The server automatically splits complex queries. If you still see this error, please file an issue.
SSE Connection Drops
The server sends heartbeats every 15 seconds. Check your proxy/firewall timeout settings.
Rate Limiting
The server implements exponential backoff. If you're hitting limits frequently, consider reducing request frequency or batch operations.
Available Tools
22 toolsmcp__linear__add_commentC
Add a comment to a Linear issue
Inputs: id (required), comment (required).
mcp__linear__create_issueC
Create a new Linear issue
Inputs: title (required), teamId (required), links, cycleId, +8 more.
mcp__linear__create_projectC
Create a new project
Inputs: name (required), teamIds (required), startDate, targetDate, +1 more.
mcp__linear__create_subissueC
Create a sub-issue under a parent issue
Inputs: title (required), parentId (required), stateId, labelIds, +1 more.
mcp__linear__delete_issueC
Archive/delete a Linear issue
Inputs: id (required).
mcp__linear__file_historyC
Get Linear issues that modified a specific file in the git repository
Inputs: file_path (required), limit.
mcp__linear__get_capabilitiesB
Get the capabilities and features of the Linear MCP server
Inputs: no named parameters.
mcp__linear__get_current_userA
Get details for the currently authenticated user
Inputs: no named parameters.
mcp__linear__get_issueA
Get issue details formatted as markdown with full description, comments, and metadata
Inputs: id (required).
mcp__linear__get_projectB
Get details for a specific project
Inputs: id (required).
mcp__linear__get_teamC
Get details for a specific team
Inputs: id (required).
mcp__linear__get_userC
Get details for a specific user
Inputs: id (required).
mcp__linear__list_commentsB
List comments on a Linear issue
Inputs: issueId (required).
mcp__linear__list_issuesC
List issues in the user's Linear workspace
Inputs: limit, query, teamId, cycleId, +7 more.
mcp__linear__list_labelsC
List all labels for a team
Inputs: teamId (required).
mcp__linear__list_projectsB
List projects in the user's Linear workspace
Inputs: limit.
mcp__linear__list_statesB
List all workflow states for a team
Inputs: teamId (required).
mcp__linear__list_teamsB
List teams in the user's Linear workspace
Inputs: after, limit, query, before, +4 more.
mcp__linear__list_usersC
List users in the Linear workspace
Inputs: limit.
mcp__linear__search_issuesB
Search for issues using full text search with filters
Inputs: query (required), limit, teamId, stateId, +4 more.
mcp__linear__update_issueC
Update an existing Linear issue
Inputs: id (required), links, title, cycleId, +9 more.
mcp__linear__update_projectC
Update an existing project
Inputs: id (required), name, startDate, targetDate, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Each tool targets a distinct resource+action, and the get/list/create/update/delete split per resource (issue, project, team, user) is clear. The only mild overlap is list_issues vs search_issues, but the descriptions (full workspace listing vs filtered full-text search) make the boundary readable.
Almost all tools follow a consistent snake_case verb_noun pattern (list_issues, create_issue, update_project, get_team). The single deviation is file_history, a noun-first name with no verb, which slightly breaks the pattern but remains understandable.
22 tools is on the heavy side, but the domain (issues, projects, teams, users, labels, comments) genuinely justifies the breadth. Each tool earns its place with no obvious filler, though a few read-only list/get pairs could theoretically be consolidated.
Issues have full lifecycle coverage (list, search, get, create, subissue, update, delete) plus comments, and projects have list/get/create/update. Gaps remain: no delete_project, no label creation/management, no update/delete for comments, and teams are read-only, but these are workable omissions rather than blocking ones.
Maintenance
Related MCP Connectors
Issues, projects, cycles, and roadmaps via the official Linear hosted MCP server.
Unofficial Linear MCP — wraps the Linear GraphQL API (OAuth)
Search, read and create Linear issues, projects, teams and cycles.
Hosted Airtable MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceCache-first MCP server for Linear that provides tools to search, read, create, update, and comment on issues and projects, caching data locally to reduce API calls and respect rate limits.1MIT
- AlicenseNot gradedqualityBmaintenanceA lightweight MCP server that enables Claude to interact with Linear via a single tool with seven actions: search, get, update, comment, create, graphql, and help.540 npm90MIT
- AlicenseNot gradedqualityCmaintenanceCustom MCP server for Linear that enables managing issues, projects, and workspaces through natural language, backed by raw GraphQL.1MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for integrating Linear with Claude Code and other MCP clients. Enables issue management, project planning, and status tracking through a set of tools.-