Purpose
MCP Linear is a server that implements the Model Context Protocol (MCP), providing an interface to the Linear GraphQL API so that AI assistants can interact with the Linear project management system through natural language. It targets real project management workflows, not just basic issue CRUD.
Main capabilities
- Retrieve issues, projects, teams, cycles, milestones, roadmaps, customers, customer needs, and workspace/project/initiative/team/issue/release/cycle documents.
- Create and update issues, change status, assign assignees, add comments.
- Manage projects, with support for a full diff-aware project and initiative update lifecycle, milestones, roadmaps, saved views, and favorites.
- Create and manage workspace webhooks, including updates and signing secret rotation.
- Prepare OAuth application manifests and authorization URLs, issue scope-limited client credential tokens; when authenticated as a manageable OAuth application, can manage child OAuth applications.
- Use templates, custom fields, and attachments.
- Handle customer records, customer statuses/tiers, and customer needs linked to issues or projects.
- Read notifications, subscriptions, sessions, audit, and integrations in MCP.
- Check rate limits and server health before performing heavy planning tasks. See TOOLS.md for the complete tool list.
MCP native resources and prompts
In addition to tools, the server also exposes MCP resources and prompts:
- Resources: linear://viewer, linear://organization, linear://teams, linear://projects, linear://project/{id}, linear://project/{id}/issues, linear://project/{id}/documents, linear://issue/{id}, linear://document/{id}, linear://roadmap/{id}, linear://milestone/{id}, linear://rate-limit.
- Prompts: summarize-project-status, draft-project-update, triage-issue, summarize-document.
Example prompts
After connecting, you can use prompts such as:
- "Show all my Linear issues"
- "Create a new issue titled 'Fix login bug' in the Frontend team"
- "Change the status of issue FE-123 to 'In Progress'"
- "Assign issue BE-456 to John Smith"
- "Show all open issues in this project grouped by milestone and cycle"
- "Draft a weekly project update based on the current Linear status"
- "Find the latest document related to a project and summarize the key decisions"
- "Show the documents and links pinned on this team's homepage"
- "Create a document for ENG-123 with resource ordering metadata"
- "Get the latest project update diff and archive outdated updates"
- "Show this project's customer needs and flag important needs"
- "Create an initiative update and hide the generated diff from the update body"
- "Prepare a private OAuth application with client credentials enabled for my GitHub issue pipeline"
- "Issue a strictly scoped client credential token for that GitHub pipeline"
- "Create a webhook for Issue and Comment events, then rotate its signing secret"
How to use
Get credentials
- Log in to your Linear account at linear.app.
- Click the organization avatar in the top left.
- Select Settings.
- Go to Security & access in the left sidebar.
- Under Personal API Keys, click New API Key.
- Name the key (for example, MCP Linear Integration).
- Copy the generated API token and save it securely—it cannot be viewed again later.
Personal API keys support the regular Linear and workspace webhook tools. They cannot call Linear's alpha hosted child OAuth application API, because that API requires the caller itself to be an OAuth application. With a personal API key, linear_generateOAuthApplicationSetup will still prepare the official manifest and a pre-filled Linear settings URL,For administrator confirmation.
For MCP to actually create and manage child OAuth applications, you must authenticate with an access token belonging to a Linear OAuth application that is eligible to manage these child applications; or pass --oauth-token YOUR_OAUTH_ACCESS_TOKEN. Explicit command-line credentials take precedence over environment variables; when both types of environment credentials are present, OAuth authentication is chosen. See Linear's OAuth documentation and OAuth application manifest.
Each MCP server process uses one Linear credential. If the management application token uses actor=app (which cannot obtain admin permissions), and you also need admin-scoped workspace Webhook tools, you can configure two MCP server entries: one using the management OAuth token for child application operations, and another using the workspace administrator's personal API key for workspace Webhooks. A user actor OAuth token with admin can also cover the Webhook side.
OAuth scopes are selected when requesting the authorization URL or client credentials token; they are not mutable fields on the OAuth application. MCP validates the current Linear scopes, prepares the authorization URL, and can issue an application actor token via linear_createOAuthClientCredentialsToken. For GitHub-hosted pipelines, enable the client_credentials grant and request the minimum necessary scopes, such as issues:create.
Client credentials tokens typically expire after 30 days and have no refresh token. Linear only allows multiple active tokens under the same scope set; requesting a different scope set revokes the application's existing application actor tokens. Therefore the token tool requires both confirmSecretExposure: true and confirmScopeChangeRisk: true.
Creating an OAuth application and rotating OAuth or Webhook secrets returns one-time secret material via MCP. These tools require confirmSecretExposure: true; move the returned values directly into a secret manager (such as GitHub Actions secrets), and do not paste them into source control or logs.
Webhook URLs must be publicly accessible HTTPS endpoints. Validation rejects URLs containing credentials as well as obvious loopback, private network, link-local, and localhost destinations.
Installation
Install via add-mcp (recommended): add-mcp installs the server into Claude Code, Cursor, Codex, VS Code, Claude Desktop, and many other MCP-capable agents with a single command. Add -g to install globally instead of into the current project. See the add-mcp documentation for the full agent list and flags.
Manual configuration: add the following to your MCP settings file:
- Cursor: ~/.cursor/mcp.json
- Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json
- Claude VSCode Extension: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
- GoMCP: ~/.config/gomcp/config.yaml
Requires a Linear personal API key or OAuth access token. Run the server with your Linear API token; or use the access token of the management OAuth application; or set the token in the environment and run without arguments.
Default validation path: npm test runs Jest unit tests and the official MCP SDK smoke test against the built stdio server, covering tools, resources, and prompts registration as well as host-compatible schema output. See DEVELOPMENT.md for local development details.
Use cases
Suitable for teams and developers who want AI assistants to operate Linear project data via natural language, including issue and project management, document and roadmap queries, customer requirement tracking, project update drafting and summarization, and automated workflows such as Webhook and OAuth application management.
Limitations
- Personal AThe PI key cannot call Linear's alpha hosted sub-OAuth app API.
- Each MCP server process uses only one Linear credential; when different permissions are needed, multiple entries must be configured.
- Client credential tokens usually expire in 30 days and have no refresh token; requesting a different set of scopes revokes the app's existing app actor token.
- The webhook URL must be a publicly accessible HTTPS endpoint and must not contain credentials or point to loopback, private network, link-local, or localhost addresses.
- One-time secret material must be confirmed via confirmSecretExposure: true, and should not be pasted into source control or logs. This project uses the MIT License; see the LICENSE file for details.