linear-mcp

linear-mcp

A Model Context Protocol server that enables interaction with Linear workspaces to manage issues, projects, cycles, and teams through a GraphQL interface. It provides 21 tools for comprehensive task management, search, and workflow coordination using OAuth2 authentication.

Category
访问服务器

README

linear-mcp

A Linear MCP server for Dedalus.

Prerequisites

  • Python 3.11+
  • uv
  • A Linear workspace

Setup

cd linear-mcp
cp .env.example .env   # then fill in your values
uv sync

Environment variables

Linear uses OAuth2 for authentication. The Dedalus platform (DAuth) handles the OAuth flow. The MCP server declares the secret name it needs (e.g. LINEAR_ACCESS_TOKEN).

OAuth provider configuration (consumed by the Dedalus platform):

Variable Description
OAUTH_ENABLED true
OAUTH_AUTHORIZE_URL https://linear.app/oauth/authorize
OAUTH_TOKEN_URL https://api.linear.app/oauth/token
OAUTH_CLIENT_ID Your Linear OAuth app client ID
OAUTH_CLIENT_SECRET Your Linear OAuth app client secret
OAUTH_SCOPES_AVAILABLE read,write,issues:create,comments:create
OAUTH_BASE_URL https://api.linear.app

Dedalus client configuration (for _client.py testing):

Variable Description
DEDALUS_API_KEY Your Dedalus API key (dsk_*)
DEDALUS_API_URL Defaults to https://api.dedaluslabs.ai
DEDALUS_AS_URL Defaults to https://as.dedaluslabs.ai

Run the server

uv run src/main.py

Test locally

uv run src/_client.py

This opens an interactive agent loop. On first use, DAuth will prompt you to complete the Linear OAuth flow in your browser.

Lint and typecheck

uv run --group lint ruff format src/
uv run --group lint ruff check src/ --fix
uv run --group lint ty check src/

Available tools

Tool R/W Description
linear_get_issue R Get issue by ID or identifier (ENG-123)
linear_list_issues R List issues with filters
linear_create_issue W Create a new issue
linear_update_issue W Update an existing issue
linear_list_comments R List comments on an issue
linear_create_comment W Add a comment to an issue
linear_get_project R Get project by ID
linear_list_projects R List projects
linear_create_project W Create a new project
linear_update_project W Update an existing project
linear_list_cycles R List cycles for a team
linear_get_cycle R Get a cycle by ID
linear_active_cycle R Get the current active cycle for a team
linear_list_teams R List all teams
linear_get_team R Get a team by ID
linear_list_team_states R List workflow states (statuses) for a team
linear_whoami R Get authenticated user profile
linear_list_users R List workspace members
linear_list_labels R List labels
linear_create_label W Create a new label
linear_search_issues R Full-text search across issues

21 tools (14 read, 7 write)

Architecture

Linear uses a single GraphQL endpoint (POST /graphql) for all operations. The request layer in src/linear/request.py dispatches queries through Dedalus's HTTP enclave, which injects OAuth credentials transparently.

src/
├── linear/
│   ├── config.py      # Connection definition (OAuth)
│   ├── request.py     # GraphQL dispatch + coercion helpers
│   └── types.py       # Typed dataclass models
├── tools/
│   ├── issues.py      # Issue CRUD
│   ├── comments.py    # Comment operations
│   ├── projects.py    # Project CRUD
│   ├── cycles.py      # Cycle queries
│   ├── teams.py       # Team + workflow states
│   ├── users.py       # User queries
│   ├── labels.py      # Label operations
│   └── search.py      # Issue search
├── server.py          # MCPServer setup
├── main.py            # Entry point
└── _client.py         # Interactive agent loop (DAuth)

Notes

  • Linear's API is GraphQL-only. Every tool dispatches a GraphQL query or mutation.
  • Workflow states (statuses) vary per team. Use linear_list_team_states to discover valid state IDs before creating or transitioning issues.
  • Issue identifiers (e.g. ENG-123) can be used interchangeably with UUIDs in most tools.
  • Priority values: 0 = No priority, 1 = Urgent, 2 = High, 3 = Medium, 4 = Low.
  • Archived resources are hidden by default. Some tools accept include_archived to surface them.
  • Authentication uses OAuth2 via DAuth. Personal API keys are not supported in this server.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选