Skip to main content

A Linear API integration for MCP

Project description

Linear MCP

A Linear API integration for MCP.

Quickstart

1. Get Linear API Key

Obtain a Linear API Key from your Linear Account: https://linear.app/YOUR-ORG-NAME-HERE/settings/account/security

2. Install pipx

# MacOS
brew install pipx

# Linux
apt install pipx

# (All environments) Set up PATH
pipx ensurepath

Cursor

Create a command MCP server with the following command:

pipx run linear-mcp --linear-api-key ... --team_name ...

Windsurf

In Windsurf settings, add a Custom MCP server with configuration like the following:

{
  "mcpServers": {
    "linear": {
      "command": "pipx",
      "args": [
        "run",
        "linear-mcp",
        "--linear-api-key",
        "...",
        "--team_name",
        "..."
      ]
    }
  }
}

Development

Using Docker

# Build the image
docker build -t linear-mcp .

# Run the container
docker run -it --rm -e LINEAR_API_KEY=... linear-mcp LINEAR_TEAM_NAME=...

Using pipx

To build the pipx package locally, run:

pipx install -e . --force

Using Virtual Environments

  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install build dependencies:
pip install -r requirements-build.txt
  1. Install development dependencies:
pip install -r requirements-dev.txt
  1. Install the package in development mode:
pip install -e .

Releases

This repository is published to PyPI using GitHub Actions.

This happens automatically when you push to the main branch.

If you do not bump the verison in pyproject.toml, the release will fail.

Prior to merging to main, it is also a good idea to install the package globally on your local machine:

pipx install -e . --force

... and then use the mcp inspector to test all the resources, tools, etc.:

npx @modelcontextprotocol/inspector linear-mcp --linear-api-key ... --team_name ...

Because a transport stdio cannot write to standard out, there is file based logging. By default, the server writes to linear_api.log, whose location varies depending on how the server was installed / started.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linear_mcp-0.1.6.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

linear_mcp-0.1.6-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file linear_mcp-0.1.6.tar.gz.

File metadata

  • Download URL: linear_mcp-0.1.6.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for linear_mcp-0.1.6.tar.gz
Algorithm Hash digest
SHA256 9c994577aefa869c21360047338c6ecd758a9f68ec7136d4ee93da2778b1b3a4
MD5 a3e55a9d3967675a699127c8395c53d1
BLAKE2b-256 832fc6f33fa25441f4fa9740eab27a4d5fe085216e7f48c53b8df484d732706e

See more details on using hashes here.

File details

Details for the file linear_mcp-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: linear_mcp-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for linear_mcp-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c9312f7fc588a3220d8a4449e797a6284a5caddc1ac298beeb4b0dbeaaa1be5a
MD5 8cd3efbe3cc7c17c4cec513914ee8ba9
BLAKE2b-256 747c7c854720aaf8d13bdefcc3cc572504b44168d22476b8d3a1ef94a4431ff2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page