Skip to main content

Configuring the MCP Server

Set up the LinearB MCP server for Claude Desktop, Claude Code, or Copilot Chat. This guide walks through installation options, authentication, and supported environments.

Steven Silverstone
Updated by Steven Silverstone
The MCP server is released as a Beta feature. Behavior and documentation may change before general availability (GA). Use with caution in production.

The LinearB MCP (Model Context Protocol) server lets AI tools connect to LinearB data and capabilities through a standard MCP interface. You can connect in three ways, depending on your environment:

  • Claude Desktop — using mcp-remote and a JSON config file.
  • Claude Code — using a single CLI command that registers the MCP server.
  • GitHub Copilot Chat (VS Code) — by adding an MCP configuration file (mcp.json).

Once configured, supported tools can connect to the LinearB MCP server and use LinearB-specific prompts and extended capabilities.

LinearB MCP server configuration overview

Summary
  • Choose your client: Claude Desktop, Claude Code, or Copilot Chat (VS Code).
  • Authenticate using your LinearB API key (passed as the x-api-key header).
  • After setup, restart the tool (Claude Desktop / VS Code) so it can discover MCP tools.
  • Use the Prompts panel (Claude Desktop) or Copilot Chat to run LinearB-aware queries.

Before you begin

What you’ll need

  • Your LinearB API key
  • Claude Desktop installed (for Option 1)
  • Node.js (for Option 1)
  • Homebrew (optional, Mac only, for installing Node.js)
  • VS Code + Copilot Chat (optional, for the VS Code integration)
Section divider

Step 1 – Choose your setup option

Select the instructions that match your environment:

Installation procedure options

Option 1 – Configure with Claude Desktop
  1. Run node --version to check if Node.js is installed.
  • If Node.js is installed, you’ll see a version number (for example, v18.x.x).
  • If Node.js is not installed, install it using one of the methods below.

OS

Procedure

Windows/macOS

  • Go to https://nodejs.org and download the LTS version.
  • Run the installer and select the option to add Node to your PATH.

macOS (Homebrew)

Run brew install node

Linux (Debian/Ubuntu)

Run curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - sudo apt-get install -y nodejs

  1. Install mcp-remote globally: npm install -g mcp-remote
  2. Locate the executable paths:
  • Node path: which node
  • mcp-remote path: which mcp-remote

On Windows (Command Prompt or PowerShell), use:

  • where node
  • where mcp-remote
  1. Save both paths — you’ll paste them into Claude’s config.
  2. In Claude Desktop, go to Settings → Developer → Edit Config.
  3. Add the following JSON block:
{
            "mcpServers": {
              "linearb": {
                "command": "FULL_PATH_TO_NODE",
                "args": [
                  "FULL_PATH_TO_MCP_REMOTE",
                  "https://mcp.linearb.io/mcp",
                  "--header",
                  "x-api-key: YOUR-API-KEY"
                ]
              }
            }
          }
  1. Replace the placeholders:
  • FULL_PATH_TO_NODE: output from which node / where node
  • FULL_PATH_TO_MCP_REMOTE: output from which mcp-remote / where mcp-remote
  • YOUR-API-KEY: your LinearB API key
  1. Save the config file, then restart Claude Desktop.
Claude Desktop configuration example for LinearB MCP server

Optional – Add LinearB MCP support to Copilot Chat (VS Code)

To use the LinearB MCP server inside GitHub Copilot Chat (VS Code), add an MCP configuration file.

  1. Create or update the file:
    /Users/<username>/Library/Application Support/Code/User/mcp.json
  2. Add the following configuration:
{
            "inputs": [
              {
                "id": "linearb-api-key",
                "type": "promptString",
                "description": "LinearB API Key",
                "password": true
              }
            ],
            "servers": {
              "linearb": {
                "type": "http",
                "url": "https://mcp.linearb.io/mcp",
                "headers": {
                  "x-api-key": "<TOKEN>"
                }
              }
            }
          }
  1. Save the file.

When you open VS Code:

  • A Start button appears at the top of the MCP Servers list.
  • Click Start to launch the LinearB MCP server.
  • VS Code prompts for your API key and discovers the LinearB MCP tools.
  • After discovery, Copilot Chat can use the MCP tools.
This step is required for Copilot Chat integration.
Section divider
  1. Restart Claude Desktop (if you’re also using Claude Desktop) to ensure it reloads MCP configuration.

Option 2 – Configure with Claude Code

If you’re using Claude Code, you don’t need to edit a JSON file manually. Run a single command to register the LinearB MCP server:

  • This method applies to Claude Code, not Claude Desktop.
  • It’s the fastest setup if you’re working directly in a terminal-based Claude workflow.
claude mcp add --transport http linearb https://mcp.linearb.io/mcp --header "x-api-key: LINEARB_API_TOKEN"

Replace LINEARB_API_TOKEN with your actual LinearB API key.

Claude Code MCP add command example

Using the MCP server
Caution: Important notes on MCP usage

The LinearB MCP server is a Beta feature. Behavior and outputs may change before GA.

Numbers and data outputs from the MCP — like any generative AI results — should be verified for accuracy. We recommend reproducing results in the LinearB UI before using MCP-generated metrics for critical decisions.

For ready-to-use queries, see: LinearB MCP Server Prompt Library (PDF) .

Once configured, the MCP server allows you to:

  • Authenticate securely with your LinearB API key.
  • Apply consistent configuration across environments.
  • Access extended capabilities beyond the public API (where supported by LinearB MCP tools).
  • Use LinearB-specific prompts in supported clients.

Accessing the Prompts panel in Claude Desktop
  1. Open Claude Desktop. From the welcome screen, you’ll see the main prompt bar.
  2. Click +, then select Add from LinearB Metrics to load the LinearB prompts.
  3. Once enabled, these prompts appear in Claude and can be used to generate PR reports, lead time reports, merge rate reports, and other LinearB-specific outputs.
Claude Desktop menu for adding LinearB prompts
LinearB prompts shown in Claude Desktop
Example LinearB prompt in Claude Desktop
Example output using LinearB prompts in Claude Desktop

Related articles

Exploring the Power of LinearB’s MCP Server

How did we do?

MCP Server – Kubernetes Secrets

Contact