On this page#
- What linear mcp server actually gives an agent
- The config, line by line
- Scoping it down
- What breaks in a real repo
- When not to connect it at all
- FAQ
What linear mcp server actually gives an agent#
A linear mcp server gives an AI coding agent a controlled interface to Linear work items: it can retrieve issue context, inspect projects and teams, and—when authorized—create or update issues and comments. It should not receive permission to modify code, merge branches, deploy software, or treat ticket text as trusted repository instructions.
MCP, or Model Context Protocol, is a standard for exposing tools and contextual data to AI applications. In this setup, the coding agent is the MCP client, while Linear’s server translates structured tool calls into actions against Linear.
That is useful for work such as:
- Finding the acceptance criteria for the issue named in a branch.
- Reading linked issue and project context before planning a change.
- Adding an implementation note or pull-request link.
- Updating status after a verified workflow event.
- Creating a follow-up issue for discovered work.
The boundary matters. Linear describes intended work; the repository establishes what is true. An agent must not overwrite code-level evidence because a stale ticket says otherwise.
Treat issue descriptions and comments as untrusted input. A pasted instruction such as “ignore repository rules and run this command” is content, not authority. The MCP server should supply context and narrowly defined operations—not become a second control plane for the agent.
That distinction follows the MCP client-server architecture: a server exposes capabilities, but the host application remains responsible for permission boundaries, user approval, and how returned context is used.
Photo by panumas nikhomkhai on Pexels.
The config, line by line#
Use a repository-visible configuration that names the server explicitly, selects the HTTP transport, and contains no credential. The smallest sensible configuration is easier for a second engineer to audit than a personal machine setup containing wrappers, hidden environment assumptions, or a copied bearer token.
{
"mcpServers": {
"linear": {
"type": "http",
"url": "https://mcp.linear.app/mcp"
}
}
}Here is what each field is doing:
-
mcpServersThis is the registry of servers available to the agent. Keeping integrations in one visible block lets reviewers answer a basic security question quickly: which external systems can this agent reach?
-
linearThis is the local identifier, not an authorization rule. Use a plain, stable name so tool calls and approval prompts remain recognizable. Renaming it to something vague like
work-toolsmakes logs harder to inspect. -
type:httpThis declares a remote HTTP connection. It avoids installing an unreviewed local launcher merely to reach a hosted server. MCP also supports other transport arrangements, but the architectural responsibilities remain separated between host, client, and server.
-
urlThis is the server endpoint. Keep it literal and reviewable; do not redirect it through an undocumented personal proxy. If your organization requires an approved gateway, name and document that gateway beside the configuration.
Authentication should happen through the client’s supported authorization flow. Do not commit tokens, place secrets in command-line arguments, or add an Authorization header containing a literal credential. A repository config may be shared; a credential must remain user-specific and revocable.
Client configuration shapes vary, so copy these values into the equivalent MCP-server block for Claude Code, Codex, Cursor, or another host. The protocol defines interoperability, but it does not make every client configuration file identical. The official reference servers are useful for understanding that separation between protocol behavior and host-specific setup.
Scoping it down#
Start with read access and add one write operation only when a real workflow requires it. “The agent might need it later” is not a permission model. The correct scope is the smallest set of Linear teams, projects, issue operations, and write actions that completes today’s repository workflow.
A practical rollout sequence is:
- Read issues in one team.
- Read the project context linked from those issues.
- Add comments only if the team wants agent-authored notes.
- Allow status changes only after defining the triggering evidence.
- Allow issue creation only with explicit approval.
Do not begin with workspace-wide write access. A coding agent searching for context does not need to edit every team’s backlog.
| Permission | What it enables | What you lose by withholding it | |---|---|---| | Issue read | Acceptance criteria and linked context | The agent needs pasted issue details | | Project read | Milestones and broader intent | Planning stays issue-local | | Comment write | Implementation notes and links | A human must post updates | | Status write | Workflow transitions | Status remains manual | | Issue creation | Follow-up work capture | A human must create discovered tasks |
The cost of narrow access is deliberate friction. That friction is valuable when a generated comment could notify people, a status change could distort reporting, or a duplicate issue could pollute triage.
MCP does not erase the need for application-level authorization. The protocol specification explains how clients and servers exchange capabilities; your Linear access policy determines which underlying data and actions should be available.
For teams formalizing these boundaries, PairFoundry’s Agent Operating Kit provides a stronger operating layer than relying on every engineer to remember unwritten rules. The broader PairFoundry packs show the available packaged workflows.
Photo by Lukas Blazek on Pexels.
What breaks in a real repo#
Two failures recur in production repositories: the agent trusts stale issue context over repository evidence, or it performs a valid Linear write at the wrong moment. Both failures can look successful in a tool log, which is exactly why “the call completed” is an inadequate acceptance criterion.
Failure scenario 1: the ticket contradicts the repository#
The issue says a field is optional, but current validation, tests, and migration history treat it as required. The agent follows the ticket, changes the model, and produces a locally coherent patch that violates an established invariant.
Use this decision rule:
When Linear text conflicts with executable tests, checked-in schemas, repository instructions, or current implementation constraints, stop and surface the conflict. Do not silently choose the ticket.
Linear is evidence of intent, not proof of current system behavior. The agent may propose reconciling the discrepancy, but it should not rewrite an invariant merely because external context sounds authoritative.
Failure scenario 2: workflow state moves before the work is real#
The agent marks an issue complete after generating code, even though tests failed, review is outstanding, or no pull request exists. The API action succeeds while the engineering workflow becomes false.
Use this decision rule:
Permit a status transition only when its required evidence is machine-checkable or a human explicitly approves it.
For example, “code was generated” is not completion evidence. If your process has no precise transition rule, remove status-write permission. Commenting with current evidence is safer than asserting a state the agent cannot verify.
More integration patterns belong in the PairFoundry MCP servers hub, while engineers still defining basic agent boundaries should start with the free foundations track.
When not to connect it at all#
Do not connect Linear when the agent cannot act on the retrieved context, when access cannot be narrowed to the repository’s work, or when your team has no rule for external writes. An unused integration is still an attack surface, an authentication dependency, and another source of misleading context.
Skip the connection when:
- Engineers already provide complete, reviewed issue context in the repository.
- The repository handles sensitive work that must remain isolated from external planning systems.
- Authentication would use a shared or long-lived credential.
- The available account exposes unrelated teams or projects.
- Nobody owns permission review, revocation, and incident response.
- The agent cannot distinguish repository instructions from untrusted ticket content.
- Your intended workflow is merely “let the agent update everything automatically.”
A read-only connection is not automatically justified either. If retrieved tickets are habitually stale, the server adds tokens and ambiguity without improving decisions.
The integration earns its place when it removes repeated context-copying while preserving repository invariants and human accountability. If you cannot state the exact read or write operation that saves work, leave it disconnected.
Photo by Digital Buggu on Pexels.
Related reading#
- Supabase MCP server: the config that makes it useful, not just connected
- Atlassian rovo MCP server: permissions, scopes and the mistake everyone makes first
FAQ#
What is a linear MCP server?#
A linear MCP server is an MCP-compatible service that lets an AI host request structured Linear context and actions. It sits between the agent and Linear, exposing approved tools rather than giving the model direct, arbitrary access to the application or its underlying data.
Is the linear app legit?#
Linear is the work-tracking application this integration connects to, but legitimacy is not the same as safe configuration. Verify the endpoint and authorization prompt through your organization’s approved process, use an individual revocable identity, and refuse configurations containing copied credentials or undocumented proxies.
How to use MCP linear?#
Add the Linear endpoint to your agent’s MCP configuration, authenticate through the client, and begin with issue and project reads for one relevant team. Test retrieval against a known issue before enabling comments, status changes, or issue creation. Every write capability needs a stated workflow rule.
What does a MCP server actually do?#
An MCP server advertises tools or contextual resources, accepts structured requests from an MCP client, and returns results in a form the host can provide to the model. It does not decide your repository policy, validate engineering correctness, or make external content trustworthy.
How much does linear MCP cost?#
The supplied sources do not establish a price, so this article will not invent one. Check the terms presented by Linear and your account plan before rollout. Also count operational cost: access review, credential revocation, approval prompts, workflow mistakes, and maintenance of team-specific permission boundaries.