linear-mcp
Provides tools for interacting with Linear's API, enabling AI agents to manage issues, projects, teams, and other resources across multiple workspaces using Personal Access Tokens.
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 list my workspaces"
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.
linear-mcp
Multi-workspace Linear MCP server with Personal API Key auth. Drop-in replacement for the official OAuth-only Linear MCP at mcp.linear.app/mcp.
Why this exists. The official Linear MCP is OAuth-only and single-workspace per instance. PAT auth plus persistent token storage plus multi-workspace routing kills three failure modes:
The OAuth flow is brittle across MCP client session boundaries — auth state expires when a session resumes mid-flow.
The localhost callback fails in some setups, forcing fragile paste-back flows.
One MCP instance per workspace doubles config + OAuth dances.
This server replaces both with one entry. One install, N workspaces, never an OAuth dance again.
Install
From PyPI
pipx install adelaidasofia-linear-mcpFrom source
git clone https://github.com/adelaidasofia/linear-mcp ~/.claude/linear-mcp
cd ~/.claude/linear-mcp
pip install -e .Claude Desktop one-click
Download the latest .mcpb from Releases and double-click.
Related MCP server: Linear Cache MCP
Configure
Generate one Personal API Key per workspace at https://linear.app/settings/account/security. You must be logged into each workspace separately while generating the key for that workspace.
Create
~/.claude/linear-mcp/admin.env(chmod 600):
LINEAR_WORKSPACES=personal,work
LINEAR_PRIMARY_WORKSPACE=personal
LINEAR_PAT_PERSONAL=lin_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
LINEAR_PAT_WORK=lin_api_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
LINEAR_LABEL_PERSONAL=Personal
LINEAR_LABEL_WORK=WorkAliases are arbitrary — name them whatever helps you route (acme,beta, team1,team2, home,client).
chmod 600 ~/.claude/linear-mcp/admin.envRegister in Claude Code (user scope, so it loads in every project):
claude mcp add -s user linear-mcp python3 -m linear_mcp.serverOr, with pipx install:
claude mcp add -s user linear-mcp linear-mcpRestart Claude Code.
healthcheckshould returnok: trueper workspace.
Substrate-layer enforcement (v0.3)
Three server-side checks that protect issue quality without depending on any markdown rule file or client-side memory. Apply only to WRITE paths; reads stay unconstrained.
Layer | What it does | Bypass env var |
|
|
|
Idempotency check | Before any CREATE, the server runs |
|
|
| (no bypass — surface the phrase to the operator) |
Canonical-key examples:
[source: 🍄 Mycelium AI/📝 Meeting Notes/2026-05-22 - sync.md][source: ⚙️ Meta/Decisions/2026-05-23-merger-public-comms.md][source: linear-kickoff:sweep-myc-p1][source: ~/.claude/linear-mcp/BUILD_PROMPT_V03.md]
Fast issue execution
linear-exec is the short path for starting real work from a Linear issue.
It resolves the issue, checks blocking relations, scans same-project siblings
for obvious scope overlap, infers the repo when possible, and can create the
standard claude-dev-worktree branch.
Dry-run a specific issue:
linear-exec execute MYC-150 --workspace myceliumStart the work after reviewing the preflight:
linear-exec execute MYC-150 --workspace mycelium --repo memory-runtime-pro --goFind the next unblocked P1 issue in a workspace:
linear-exec sweep mycelium p1
linear-exec sweep mycelium p1 --go --repo memory-runtime-proThe command refuses to proceed when an upstream blocks relation is still
incomplete unless --force is passed. --no-state-update and --no-worktree
let agents use only the parts of the preflight they need.
Tool surface (v0.3 — 57 tools + 3 prompts)
Every tool takes an optional workspace parameter (the alias from LINEAR_WORKSPACES). Omit it to use LINEAR_PRIMARY_WORKSPACE.
Meta
Tool | Purpose |
| Show configured workspaces and primary |
| Verify each PAT + surface remaining rate-limit budget |
Core entities
Tool | Purpose |
| Teams (with inline workflow states) |
| Users ( |
| Projects (v0.3: |
| Initiatives |
| Issues (id or |
| Cycles |
| Project milestones |
| Workflow states |
| Labels |
| Comments |
| Documents |
| Post a project status update |
Webhooks (v0.2)
Tool | Purpose |
| Inspect subscriptions |
| Manage subscriptions |
| Destructive — draft+confirm |
Notifications / inbox (v0.2)
Tool | Purpose |
| Inbox read |
| Top-of-mind counter |
| Triage |
| Sweep |
Attachments (v0.2)
Tool | Purpose |
| Per-issue reads |
| Reverse lookup: which issues link to this URL? |
| Attach any URL to an issue |
| Destructive — draft+confirm |
Issue relations (v0.2)
Tool | Purpose |
| The blocks/duplicate/related graph |
| Manage the graph |
Agent sessions (v0.2)
Tool | Purpose |
| Linear's first-class agent surface |
| Spawn |
Search (v0.2 — replaces v0.1's broken search_documentation)
Tool | Purpose |
| Full-text per entity type |
| Workspace-wide semantic across all entities |
MCP prompts (v0.2)
Available as slash commands in MCP clients that surface prompts:
/triage-issue— full triage pass: classify, label, prioritize, assign, link duplicates/project-status— draft a weekly status update from current Linear state/inbox-sweep— sweep today's notifications, propose actions, archive what's handled
Multi-workspace usage
Switch workspaces inline:
list_teams(workspace="work")
save_issue(workspace="personal", title="Ship", team_id="...")Without workspace, the primary is used.
Auth
Linear PATs use header Authorization: <key> (no Bearer prefix). Each PAT is scoped to one workspace and grants access only to data the owning user can see. There is no shared org token.
Rate limit: 2500 requests/hour per token (verified against live API 2026-05-23). The server passes Linear's Retry-After header through on 429 and surfaces remaining budget via healthcheck.
Safety
Read tools and routine writes (create/update issues, comments, labels, status updates) pass through. Destructive ops (delete_webhook, delete_attachment) use the draft+confirm pattern: the first call stages the change and returns a draft_id + preview of what will happen; the second call (with confirm_draft_id) commits. Drafts expire after 1 hour (override with LINEAR_MCP_DRAFT_TTL_SECONDS).
Every tool call appends one JSONL line to ~/.claude/linear-mcp/audit.log (override with LINEAR_MCP_AUDIT_LOG_PATH, disable with LINEAR_MCP_AUDIT_LOG=false). Tokens are stripped from audit records.
healthcheck surfaces each PAT's remaining rate-limit budget (X-RateLimit-Requests-Remaining + X-Complexity-Remaining) per workspace, so agents can self-throttle without making a separate observability call.
Related MCPs
adelaidasofia/slack-mcp — multi-workspace Slack with draft+confirm
adelaidasofia/whatsapp-mcp — WhatsApp via whatsmeow + vault export
adelaidasofia/imessage-mcp — iMessage chat.db + vault export
adelaidasofia/github-mcp — GitHub PR/issue/release
License
MIT.
Built by Adelaida Diaz-Roa. Full install or team version at diazroa.com.
Available Tools
57 toolsarchive_notificationA
Archive a notification (removes from inbox; reversible).
Inputs: id (required), workspace. Returns: object
attachments_for_urlA
Reverse lookup: every attachment record across the workspace pointing at this URL. Useful to find which issue references a given Slack thread / PR / external doc.
Inputs: url (required), first, workspace. Returns: object
bulk_save_issuesA
Apply the same update to multiple issues in one round-trip.
ids is a list of issue UUIDs. Every other arg is an
optional field to set on all of them (skip args you don't
want to change). Linear's issueBatchUpdate mutation does
the work server-side — way faster than N separate save_issue
calls for bulk ops like "mark these 50 as Done" or "reassign
these to me."
auth_phrase (REQUIRED, v0.3) must be one of: "go", "yes do it",
"confirmed", "execute", "go cancel", "go update". Without this
explicit confirmation a single hallucinated arg could
mass-modify pre-existing shared workspace data — surface the
requirement to the operator and capture their explicit phrase
before calling this tool.
Inputs: ids (required), auth_phrase (required), cycle_id, due_date, +7 more. Returns: object
create_agent_session_on_commentB
Open an agent session attached to a comment (typically a @mention of the agent app user).
Inputs: comment_id (required), workspace, external_url. Returns: object
create_agent_session_on_issueA
Open an agent session attached to an issue.
session_type is one of comment (the agent posts a comment as
its output) or commentThread (the agent threads under existing
comments). external_url lets the agent surface a link back to
its own dashboard / run log.
Inputs: issue_id (required), workspace, external_url, session_type. Returns: object
create_issue_labelA
Create a new issue label.
team_id makes a team-scoped label. Omit for workspace-scoped.
color is a 7-char hex (#RRGGBB). parent_id nests this label
under another (Linear supports two-level label hierarchies).
Inputs: name (required), color, team_id, parent_id, +2 more. Returns: object
create_issue_relationA
Create a relation between two issues.
type must be one of: blocks (issue blocks related_issue),
duplicate (issue duplicates related_issue), or related (no
directionality). Linear automatically creates the inverse
relation visible on the other issue.
Inputs: issue_id (required), related_issue_id (required), type, workspace. Returns: object
create_webhookA
Create a webhook subscription.
url is your HTTPS receiver. resource_types defaults to
["Issue", "Comment", "IssueLabel"] if omitted — adjust as
needed (full list at linear.app/developers/webhooks). team_id
scopes to one team; all_public_teams=True subscribes to every
public team in the org. secret is your HMAC signing secret —
Linear adds it to the Linear-Signature header on every event.
Inputs: url (required), label, secret, enabled, +4 more. Returns: object
delete_attachmentA
Delete an attachment. Destructive — uses draft+confirm.
Two-call flow identical to delete_webhook. The first call
returns a draft_id + preview of the attachment that will be
removed; the second call (with confirm_draft_id) commits.
Inputs: id (required), workspace, confirm_draft_id. Returns: object
delete_issue_relationA
Delete an issue relation by ID. Non-destructive (no cascade).
Inputs: id (required), workspace. Returns: object
delete_webhookA
Delete a webhook. Destructive — uses draft+confirm.
Two-call flow:
delete_webhook(id=...)returns adraft_idplus a preview of which webhook is about to go away.delete_webhook(id=..., confirm_draft_id=<draft_id>)actually issueswebhookDeleteagainst Linear.
Drafts expire after 1 hour (override with
LINEAR_MCP_DRAFT_TTL_SECONDS).
Inputs: id (required), workspace, confirm_draft_id. Returns: object
get_agent_sessionC
Get an agent session by UUID.
Inputs: id (required), workspace. Returns: object
get_attachmentC
Get one attachment by UUID.
Inputs: id (required), workspace. Returns: object
get_documentB
Get a document by UUID.
Inputs: id (required), workspace. Returns: object
get_initiativeB
Get an initiative by UUID.
Inputs: id (required), workspace. Returns: object
get_issueA
Get a single issue.
id accepts either the UUID or the human identifier (e.g.
ONDE-123). When given an identifier, the tool resolves it through
a one-shot search.
Inputs: id (required), workspace. Returns: object
get_issue_statusA
Return the current workflow state for one issue (id or identifier).
Convenience tool: the existing get_issue already returns state, but this is the minimal-fields variant for status-driven automations.
Inputs: issue_id (required), workspace. Returns: object
get_milestoneC
Get a project milestone by UUID.
Inputs: id (required), workspace. Returns: object
get_notificationC
Get one notification by UUID.
Inputs: id (required), workspace. Returns: object
get_projectB
Get a Linear project by UUID.
Inputs: id (required), workspace. Returns: object
get_teamB
Get a Linear team by its UUID. Includes workflow states inline.
Inputs: id (required), workspace. Returns: object
get_userA
Get a Linear user by ID. Pass me to look up the PAT owner.
For me, the server resolves it via the viewer query and substitutes
the resolved id.
Inputs: id (required), workspace. Returns: object
get_webhookB
Get a webhook by UUID.
Inputs: id (required), workspace. Returns: object
healthcheckA
Verify PAT validity for each workspace + report draft store + audit log path.
For each workspace, calls the viewer query. Returns user info + the
organization the PAT is scoped to. A failure means the PAT has been
revoked or rotated and needs re-generation at
linear.app/settings/account/security.
Inputs: no named parameters. Returns: object
link_url_to_issueA
Attach an arbitrary URL to an issue.
Linear renders the link in the issue sidebar. Pass title and
icon_url to customize the display; otherwise Linear fetches
OpenGraph metadata from the URL.
Inputs: url (required), issue_id (required), title, icon_url, +1 more. Returns: object
list_agent_sessionsB
List agent sessions. issue_id scopes to one issue.
Inputs: after, first, issue_id, workspace. Returns: object
list_attachmentsC
List attachments on one issue.
Inputs: issue_id (required), after, first, workspace. Returns: object
list_commentsB
List comments. Scope by issue_id or project_id.
Inputs: after, first, issue_id, workspace, +1 more. Returns: object
list_cyclesC
List cycles, optionally scoped to one team.
team_id is the team UUID. Omit to list cycles across every team.
Inputs: after, first, team_id, workspace. Returns: object
list_documentsC
List documents in the workspace.
Inputs: after, first, workspace. Returns: object
list_initiativesB
List initiatives in the workspace.
Initiatives are Linear's top-level org-wide goals that contain multiple projects.
Inputs: after, first, workspace. Returns: object
list_issue_labelsA
List issue labels. team_id scopes to one team; omit for org-wide.
Inputs: after, first, team_id, workspace. Returns: object
list_issue_relationsC
List issue relations. issue_id filters to relations involving one issue.
Inputs: after, first, issue_id, workspace. Returns: object
list_issuesC
List issues with common filters.
assignee_id accepts a user UUID or the literal me. state_type
accepts one of: backlog, unstarted, started, completed, canceled,
triage. query does a full-text search across title + description.
filter lets you pass a raw Linear IssueFilter for cases the
convenience args don't cover.
order_by is updatedAt (default) or createdAt.
Inputs: after, first, query, filter, +7 more. Returns: object
list_issue_statusesA
List workflow states (issue statuses) per team.
team_id scopes results to one team. Omit to list every workflow
state across the workspace.
Inputs: after, first, team_id, workspace. Returns: object
list_milestonesB
List project milestones. project_id scopes to one project.
Inputs: after, first, workspace, project_id. Returns: object
list_notificationsA
List notifications in the viewer's inbox.
unread_only=True restricts to notifications with no readAt.
Nodes carry __typename (IssueNotification, ProjectNotification,
etc.) so an agent can branch on category.
Inputs: after, first, workspace, unread_only. Returns: object
list_projectsB
List projects.
team_id scopes to projects involving one team. state filters by
project state (one of: backlog, planned, started, paused, completed,
canceled). Omit for all.
Inputs: after, first, state, team_id, +1 more. Returns: object
list_teamsA
List teams in a Linear workspace.
workspace selects which configured PAT to use (defaults to primary).
first is the page size (max 250); after is the cursor from a
previous response's pageInfo.endCursor.
Inputs: after, first, workspace. Returns: object
list_usersC
List users in a Linear workspace.
include_disabled flips the Linear includeDisabled filter so you
can see members who have been removed from the org.
Inputs: after, first, workspace, include_disabled. Returns: object
list_webhooksC
List webhooks configured for the workspace.
Inputs: after, first, workspace. Returns: object
list_workspacesA
List configured Linear workspaces with PAT prefix + primary status.
Returns a dict with workspaces (list of redacted profiles), primary
(alias of the default workspace), and errors (config errors found at
load time). Tokens never appear in the response.
Inputs: no named parameters. Returns: object
mark_all_notifications_readB
Mark every notification in the inbox as read.
category optionally scopes to one notification category
(e.g. triageResponsibility, assigned).
Inputs: category, workspace. Returns: object
mark_notification_readB
Mark a notification read (or unread by passing read=False).
Inputs: id (required), read, workspace. Returns: object
notifications_unread_countC
Return the count of unread notifications in the inbox.
Inputs: workspace. Returns: object
save_commentA
Create or update a comment.
Pass id to edit an existing comment (only body is updateable).
Creating requires body and either issue_id or project_id.
parent_id threads the comment as a reply.
Inputs: id, body, issue_id, parent_id, +2 more. Returns: object
save_documentA
Create or update a document.
Pass id to update. Creating requires title and one of
project_id or initiative_id (documents attach to a project or
initiative in Linear's model).
Inputs: id, icon, color, title, +4 more. Returns: object
save_initiativeA
Create or update an initiative.
Pass id to update; omit to create. Status is one of Planned,
Active, Completed (string, not enum) per Linear's API.
Inputs: id, icon, name, color, +6 more. Returns: object
save_issueA
Create or update an issue.
Pass id to update. Creating requires title and team_id.
assignee_id accepts a UUID or me. priority is 0-4
(0=none, 1=urgent, 2=high, 3=medium, 4=low).
Inputs: id, title, team_id, cycle_id, +11 more. Returns: object
save_milestoneA
Create or update a project milestone.
Pass id to update. Creating requires name and project_id.
Inputs: id, name, workspace, project_id, +3 more. Returns: object
save_projectA
Create or update a Linear project.
Pass id to update an existing project; omit id (and pass
team_ids) to create a new one. Linear requires at least one team
when creating.
Dates are ISO-8601 strings (YYYY-MM-DD). priority is 0-4
(0=none, 1=urgent, 2=high, 3=medium, 4=low).
Inputs: id, icon, name, color, +9 more. Returns: object
save_status_updateB
Post a status update against a project.
health is one of onTrack, atRisk, offTrack (Linear enums).
body is markdown.
Inputs: body, health, workspace, project_id. Returns: object
search_documentsC
Full-text search across workspace documents (NOT Linear's dev docs).
Inputs: query (required), after, first, workspace. Returns: object
search_issuesA
Full-text search across issues in the workspace.
Backed by Linear's searchIssues GraphQL field (verified via
introspection). Returns nodes with the standard issue shape plus
a totalCount so the agent knows how many more hits exist beyond
the current page.
Inputs: query (required), after, first, workspace. Returns: object
search_projectsC
Full-text search across projects in the workspace.
Inputs: query (required), after, first, workspace. Returns: object
semantic_searchA
Semantic search across the entire workspace.
Returns heterogeneous nodes (issues, projects, documents, comments,
initiatives). Each node carries __typename so the agent can branch
on entity kind.
Use this when the search target is conceptual ("payment retry logic") rather than exact-string ("PAY-123").
Inputs: query (required), after, first, workspace. Returns: object
update_webhookC
Update an existing webhook by UUID.
Inputs: id (required), url, label, enabled, +3 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 57 tools
Tools like list_issues, search_issues, and semantic_search have overlapping purposes despite different mechanisms. Similarly, get_issue_status duplicates get_issue's state info, and the many save_* tools could confuse agents. Descriptions help but the sheer number causes ambiguity.
Most tools follow a verb_noun pattern (e.g., list_issues, save_issue), with minor deviations like get_issue_status and link_url_to_issue. The use of save_ for create/update is consistent, but some names like list_issue_labels are slightly inconsistent.
57 tools is excessive for a single MCP server, even for a feature-rich platform like Linear. Many tools could be merged or streamlined (e.g., multiple search variants, separate create/update tools), leading to agent decision fatigue.
The tool set covers most Linear concepts: issues, projects, comments, documents, webhooks, notifications, attachments, relations, and agent sessions. Missing CRUD for teams, users, cycles, and workflow states, but these are less critical for typical workflows.
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.
Official Fibery MCP server: query and update your workspace from any AI client via OAuth.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceAn MCP server for managing Linear issues, projects, teams, and milestones through the Model Context Protocol. It enables users to create, update, and list workspace resources including issue statuses, comments, and user details.ISC
- 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
- AlicenseBqualityFmaintenanceMCP server for accessing and managing Linear resources like issues, projects, and comments with full CRUD operations and search.21188 npm1MIT
- AlicenseNot gradedqualityCmaintenanceCustom MCP server for Linear that enables managing issues, projects, and workspaces through natural language, backed by raw GraphQL.1MIT