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
Find in guide
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
- Choose the correct workspace and team, plus the project or cycle if relevant.
- Confirm access to the issue and whether the workflow is read-only, a proposed edit or an approved create.
- 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.
| Route / permission | Purpose | Boundary |
|---|---|---|
| Read-only MCP / read OAuth scope | Backlog and issue inspection | No edits through the read-only toolset |
| Personal API key | Authorized GraphQL operations | Constrain team and permissions where available |
| Write-enabled MCP / mutation | Create or change issues/comments | Resolve IDs and preview the precise change |
- Select Linear in the connector directory or register the documented remote server in the client.
- Use the read-only route for discovery and authorize the intended workspace.
- Fetch the relevant team and issue by stable identifier; inspect allowed statuses and assignees before drafting updates.
- 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.
# Direct GraphQL script using a personal API key
LINEAR_API_KEY=replace_with_scoped_personal_keySupported operations & boundaries
| Operation | Route | Important boundary |
|---|---|---|
| Find issues/projects/comments | MCP | Match workspace and stable IDs |
| Read identity and team | GraphQL query | Pagination and field errors still apply |
| Create/update issue | Write tool or GraphQL mutation | Validate team-specific fields and duplicate risk |
| Agent integration lifecycle | Separate developer platform | Connecting MCP alone does not deploy a Linear agent |
Make a bounded first request
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.
- POST
https://api.linear.app/graphqlGraphQL entry point. Query versus mutation is determined by the request body; check errors and required result fields.
API reference for https://api.linear.app/graphql (opens in a new tab) - MCP
https://mcp.linear.app/mcp/readonlyHosted read-only MCP route. The default /mcp route is read-write according to the current documentation.
API reference for https://mcp.linear.app/mcp/readonly (opens in a new tab)
A practical workflow
- For backlog triage, define the team and a bounded set of open issues. Read titles, descriptions, labels and status without fetching unrelated private projects.
- Group candidates into duplicates, blocked work and missing acceptance criteria. Preserve issue identifiers and explain each recommendation.
- Resolve the team-specific status and assignee IDs before preparing updates. Do not invent a global In Progress ID.
- Show a before/after packet. Create only after checking for an equivalent existing issue and receiving approval for the intended team/project.
- 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.
| Boundary | Required context |
|---|---|
| Required inputs | Workspace/team; Issue ID or duplicate search; Project/cycle; Proposed status/assignee/labels |
| Approval required | Creating issues/comments; Changing ownership, status, priority or project |
| Stop conditions | Ambiguous team; Invalid metadata mapping; Uncertain previous mutation outcome |
| Return to the user | Team and issue IDs; Recommendations or approved changes; Verification and unresolved errors |
- Resolve team metadata and issue IDs.
- Check pagination and GraphQL field errors.
- 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
- Revoke the client authorization in Linear and remove unused client configuration.
- Delete any separate personal API keys used by scripts.
- 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.
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.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
- Linear MCP setup and read-only access (opens in a new tab)
- GraphQL authentication and error semantics (opens in a new tab)
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