Planka MCP

io.github.omnicoreos由 GitHub 账号 omnicoreos 发布v0.3.0更新于 Oct 24, 2026

Planka 2.x MCP server with verified card, task, comment, label, and list operations.

已验证STDIO仅桌面效率与工作流开发者工具

概览

AI 生成的概览

让助手读写 Planka 2.x 看板的 MCP 服务器,覆盖卡片、任务、评论、标签、列表、附件与成员,写入后会回读校验。

可以做什么
  • 查看看板:列出可见的项目、看板和列表,一次调用获取看板摘要,并按列、文本、标签或成员搜索和读取卡片。
  • 创建与编辑卡片:新建、更新、移动、复制、归档或删除卡片,并添加清单任务。
  • 管理标签与评论:创建、重命名、改色或删除标签,为卡片设置标签,新增、读取、修改或删除评论。
  • 管理列表与附件:创建、重命名、调整位置或删除列,上传、列出、查看或删除卡片附件。
  • 跟踪人员与历史:分配或取消成员,列出可分配用户,查看卡片历史与看板动态,并查询服务器自身账号与访问策略。
适用场景
适合团队把工作放在自建 Planka 2.x 看板上,并希望助手在会话中读取看板、梳理卡片、写评论或创建和移动卡片。也适合需要受限代理账号、只读或白名单访问的场景。
运行要求
需要 Node.js 18 或更高版本及 npx、可访问的 Planka 2.x 实例,以及能看到目标项目和看板的专用 Planka 用户。需设置 PLANKA_BASE_URL,并二选一:PLANKA_API_KEY(推荐)或 PLANKA_AGENT_EMAIL 与 PLANKA_AGENT_PASSWORD,两者不可同时设置。另有可选变量用于限定看板、项目、列表和工具。
安装前请注意
服务器以真实 Planka 用户身份操作,可创建、移动、归档并永久删除卡片、列表(连同其中所有卡片)、评论、标签和附件。PLANKA_AGENT_PASSWORD 会保存在客户端配置文件中,建议改用 PLANKA_API_KEY。PLANKA_READ_ONLY 只是隐藏写入工具,并不会让账号变为只读,需配合 viewer 角色。白名单和受保护列表只是护栏,不是权限控制。不要在问题报告中粘贴凭据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Planka MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

planka-mcp

Control a Planka 2.x board from Claude Code through 41 MCP tools. Writes are re-read and verified, so a reported success matches the board. An optional workflow turns that board into durable memory for agent work.

Leer en español

text
You talk to Claude Code          │          ▼  planka-mcp (stdio) ─── HTTPS + JSON ───▶ Planka 2.x          │                                  │          └──── reads the result back ◀──────┘

[!WARNING] The old @gogogadgetbytes/planka-mcp package can report success while doing nothing on Planka 2.x. Read the five silent-failure gotchas before replacing an existing installation.

New to MCP? Read this first

MCP is a standard that lets Claude Code call tools provided by another program. This repository runs a small local program that translates those tool calls into Planka API requests. It needs Planka credentials because it acts as a dedicated Planka user, not as Claude itself. The credentials stay on your machine and are never written into the project-level .mcp.json file. Claude Code loads MCP servers when a session starts, so restart it after setup or configuration changes.

Requirements

  • Node.js 18 or newer and npx
  • A reachable Planka 2.x instance
  • A dedicated Planka user that can see the target project and board
  • One MCP client: Claude Code, Codex CLI, Cursor or VS Code
  • A project-manager role only if setup must create a board

Linux and macOS are supported. No Bun runtime is required.

Install

One command per client. All of them run the published package with npx, so there is nothing to clone and nothing to build.

ClientOne-liner
Claude Code (plugin: MCP + skills + preflight)/plugin marketplace add omnicoreos/planka-mcp then /plugin install planka@planka-mcp
Claude Code (server only)claude mcp add --scope user --transport stdio planka --env PLANKA_BASE_URL=https://planka.example.com --env PLANKA_API_KEY=<key> -- npx -y @omnicoreos/planka-mcp
Codex CLIcodex mcp add planka -- npx -y @omnicoreos/planka-mcp (then add the env block, below)
Cursor[Add to Cursor]
VS Code[Add to VS Code]
Any of them, guidednpx @omnicoreos/planka-mcp init --client claude|codex|cursor|vscode|print

