ProductBrain

io.github.moxzasv0.1.0更新於 Oct 9, 2026

Drive your ProductBrain product plan (goals, needs, bets, jobs) from any MCP client.

概覽

AI 產生的概覽

讓助理搜尋、讀取與修改 ProductBrain 產品計畫(目標、需求、下注、任務),並操作其實時畫布。

功能
它是 ProductBrain 版本化 v1 REST API 的輕量傳輸層,每個面向代理的端點對應一個工具。工具涵蓋語意搜尋、節點批次讀取、樹狀脈絡、節點與階段變更、迭代清單、故事映射方法論工作流程、OKF 匯出以及計畫變更記錄。它也能操作或讀取即時畫布,並管理專案、Webhook、分享連結、成員、代理席位與方案狀態。
適用情境
當團隊把產品計畫放在 ProductBrain,並希望助理在聊天用戶端中查詢內容、提出或執行計畫變更、執行故事映射方法論,或管理專案、Webhook 與分享連結時,適合使用。
執行需求
透過 npx 以 stdio 方式在本機執行 npm 套件 @productbrain-com/mcp,因此需要 Node.js。需要在 PRODUCTBRAIN_API_KEY 中提供 ProductBrain API 金鑰(應用程式 API Keys 設定中的 pb_ 金鑰;免費方案也包含 API 存取)。PRODUCTBRAIN_PROJECT_ID 為選用,PRODUCTBRAIN_API_URL 預設指向託管 API。僅支援桌面用戶端。
安裝前請注意
API 金鑰屬於機密,可存取你的計畫。mutate 可建立、更新與刪除節點和階段,專案工具可封存專案;Webhook 與分享連結工具可註冊端點或產生公開唯讀連結,且 create_webhook 與 add_agent_seat 回傳的簽章密鑰或金鑰僅顯示一次。部分工具僅限 Team 方案。計畫資料會傳送到 ProductBrain 的託管 API。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ProductBrain,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

ProductBrain MCP server

Drive your ProductBrain plan from an MCP client — Claude Desktop, Cursor, Claude Code — with tools for search, read, mutate, the methodology workflow, and the live view.

Design — a thin shim, on purpose

This server is a thin transport over ProductBrain's versioned v1 REST API. Each tool is one call to an existing /api/v1 endpoint. The REST contract stays canonical:

  • It's stable when the MCP spec churns — the contract you depend on is the frozen v1 API, not the protocol.
  • You can drop to raw HTTP or bring your own LLM at any time; MCP is one front-door, not the only one.
  • Responses carry the same in-band _meta coaching the API returns, so your agent self-corrects.

Install

jsonc
// Claude Desktop — claude_desktop_config.json{  "mcpServers": {    "productbrain": {      "command": "npx",      "args": ["-y", "@productbrain-com/mcp"],      "env": {        "PRODUCTBRAIN_API_KEY": "pb_your_key",        "PRODUCTBRAIN_PROJECT_ID": "your-project-id"      }    }  }}
bash
# Claude Codeclaude mcp add productbrain \  -e PRODUCTBRAIN_API_KEY=pb_your_key \  -e PRODUCTBRAIN_PROJECT_ID=your-project-id \  -- npx -y @productbrain-com/mcp

Cursor and other clients: add an mcpServers entry with the same command/args/env.

Config (env)

VarRequiredDefault
PRODUCTBRAIN_API_KEYyes— (your pb_ key from the app's API Key modal)
PRODUCTBRAIN_PROJECT_IDno— (tools also accept a projectId argument)
PRODUCTBRAIN_API_URLnohttps://productbrain.com/api/v1

Tools

Every agent-facing /api/v1 endpoint has a tool. One tool, one endpoint, same _meta coaching passed back verbatim.

The plan

ToolMaps toUse
searchGET /searchSemantic search — use first for any lookup
list_nodesGET /nodesBulk read, optional type/iteration filter
get_treeGET /treeA node in context (ancestors/siblings/children/subtree)
mutatePOST /mutateCreate/update/delete nodes + phases; pass idempotencyKey to make retries safe
list_iterationsGET /iterationsPhases; current:true for the active one
run_workflowPOST /workflowStory-Mapping methodology (add / task-curate / phase-assign)
export_okfGET /export-okfThe plan as a portable OKF file bundle
get_changelogGET /changelogPlan history: every add/update/delete/restore, attributed to the app or a named agent

The view

ToolMaps toUse
set_view / read_viewPOST /view-command, GET /view-stateDrive / read the live canvas

Projects

ToolMaps toUse
list_projectsGET /projectsProjects you own or are a member of; includeArchived for the rest
create_projectPOST /mutate {addProject}Bootstrap a brain — seeds the system "Later" phase. Pass an explicit id: addProject runs before mutate reads Idempotency-Key, so it is not retry-safe
rename_projectPOST /mutate {renameProject}Change the display name; the id is immutable
archive_projectPATCH /projectsHide/unhide without deleting (reversible)

Webhooks

ToolMaps toUse
list_webhooksGET /webhooksRegistered hooks with lastStatus — spot a failing receiver
create_webhookPOST /webhooksRegister; returns the signing secret once
update_webhookPATCH /webhooksChange url/events in place, or rotateSecret:true. Prefer over delete+recreate
delete_webhookDELETE /webhooksRemove a registration

Share links

ToolMaps toUse
create_share_linkPOST /shareMint a public read-only link; expiresInDays for a TTL
list_share_linksGET /shareAudit every token minted, with an active flag
revoke_share_linkDELETE /shareKill a leaked or stale link

Members and budget

ToolMaps toUse
list_membersGET /membersHumans and agent seats on a project
add_agent_seatPOST /membersMint an agent seat; the pb_ key is returned once (Team tier)
invite_contributorPOST /membersPasswordless guest invite, scoped to the projects you name (Team tier)
revoke_memberDELETE /membersRemove a seat; an agent's key dies with its last membership
tier_statusGET /tier-statusYour tier, API access, credit balance and limits — check before a large run
submit_feedbackPOST /feedbackTell the PB team what to improve: feature requests, friction, bugs, notes

Full API reference: https://productbrain.com/docs/llm-guide.md.

Source, licence, registry

  • Source: https://github.com/moxzas/productbrain-mcp (MIT). Issues and pull requests welcome there.
  • npm: @productbrain-com/mcp. Every release is published from the repository's tag of the same version.
  • MCP registry name: io.github.moxzas/productbrain (server.json in this repo is the registry manifest).
  • The server sends User-Agent: productbrain-mcp/<version> so you can tell MCP traffic from raw REST calls in your own logs.

Proving it works

Two headless scripts in the repository (src/spike-proof.ts, src/parity-proof.ts; not shipped in the npm package), both run against a real deployment. Use a throwaway project on your own account:

bash
PRODUCTBRAIN_API_KEY=pb_your_key \PRODUCTBRAIN_PROJECT_ID=your-sandbox-project \npm run spike     # transport + auth + one read + one write
PRODUCTBRAIN_API_KEY=pb_your_key \npm run parity    # every non-plan tool once, on a throwaway project

parity creates its own throwaway project and cleans up after itself (archiving it at the end — there is no project-delete endpoint).

The Team-tier tools (add_agent_seat, invite_contributor) return 403 team_tier_required on a Builder key, and that counts as a pass — with one caveat worth knowing. It proves the shim reached the right route and passed the error and its _meta tip straight through; it does not validate the request body, because the tier gate runs before the body is read. Run parity with a Team-tier key to check those two properly.

來源:README.md,提交 501f630

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0最新Oct 9, 2026