Integration handbook

Claude / Linear ยท Documentation-reviewed guide

Linear for Claude

Read a team backlog, prepare precise issue changes and keep GraphQL mutations distinct from harmless-looking HTTP POST queries.

Official setup guide (opens in a new tab)
Connection
Official MCP / GraphQL
Access
Scoped to your account
Testing
Not account-tested
Contents & search

Connect Claude to Linear

Linear is a strong fit for backlog triage, release briefs and turning approved findings into actionable issues. Team, project, cycle, assignee and status all matter; title similarity is not a reliable identifier.

For conversational work, use the hosted MCP. For custom code, Linear exposes GraphQL rather than a separate REST URL for every resource. A POST request can be a read-only query or a mutation, so an agent must inspect the operation body.

Before you start

  1. Choose the correct workspace and team, plus the project or cycle if relevant.
  2. Confirm access to the issue and whether the workflow is read-only, a proposed edit or an approved create.
  3. Start with the documented read-only MCP endpoint or a read-scoped authorization. Avoid enabling every operation for a reporting task.

Authorization & setup

Linear documents OAuth for hosted client connections and API-key/bearer options for appropriate integrations. The read-only endpoint exposes read tools; a read-only OAuth scope also restricts the underlying token.

Create personal API keys in Linear Security & access settings for server-side scripts. A personal API key uses Authorization: <key>; an OAuth access token uses Authorization: Bearer <token>. Do not silently substitute one header format for the other.

Permission decisions before connecting
Route / permissionPurposeBoundary
Read-only MCP / read OAuth scopeBacklog and issue inspectionNo edits through the read-only toolset
Personal API keyAuthorized GraphQL operationsConstrain team and permissions where available
Write-enabled MCP / mutationCreate or change issues/commentsResolve IDs and preview the precise change
Source: Provider authorization reference
  1. Select Linear in the connector directory or register the documented remote server in the client.
  2. Use the read-only route for discovery and authorize the intended workspace.
  3. Fetch the relevant team and issue by stable identifier; inspect allowed statuses and assignees before drafting updates.
  4. If writes are needed, request explicit permission to change authorization and preview target objects before invoking a mutation.

Local environment for custom code

The hosted connector signs in through the provider; it does not read an environment file from this website. The following placeholders are only for a separate server-side project. Keep .env.local ignored by Git and configure deployment secrets separately. Never use NEXT_PUBLIC_ for these values.

.env.local - placeholders only

ENV
# Direct GraphQL script using a personal API key
LINEAR_API_KEY=replace_with_scoped_personal_key

Supported operations & boundaries

Linear: choose the right operation
OperationRouteImportant boundary
Find issues/projects/commentsMCPMatch workspace and stable IDs
Read identity and teamGraphQL queryPagination and field errors still apply
Create/update issueWrite tool or GraphQL mutationValidate team-specific fields and duplicate risk
Agent integration lifecycleSeparate developer platformConnecting MCP alone does not deploy a Linear agent
Source: Provider capability reference

Make a bounded first request

Read your Linear identity via GraphQL

CURL
curl --fail-with-body https://api.linear.app/graphql \
  --header "Content-Type: application/json" \
  --header "Authorization: $LINEAR_API_KEY" \
  --data '{"query":"query { viewer { id name } }"}'

This POST contains a query, not a mutation. Inspect both the HTTP status and GraphQL errors array; a 200 response can contain partial failures. Never declare a later mutation successful solely because its HTTP response is 200.

Endpoint & protocol reference

These are provider API or protocol entry points, not a promise that the same named operation is exposed in every MCP client. Discover the live MCP tool schema before calling it. Follow the linked reference for request bodies, pagination, permissions and current limits.

A practical workflow

  1. For backlog triage, define the team and a bounded set of open issues. Read titles, descriptions, labels and status without fetching unrelated private projects.
  2. Group candidates into duplicates, blocked work and missing acceptance criteria. Preserve issue identifiers and explain each recommendation.
  3. Resolve the team-specific status and assignee IDs before preparing updates. Do not invent a global In Progress ID.
  4. Show a before/after packet. Create only after checking for an equivalent existing issue and receiving approval for the intended team/project.
  5. Read the resulting issue back, verify key fields and return its URL. If mutation success is uncertain, search for the created issue before retrying.

AI agent playbook

Read or make an approved issue change in the correct Linear team.

Execution contract
BoundaryRequired context
Required inputsWorkspace/team; Issue ID or duplicate search; Project/cycle; Proposed status/assignee/labels
Approval requiredCreating issues/comments; Changing ownership, status, priority or project
Stop conditionsAmbiguous team; Invalid metadata mapping; Uncertain previous mutation outcome
Return to the userTeam and issue IDs; Recommendations or approved changes; Verification and unresolved errors
Source: Handbook editorial workflow (not a provider guarantee)
  1. Resolve team metadata and issue IDs.
  2. Check pagination and GraphQL field errors.
  3. Search for duplicates before a create.

Troubleshooting

API returns 200 but the operation failed
Likely cause
GraphQL can return data alongside field-level errors.
What to do
Inspect errors and required data fields; report partial results rather than claiming complete success.
A status update is rejected
Likely cause
The status or assignee may not belong to the selected team/workspace.
What to do
Read live team metadata and resolve IDs before building the mutation.
Read-only MCP has no create tool
Likely cause
The endpoint intentionally omits mutation tools.
What to do
Keep it for reporting. Ask before moving to a write-enabled route.

Revoke access, costs & maintenance

  1. Revoke the client authorization in Linear and remove unused client configuration.
  2. Delete any separate personal API keys used by scripts.
  3. Check created issues/comments independently; revoking access does not remove them.

Linear and AI-client plan limits, rate limits and GraphQL complexity limits apply. Follow cursors for bounded reads and avoid repeatedly expanding every nested relation.

Prompts to get started

Start with read-only questions. Replace placeholders with your own account context; these are examples, not live results.

Backlog triage without writes

PROMPTCopy into your conversation
Review [team/project] open issues for [cycle]. Return IDs and URLs, blockers, likely duplicates and missing acceptance criteria. Resolve current state from Linear. Do not create issues or change status/assignees.
Issue creation preview

PROMPTCopy into your conversation
Prepare one issue in [team] / [project]. Check for duplicates, resolve valid status/assignee IDs and show title, description and labels. Wait for approval. After creation, read it back and return the URL.

Frequently asked questions

Is /graphql a dangerous write endpoint?

It supports both queries and mutations. Evaluate the operation and permissions, not merely the HTTP method.

Should a skill hardcode team status IDs?

No. Resolve the live team metadata and retain stable IDs only within the intended workspace context.

Is this account-tested or a working connection?

No. Official documentation was reviewed on November 17, 2026. This guide does not connect accounts or execute examples. Validate with your own permissions before adopting it in an agent.

Sources & resources

References used in this guide

Documentation-reviewed guide. Provider facts come from the linked references; workflow recommendations and agent approval boundaries are our editorial guidance. No private account, paid action or end-to-end workflow was tested.

Logos are local SVGs from Simple Icons. Brand marks belong to their respective owners; credits are not an endorsement. No provider screenshots have been copied into this preview.

Icon library & licensing