The Cursor and VS Code links carry a placeholder key, never a real one: a deeplink ends up in browser history. Both clients ask for the credential themselves — VS Code through a promptString input, so the committed .vscode/mcp.json holds no secret.

planka-mcp init

bash
npx @omnicoreos/planka-mcp init --client claude     # claude mcp add, user scopenpx @omnicoreos/planka-mcp init --client codex      # appends to ~/.codex/config.tomlnpx @omnicoreos/planka-mcp init --client cursor     # merges ~/.cursor/mcp.json (0600) + prints the deeplinknpx @omnicoreos/planka-mcp init --client vscode     # writes .vscode/mcp.json with a secret promptnpx @omnicoreos/planka-mcp init --client print      # prints every snippet, writes nothing

With a terminal attached it asks for what it needs; --base-url, --api-key, --board, --email and --password make it non-interactive. Before writing anything it runs one authenticated GET /api/users/me, which is what catches a base URL pointing at the SPA instead of the API, or a credential that never worked. --dry-run prints the exact change and touches nothing.

Every emitter merges: an existing planka entry is reported and left alone, and the other servers in the same file are preserved. Files written into your home directory get mode 0600.

./scripts/setup.sh is an alias for init --client claude. The older guided installer — the one that also picks or creates a board and runs the full create/label/comment/delete smoke test — is still node scripts/setup.mjs.

The Claude Code plugin

The plugin installs the MCP server, the two workflow skills, and a SessionStart preflight that catches a missing credential or an http:// base URL before the first tool call:

text
/plugin marketplace add omnicoreos/planka-mcp/plugin install planka@planka-mcp

Claude Code asks for the base URL and the API key when the plugin is enabled and stores the key in the OS keychain, not in settings.json. Codex reads the same repository through .codex-plugin/plugin.json and .agents/plugins/marketplace.json.

Plugins cannot ship permission rules, which is the one thing that does not travel: use PLANKA_READ_ONLY and PLANKA_DISABLED_TOOLS (below) instead of a client-side deny list — they work in every runtime and cost no context.

Codex env block

codex mcp add does not take credentials, so add them to ~/.codex/config.toml (or let init --client codex do it):

toml
[mcp_servers.planka]command = "npx"args = ["-y", "@omnicoreos/planka-mcp"]env = { PLANKA_BASE_URL = "https://planka.example.com", PLANKA_API_KEY = "<key>" }

Verify it works

First, inspect Claude Code's configuration:

bash
claude mcp listclaude mcp get planka

Then fully restart Claude Code — MCP servers are loaded when a session starts. If you configured the server in a project's .mcp.json, open Claude Code in that project and approve the project-scoped server when prompted. If you installed the plugin, /plugin shows it, and its Errors tab shows a server that failed to start.

Ask Claude Code:

text
Show me my Planka projects and boards. In the Pending list, create a card named"MCP is working" with the description "Created from Claude Code", then read it back.

If Claude cannot see the tools, restart first and then follow Troubleshooting.

Authentication

Two ways to authenticate, and they are mutually exclusive: setting both is a configuration error, because Planka reads Authorization first and silently ignores x-api-key when both arrive.

PLANKA_API_KEY (recommended)PLANKA_AGENT_EMAIL + PLANKA_AGENT_PASSWORD
Sent asX-Api-Key: <prefix>_<secret> on every requestPOST /api/access-tokens, then Authorization: Bearer
Login round-tripnoneone per session, refreshed every 25 minutes
Sign-in rate limitnot subject to it10 logins per identity per 60 s — reached fast when several agents start at once
Password on disknoneyes, in the client's configuration file
Attachment downloadsworksworks

Recipe: a scoped agent user with an API key

