Skip to content

Connect Linear to OpenCode

Issue tracker for product teams. Its hosted MCP server lets agents find, create and update issues, projects and comments, so design tasks stay linked to the work.

MCP serverOfficialChecked 2026-11-16

Before you start

  • OpenCode installed (see its MCP documentation (opens in a new tab)).
  • Linear is available on macOS, Windows, Linux and the web.
  • Your agent opens a Linear sign-in page the first time it connects. For read-only access, use https://mcp.linear.app/mcp/readonly instead.
  1. Step 1: Add Linear to OpenCode

    Add it from the terminal

    Run this in your project folder. It saves the server to the project's opencode.json.

    Terminal
    opencode mcp add linear --url https://mcp.linear.app/mcp

    Or edit the config file

    Add this to opencode.json at the project root.

    opencode.json
    {
      "$schema": "https://opencode.ai/config.json",
      "mcp": {
        "linear": {
          "type": "remote",
          "url": "https://mcp.linear.app/mcp",
          "enabled": true
        }
      }
    }
    Good to know
    • Sign in once with opencode mcp auth linear.
  2. Step 2: Check it's connected

    Terminal
    opencode mcp list

    Start OpenCode in the project; the server's tools are available to the agent straight away.

  3. Step 3: Try a first request

    Ask OpenCode something that only works with Linear connected:

    Say to OpenCode
    Find the Linear issues assigned to me that mention design and list them by priority.

If it doesn't work

  • OpenCode reads opencode.json from the project root, or ~/.config/opencode/opencode.json for every project.
  • Environment variables use the {env:NAME} syntax inside the config file.
  • Servers that need a sign-in: run opencode mcp auth <name>.