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 ...
You can also manually specify the team_id to say on tool calls: --team_id ...
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",
"..."
]
}
}
}
Development
Using Docker
# Build the image
docker build -t linear-mcp .
# Run the container
docker run -it --rm -e LINEAR_API_KEY=... linear-mcp
Using pipx
To build the pipx package locally, run:
pipx install -e . --force
Using Virtual Environments
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install build dependencies:
pip install -r requirements-build.txt
- Install development dependencies:
pip install -r requirements-dev.txt
- 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 ...
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linear_mcp-0.1.4.tar.gz.
File metadata
- Download URL: linear_mcp-0.1.4.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afd3e038860c0972e09327a3b4964479c232c305c9fe1d65c25fda930ba160c6
|
|
| MD5 |
9a1482d68a2f900a5c6fbea68988cc2c
|
|
| BLAKE2b-256 |
4e543494d3170e890a13a744bfb25cd38061ed729cdc3b7179390a2b036e82ae
|
File details
Details for the file linear_mcp-0.1.4-py3-none-any.whl.
File metadata
- Download URL: linear_mcp-0.1.4-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06f8c2c6f4b94da27684e607ddb8ba24236616a0829cc2484edeae015a0ebc7f
|
|
| MD5 |
ec6f76fdb9da709782d230daa29c1753
|
|
| BLAKE2b-256 |
e987495397e68727c980397aab87ddcb63d7579f755a25067c0a4795e12dc6c7
|