Four steps, run by a Planka admin. The result is a user that can only ever see the boards you name — enforced by Planka itself, not by this server.

  1. Create the user with the lowest global role. In the Planka UI: Administration → Users → Add user, role boardUser. A boardUser cannot create projects and cannot grant itself memberships.

  2. Give it membership on the boards it should work on, and only those:

    bash
    curl -X POST "$PLANKA_URL/api/boards/<BOARD_ID>/board-memberships" \  -H "Authorization: Bearer $ADMIN_TOKEN" \  -H "Content-Type: application/json" \  -d '{"userId":"<USER_ID>","role":"editor"}'

    Use "role":"viewer" for an agent that should read and comment but never create or move cards. GET /api/projects then returns only the projects derived from these memberships; every other board answers 404.

  3. Issue the API key (admin-only endpoint). The key is shown once, in included.apiKey; Planka stores only its hash and prefix:

    bash
    curl -X POST "$PLANKA_URL/api/users/<USER_ID>/api-key" \  -H "Authorization: Bearer $ADMIN_TOKEN"
  4. Configure the server with the key and nothing else. Remove PLANKA_AGENT_EMAIL and PLANKA_AGENT_PASSWORD:

    json
    {  "mcpServers": {    "planka": {      "command": "npx",      "args": ["-y", "@omnicoreos/planka-mcp"],      "env": {        "PLANKA_BASE_URL": "https://planka.example.com",        "PLANKA_API_KEY": "abcd1234_0123456789abcdef0123456789abcdef"      }    }  }}

Rotating a key is step 3 again: issuing a new one invalidates the old.

Scoping the server

An API key inherits its user's permissions — it carries no scopes of its own. Scoping therefore happens in three layers, and each covers something the others cannot.

Layer 1 · PLANKA          the only layer an agent cannot talk its way around  boardUser + board memberships + the API key above  ⇒ everything outside the allowed boards is 404/403 at the API
Layer 2 · THIS SERVER     ergonomics, and defence against the agent itself  the environment variables below; they travel with the package,  so Claude Code, Codex and Cursor all get the same rules
Layer 3 · THE CLIENT      survives a downgrade of this package  .claude/settings.json deny/ask rules, Codex enabled_tools/disabled_tools

Layer 1 has real enforcement but cannot express "do not call planka_get_board, it costs forty times more context". Layer 2 can, and reaches every runtime. Layer 3 stays true even if this package is pinned back to an older version.

Layer 2: the environment variables

VariableValueWhat it does
PLANKA_DEFAULT_BOARD_IDone board idboardId becomes optional on every tool that takes one, and defaults to this board. Saves the planka_get_structure call an agent makes only to recover an id that never changes
PLANKA_ALLOWED_BOARD_IDScomma-separated board idsBoards outside the list are filtered out of planka_get_structure, and any call naming one is refused before the request leaves the process
PLANKA_ALLOWED_PROJECT_IDScomma-separated project idsSame, one level up
PLANKA_READ_ONLYtrue or 1The twenty-seven write tools disappear from tools/list and are refused if called anyway
PLANKA_HIDE_DEPRECATEDtrue or 1Drops the seven deprecated tools (manage_labels, manage_lists, manage_comment, add_comment, get_board, list_cards, list_lists) from tools/list, saving ~6.8 kB of context. They stay callable, so a cached tool list still works
PLANKA_DISABLED_TOOLScomma-separated tool namesSwitches individual tools off. The planka_ prefix is optional: get_board and planka_get_board mean the same thing
PLANKA_PROTECTED_LIST_IDScomma-separated list idsRefuses creating or moving cards into those lists, editing or deleting the lists themselves, and moving, archiving or deleting the cards out of them
PLANKA_SUMMARY_DECISION_LISTScomma-separated column names or idsWhich columns planka_board_summary returns cards from when the call does not say. Unset: it returns no cards, only the shape of the board
PLANKA_SUMMARY_HIGHLIGHT_LABELone label nameThe label that marks a card as unblocked in planka_board_summary. Unset: nothing is highlighted
PLANKA_MCP_PREFLIGHTfullRead by the plugin's SessionStart hook only: also spawn the server binary and wait for its stdio banner. Off by default, because on a cold cache it costs an npx download
PLANKA_MCP_COMMANDa commandRead by the same hook: the command to spawn instead of npx -y @omnicoreos/planka-mcp (a local checkout, a pinned binary)

The server ships with no board vocabulary of its own. Column names and "ready" labels are yours, in your language: the last two variables are how a deployment tells the summary what its board looks like. A hint that matches nothing comes back in warnings, never as an empty answer.

