# Linear Mcp (`red.cars/linear-mcp`) Actor

- **URL**: https://apify.com/red.cars/linear-mcp.md
- **Developed by:** [AutomateLab](https://apify.com/red.cars) (community)
- **Categories:** MCP servers, AI
- **Stats:** 1 total users, 1 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Linear Project Management Data — MCP Server

Access Linear issue tracking, project management, team workflows, and cycle planning data through a standardized MCP (Model Context Protocol) interface. This Actor wraps the Linear API as an MCP server, enabling AI agents to read and write Linear data using natural tool calls — no API key handling in your code.

### What does this Actor do?

This Actor spawns the `linear-pp` CLI binary as a subprocess and proxies HTTP JSON-RPC requests through Apify's standby infrastructure. It exposes 10 PPE-priced tools for common Linear operations: listing and creating issues, managing projects, querying teams and users, handling cycles, comments, and attachments. Ideal for AI agents that need programmatic access to Linear's project management data without direct API integration overhead.

### Why use this Actor?

- **Project management automation** — Create issues, update status, manage projects via AI agent tool calls
- **No API key in code** — LINEAR_API_KEY stored as Apify secret, never exposed in requests
- **PPE pricing** — Pay per event ($0.03-$0.08 per tool call), no monthly commitment
- **MCP protocol** — Standard JSON-RPC 2.0 interface, works with any MCP-compatible AI client
- **Apify infrastructure** — Handles scaling, monitoring, and availability automatically

### Features

- **10 PPE-priced tools** covering issues, projects, teams, users, cycles, comments, attachments, and labels
- **Read and write access** — List, create, update operations across all Linear entities
- **Filtering and pagination** — Full Linear filter syntax support with cursor-based pagination
- **Secure credential management** — API keys stored as Apify secrets, never in request payloads
- **Standby mode** — Actor stays alive between requests for sub-second response times
- **JSON-RPC 2.0 standard** — Interoperable with Claude, Cursor, and other MCP-compatible clients
- **Structured output** — Results returned as JSON and pushed to Apify dataset for audit trails
- **Community actor** — Lightweight wrapper around Linear's official API, no vendor lock-in

### Quick Start

```bash
## 1. Set your Linear API key as an Apify secret
apify secrets:set LINEAR_API_KEY "lin_api_..."

## 2. Push the Actor to Apify
apify push

## 3. Run in standby mode
apify run

## 4. Configure your MCP client to connect
````

MCP client configuration:

```json
{
  "mcpServers": {
    "linear": {
      "transport": "http",
      "url": "https://<actor-id>.acts.apify.net/mcp"
    }
  }
}
```

Example tool call to list issues:

```json
{
  "tool": "issues_list",
  "args": {
    "filter": { "teamId": "TEAM_ID" },
    "first": 20
  }
}
```

### Input

| Field | Type | Description |
|-------|------|-------------|
| `tool` | string | Linear tool to call (see MCP Tools Reference below) |
| `args` | object | Tool arguments as key-value pairs |

Example input:

```json
{
  "tool": "issues_list",
  "args": { "filter": { "teamId": "TEAM_ID" }, "first": 10 }
}
```

### Output

The Actor returns JSON with the tool result:

```json
{
  "success": true,
  "result": { ... }
}
```

Results are also pushed to the default dataset as an array of objects containing `result`, `tool`, and `timestamp`.

### Tools

| Tool | Description | PPE Price |
|------|-------------|----------|
| `issues_list` | List issues with filtering and pagination | $0.05 |
| `issues_create` | Create a new issue | $0.08 |
| `projects_list` | List all projects | $0.05 |
| `projects_create` | Create a new project | $0.08 |
| `teams_list` | List all teams | $0.03 |
| `users_list` | List workspace users | $0.03 |
| `comments_create` | Create a comment on an issue | $0.05 |
| `attachments_create` | Upload an attachment | $0.05 |
| `cycles_list` | List all cycles | $0.05 |
| `labels_list` | List all labels | $0.03 |

### Pricing

PPE (Pay Per Event) pricing per tool call:

- **Read operations** (list, users, teams, cycles, labels): $0.03-$0.05
- **Write operations** (create, update): $0.05-$0.08

Example: 100 issue list calls = ~$5.00. No base fee, no monthly minimum.

| Operation Type | Tools | Price Range |
|---------------|-------|-------------|
| Read (list queries) | issues\_list, projects\_list, teams\_list, users\_list, cycles\_list, labels\_list | $0.03 - $0.05 |
| Write (create/update) | issues\_create, projects\_create, comments\_create, attachments\_create | $0.05 - $0.08 |

### Troubleshooting

**Q: Do I need a Linear API key?**
A: Yes. Create one at Linear Settings > API. Store it as `LINEAR_API_KEY` in Apify secrets using `apify secrets:set LINEAR_API_KEY "your_key"`.

**Q: The Actor fails to start with "binary not found"**
A: Ensure the Dockerfile's `go install` step completed successfully. The binary path inside the container is `/root/go/bin/linear-pp`. Run `apify build` locally to verify.

**Q: How do I filter issues by team or assignee?**
A: Use the `filter` param with Linear's filter syntax: `{ "teamId": "TEAM_ID", "assigneeId": "USER_ID" }`. Refer to Linear's API docs for full filter options.

**Q: What's the difference between this and the Linear REST API?**
A: This Actor wraps Linear's PP (Printing Press) CLI which provides a higher-level tool interface via MCP protocol. Direct REST API access is also available on Apify.

**Q: Can I run this locally?**
A: Yes. Set `APIFY_META_ORIGIN=STANDBY` to activate standby mode, then run `apify run`. The Actor will stay alive between requests for faster response times.

**Q: How does pagination work?**
A: Use the `first`/`after` cursor pattern for large result sets. Pass the `after` cursor from a previous response to fetch the next page of results.

### FAQ

**Q: What happens if the binary isn't installed?**
A: The Actor will fail to start. Ensure the Dockerfile's `go install` step completes successfully before pushing.

**Q: Is my Linear API key secure?**
A: Yes. The LINEAR\_API\_KEY is stored as an Apify secret and only exposed to the Actor's runtime environment. It is never included in request payloads or logs.

### Disclaimer

This Actor is a community project and not officially affiliated with Linear. Use of Linear's API is subject to Linear's terms of service.

### Support

For issues or feature requests, open an issue on the GitHub repository.

# Actor input Schema

## `tool` (type: `string`):

Linear tool to call (e.g. issues\_list, projects\_list)

## Actor input object example

```json
{
  "tool": "issues_list"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tool": "issues_list"
};

// Run the Actor and wait for it to finish
const run = await client.actor("red.cars/linear-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "tool": "issues_list" }

# Run the Actor and wait for it to finish
run = client.actor("red.cars/linear-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tool": "issues_list"
}' |
apify call red.cars/linear-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=red.cars/linear-mcp",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Linear Mcp",
        "version": "1.0",
        "x-build-id": "gEw2zFf3DJ63oDJNg"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/red.cars~linear-mcp/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-red.cars-linear-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/red.cars~linear-mcp/runs": {
            "post": {
                "operationId": "runs-sync-red.cars-linear-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/red.cars~linear-mcp/run-sync": {
            "post": {
                "operationId": "run-sync-red.cars-linear-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "tool"
                ],
                "properties": {
                    "tool": {
                        "title": "Tool",
                        "enum": [
                            "issues_list",
                            "issues_create",
                            "projects_list",
                            "projects_create",
                            "teams_list",
                            "users_list",
                            "comments_create",
                            "attachments_create",
                            "cycles_list",
                            "labels_list"
                        ],
                        "type": "string",
                        "description": "Linear tool to call (e.g. issues_list, projects_list)",
                        "default": "issues_list"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
