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 分