json
"PLANKA_SUMMARY_DECISION_LISTS": "decision,probalo,miralo","PLANKA_SUMMARY_HIGHLIGHT_LABEL": "decidido"

Allowlists are by id, never by name. Any board editor can rename a board, so a name-based allowlist is bypassed with one edit. Planka ids are stable.

Two notes on what these are and are not:

  • PLANKA_READ_ONLY hides tools; it does not make the account read-only. Pair it with "role":"viewer" in step 2 above if that is what you actually need.
  • PLANKA_PROTECTED_LIST_IDS is a guard-rail, not a permission: Planka has no per-list rights. It is the right tool for "do not move cards to Merged on your own", and the wrong one for anything security-critical.

Example — an agent that reads one board and comments, and nothing else:

json
"env": {  "PLANKA_BASE_URL": "https://planka.example.com",  "PLANKA_API_KEY": "abcd1234_0123456789abcdef0123456789abcdef",  "PLANKA_DEFAULT_BOARD_ID": "1234567890123456789",  "PLANKA_ALLOWED_BOARD_IDS": "1234567890123456789",  "PLANKA_DISABLED_TOOLS": "get_board",  "PLANKA_PROTECTED_LIST_IDS": "9876543210987654321"}

The 41 tools

IDs are strings. Start with planka_get_structure, then use IDs returned by Planka; do not guess them.

ToolWhat it does
planka_get_structureLists visible projects, boards, and lists
planka_get_boardDeprecated. Reads one board whole, up to limit cards
planka_board_summaryOne-call briefing: columns with counts, labels with ids, and optionally the cards of named columns
planka_find_cardsThe one read over cards: one column (listId), or a board searched by text, label or member
planka_list_listsDeprecated. Alias of planka_board_summary with cardsFrom: []
planka_list_cardsDeprecated. Alias of planka_find_cards with listId
planka_create_cardCreates a card and can attach tasks and labels
planka_get_cardCard digest; detail: "full" and withComments on demand
planka_update_cardUpdates title, description, due date, or completion
planka_move_cardMoves a card to another list or position
planka_delete_cardPermanently deletes a card
planka_create_tasksAdds checklist tasks to a card
planka_update_taskRenames or completes a task
planka_delete_taskDeletes a task
planka_create_labelCreates a board label
planka_update_labelRenames a label or changes its color
planka_delete_labelDeletes a label from the board and from every card
planka_manage_labelsDeprecated. Alias routing action to the three above
planka_set_card_labelsAdds or removes labels and verifies the final state
planka_create_commentAdds a comment through Planka 2.x's dedicated endpoint
planka_get_commentsPaginated comments (limit, beforeId, all)
planka_update_commentRewrites an existing comment
planka_delete_commentDeletes a comment
planka_add_commentDeprecated. Alias of planka_create_comment
planka_manage_commentDeprecated. Alias routing action to update/delete
planka_create_listCreates a list (column) on a board
planka_update_listRenames, repositions or reclassifies a column
planka_delete_listDeletes a column and every card in it
planka_manage_listsDeprecated. Alias routing action to the three above
planka_add_attachmentUploads a local file to a card and verifies it landed
planka_get_attachmentsLists a card's attachments with type, size, and download URL
planka_view_attachmentReturns an attachment's content; images come back viewable
planka_delete_attachmentDeletes an attachment
planka_card_historyOne card's activity log as human lines: created, moved, assigned, tasks completed
planka_board_activityWhat moved on a board since a date, grouped by card
planka_set_card_membersAssigns or unassigns people and verifies the final membership
planka_list_usersThe people who can be assigned, with a board-scoped fallback
planka_whoamiThis server's account, board role, Planka version and access policy
planka_duplicate_cardCopies a card with its tasks, labels and members
planka_archive_cardArchives a card into the board's hidden archive, or restores it
planka_move_list_cardsMoves every card of one column into another, with counts

The reads follow one principle: a small digest by default, the detail through parameters. planka_board_summary opens a session in one call; planka_find_cards with a listId reads a whole column in ONE request through GET /api/lists/:id, so total is the real size of the column and the answer carries truncated: false; the same tool without a listId searches the board. Measured on the reference board of 185 cards, the deprecated planka_get_board went from 56,112 to 17,215 characters and planka_get_structure (withLists: false) from 696 to 203, while a 159-card column went from five requests to two. Every read reports total, returned and hasMore, so a clipped answer never looks complete, and every board-derived read carries excludesArchived: true because Planka keeps archive and trash out of the board read.

