plane-mcp
Local MCP server for a self-hosted Plane instance that exposes tickets, cycles, modules, labels, and states as MCP tools with both read and mutation capabilities.
README
plane-mcp
Local MCP server for a self-hosted Plane instance. Exposes tickets (work items), cycles, modules, labels, and states as MCP tools, plus a small set of mutation tools (label add/remove, state changes, ticket create/update, module attach).
The Plane API key is read only from the PLANE_API_KEY environment
variable. It is never logged, never printed, and never included in tool
output — errors are redacted before being returned.
Setup
npm install
npm run build
export PLANE_BASE_URL="https://your-plane-instance.example.com"
export PLANE_API_KEY="..."
export PLANE_DEFAULT_WORKSPACE="..." # optional
export PLANE_DEFAULT_PROJECT_ID="..." # optional
export PLANE_DEFAULT_PROJECT_IDENTIFIER="..." # optional
export PLANE_ENABLE_WRITES="false" # optional; must be true for mutations
Copy .env.example to .env for reference (placeholders only — never
commit a real .env).
Run
npm start
# or during development:
npm run dev
The server speaks MCP over stdio.
MCP client config (stdio)
{
"mcpServers": {
"plane": {
"command": "node",
"args": ["/absolute/path/to/plane-mcp/dist/src/index.js"],
"env": {
"PLANE_BASE_URL": "https://your-plane-instance.example.com",
"PLANE_API_KEY": "${PLANE_API_KEY}",
"PLANE_DEFAULT_WORKSPACE": "${PLANE_DEFAULT_WORKSPACE}",
"PLANE_DEFAULT_PROJECT_ID": "${PLANE_DEFAULT_PROJECT_ID}",
"PLANE_ENABLE_WRITES": "false"
}
}
}
}
Exposed tools
| Tool | Purpose |
|---|---|
plane_list_workspaces |
List accessible workspaces |
plane_list_projects |
List projects in a workspace |
plane_resolve_project |
Resolve a project identifier (e.g. SDK) to its UUID |
plane_search_tickets |
Search work items by query/key |
plane_get_ticket |
Fetch a full ticket by UUID or key (e.g. SDK-250) |
plane_list_cycles |
List cycles (sprints/milestones) |
plane_get_current_cycle |
Fetch the current active cycle |
plane_list_cycle_tickets |
List tickets in a cycle |
plane_list_current_cycle_tickets |
One-shot "what's in the current cycle"; link summaries by default |
plane_list_modules |
List modules (epics/milestones) |
plane_list_module_tickets |
List tickets in a module |
plane_list_labels |
List labels for a project |
plane_add_labels_to_ticket |
Add labels without clobbering existing ones |
plane_remove_labels_from_ticket |
Remove labels from a ticket |
plane_update_ticket |
Patch basic ticket fields |
plane_add_comment |
Add a comment to a ticket/work item |
plane_list_states |
List states/statuses |
plane_set_ticket_state |
Move a ticket to a state by name or id |
plane_create_ticket |
Create a ticket, optionally attach to cycle/module |
plane_add_ticket_to_module |
Attach an existing ticket to a module |
plane_get_ticket_children |
List child tickets by filtering on parent |
Tools return normalized, allowlisted summaries rather than raw Plane API
records. Mutating tools accept dry_run: boolean for previews. Real writes
are disabled unless PLANE_ENABLE_WRITES=true is set, and each mutating call
must also pass confirm: true; successful ticket updates are verified by
re-fetching the record afterward, while comment creation returns the created
comment from Plane.
plane_add_comment accepts either comment_text or comment_html.
comment_text is escaped and converted to simple paragraph HTML before it is
sent to Plane. Comments default to access: "INTERNAL" unless supplied.
Testing
npm test
Unit tests mock fetch — no real Plane API key is required. Coverage
includes: auth header presence without leaking the key, redaction of
secrets from errors and result payloads, safe path construction, bounded
cursor pagination, schema limits, ticket-key normalization, and label-union
(non-clobbering) behavior.
Smoke test
With real credentials exported (see Setup), you can drive the server
directly with the MCP inspector, or manually via any MCP-compatible
client pointed at node dist/src/index.js. A minimal manual check:
node --input-type=module -e "
import { PlaneClient } from './dist/src/planeClient.js';
const client = new PlaneClient({
baseUrl: process.env.PLANE_BASE_URL,
apiKey: process.env.PLANE_API_KEY,
defaultWorkspace: process.env.PLANE_DEFAULT_WORKSPACE,
});
console.log(await client.paginate('/api/v1/workspaces/'));
"
Known quirks (self-hosted Plane)
GET /api/v1/workspaces/may 404 (no cross-workspace listing endpoint on some self-hosted deployments). SetPLANE_DEFAULT_WORKSPACEand use workspace-scoped tools directly instead of relying onplane_list_workspaces.- Advanced search may return no results when
project_idis included; the client retries workspace-wide and filters client-side. - Cycle-issue and module-issue list endpoints may return link objects
(
{ issue: <uuid> }) rather than full ticket records. Current-cycle tools keep link summaries by default; passinclude_full_tickets: trueto join normalized ticket summaries.
Security
- Credentials are read only from environment variables (
PLANE_API_KEY,PLANE_BASE_URL). - The API key is never printed, logged, or embedded in responses.
- Errors (HTTP failures, network failures, JSON parse failures) are passed through a redactor before being surfaced to the MCP client.
- Tool arguments used in Plane URL paths are validated and encoded before request construction.
- Tool outputs are allowlisted and redacted; raw Plane API records are not returned to MCP clients.
- Writes are off by default and require both
PLANE_ENABLE_WRITES=trueandconfirm: trueon each mutating call. .envis gitignored; only.env.examplewith placeholders is committed.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。