Every input field and a complete payload for every tool are in Tools reference.

What the client learns on connect

The initialize handshake returns a short set of server instructions — how to open a session, where IDs come from, why every comment on a card matters, and that Planka answers 404 where it means 403. Claude Code puts them in the session system prompt and Codex CLI reads them alongside the tool list, so the shared guidance is stated once instead of repeated in 41 tool descriptions. Every tool also publishes a display title and all four MCP behavioural hints explicitly, rather than inheriting the spec's pessimistic defaults, plus the two _meta keys Claude Code acts on: a forced confirmation prompt on the tools that delete data, and a raised output ceiling on planka_view_attachment. Details in Server instructions and annotations.

Resources and prompts

Two more surfaces, and both cost nothing until something asks for them, which is why the long-form guidance lives here instead of in the instructions everyone pays for on every session. Claude Code reads both; Cursor reads both; Codex supports neither, so nothing here is load-bearing.

Resources serve the guides that ship inside the package. In Claude Code they are @-mentioned, in Cursor they come from the resource picker:

URIWhat it is
planka://workflow/readmeThe optional board workflow: columns, labels, who moves what
planka://workflow/board-templateThe columns and labels to create on a fresh board
planka://workflow/skills/orchestratorThe director skill, verbatim
planka://workflow/skills/close-cardThe closing skill, verbatim
planka://gotchas/planka-2xHow Planka 2.x actually behaves when a call answers nonsense
planka://labels/colorsEvery color planka_create_label and planka_update_label accept, generated from the schema

Prompts are three ways to start, surfaced by Claude Code as /mcp__planka__<name>:

PromptArgumentsWhat it does
planka-open-sessionboardId?, since?Summary, then recent movement, then the columns that matter — in that order
planka-close-cardcardId, listId?Read the whole thread, write an honest closing comment, move it, check verified
planka-board-triageboardId?, lists?Walk the columns waiting on a person and turn each card into one question

Optional agent workflow

The MCP server works on its own. The optional method solves a different problem: preserving why work exists, what changed, and what remains true between agent sessions.

Adopt it in layers:

  1. Use only the MCP tools.
  2. Add the board states, card template, and human handshakes.
  3. Add one worktree per card with a director coordinating workers.

Start with A board that survives the session. The board template, copyable Claude Code skills, and optional worktree helper are independent pieces.

Troubleshooting

When reporting a bug, include the Planka version, Node version, the tool name, and the error text. Never paste credentials or access tokens.

Credits and license

This is an MIT-licensed fork of gogogadgetbytes/planka-mcp, not an original-from-scratch implementation. See CREDITS.md for the upstream attribution, maintained fixes, and unanswered pull requests.

See LICENSE for the original and current contributor notices.

Development

bash
npm cinpm run buildnpm test

The real smoke test is opt-in because it mutates a writable board and then cleans up after itself. It drives all 41 tools over stdio and cross-checks every write against the raw Planka API — over 90 named checks:

bash
export PLANKA_BASE_URL="https://planka.example.com"export PLANKA_AGENT_EMAIL="[email protected]"export PLANKA_AGENT_PASSWORD="<YOUR_PASSWORD>"export PLANKA_SMOKE_BOARD_ID="1234567890123456789"npm run test:smoke

npm run test:smoke builds first, so it cannot test a stale dist/. Four optional variables tune it:

VariableWhat it does
PLANKA_SMOKE_LIST_IDColumn where the scratch card is created. Without it, a scratch-looking column is picked, falling back to the first one
PLANKA_SMOKE_FAIL_AFTERInjects a failure after check <n>, to prove that cleanup still runs
PLANKA_MCP_ENTRYServer entry point. Defaults to dist/index.js
VERBOSESet to 1 to print each check's payload

See CONTRIBUTING.md before opening a change. Release identity is centralized in project.identity.json; update it and run npm run sync:identity before publishing under your own namespace.

来源:README.md,提交 44a8a9c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分