# ProductBrain [Health: Active]

**Category:** 📋 Product Management  
**Repository:** https://github.com/moxzas/productbrain-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 158  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/productbrain

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

## Tools
Capabilities this server exposes over MCP:

- **search** — Semantic search over the ProductBrain plan. Returns nodes ranked by similarity with ancestor paths. Use this FIRST for any lookup — never scan all nodes by label.
- **list_nodes** — List nodes in a project (bulk read). Optional type (goal|need|approach|job|task) and iteration filters.
- **get_tree** — Get a node in context. relation = context (ancestors+siblings+children, default) | ancestors | subtree | siblings. The endpoint's own names (up | down | lateral | context) are accepted too. There is no children-only view: subtree/children both return the full subtree.
- **get_changelog** — Read the plan's history: every add/update/delete/restore, newest first, each attributed to the app or to a named agent. This is how you find a node AFTER it was deleted — /nodes can no longer see it, but restore needs its id. Filter by nodeId, action (add|update|delete|restore), source (app|api_key), agentId, since/before (ISO). Page with before=<_meta.next_before>, never an offset. Then undo with mutate {action:'restore', nodeId}, restoring a parent before its children.
- **mutate** — Create/update/delete plan nodes and phases. action = add|update|delete|batch|addIteration|updateIteration|deleteIteration|classify. Put the rest of the v1 mutate body in payload (node | nodeId+data | mutations | iteration). Pass idempotencyKey (a UUID) to make a retry safe — a replay returns the original result instead of double-creating.
- **list_iterations** — List phases/iterations. current:true returns the active phase; status:active filters to active.
- **run_workflow** — Run the Story-Mapping methodology workflow (flow = add | task-curate | phase-assign). Returns the next prompt + opaque state, or a terminal changeset with a focus hint. Put the v1 workflow body in body.
- **set_view** — Drive the live canvas. command = { type: setViewMode|selectIteration|zoomToNode|expandNode|collapseNode|focusGoals, ... }.
- **read_view** — Read what the user is looking at now: view_mode, selected_iteration, expanded_nodes, focused_goals, selected_node.
- **list_webhooks** — List the outbound webhooks registered on a project (secrets are never returned). Shows lastStatus/lastDeliveryAt so you can spot a failing receiver.
- **create_webhook** — Register an outbound webhook. events defaults to all (node.added|updated|deleted, iteration.added|updated|deleted). Returns the signing secret ONCE — store it immediately.
- **update_webhook** — Reconfigure a webhook in place (same id). Change url and/or events without minting a new secret, or pass rotateSecret:true to mint a new one (returned once). Prefer this over delete+recreate, which breaks the receiver.
- **delete_webhook** — Remove a webhook registration. Irreversible — the secret is gone; re-registering mints a new one.
- **create_share_link** — Mint a PUBLIC read-only link to the project view. Pass expiresInDays for a TTL (otherwise it never expires) and settings (e.g. { includedGoalIds: [...] }) to scope it. Treat the returned token as a secret.
- **list_share_links** — List every share token minted for a project, with createdAt/expiresAt/revokedAt and an `active` flag. The audit half of the share loop.
- **revoke_share_link** — Revoke a share token. The public link stops serving within ~30s (edge cache); the record dies immediately.
- **list_members** — List the members (human and agent seats) on a project, plus the owner. Any member can read this.
- **add_agent_seat** — Mint an agent seat on a project (owner only, Team tier). Returns a pb_ API key ONCE — store it now, there is no retrieval.
- **invite_contributor** — Invite a guest contributor by email to one or more projects you own (owner only, Team tier). Sends a passwordless Clerk invite; one seat regardless of project count.
- **revoke_member** — Remove a member (human or agent) from a project. Removing an agent seat revokes its API key once its last membership is gone.
- **list_projects** — List the projects you own or are a member of. Archived ones are hidden unless includeArchived is true.
- **create_project** — Create a project you own and seed its system "Later" phase, so nodes can be added immediately. id defaults to a slug of the name.
- **rename_project** — Change a project's display name (owner only). The id is immutable — keep using the same projectId afterwards.
- **archive_project** — Archive (archived:true) or unarchive (false) a project you own. Archiving hides it from list_projects without deleting anything — reversible, unlike delete.
- **export_okf** — Serialize the whole plan to a portable OKF file bundle (markdown with frontmatter, one file per node). Use when you want the plan as files — for a repo, a diff, or handing it to a tool that reads markdown — rather than as JSON.
- **tier_status** — Read your own tier, API access, AI-credit balance, seat/project/node limits and billing period. Check this BEFORE a large run so you self-throttle instead of discovering a 402 mid-flight.
- **submit_feedback** — Tell the ProductBrain team how PB should improve: a feature you needed, friction you hit, a bug, or a general note. Stored for the team to read, not added to any plan. Make the summary self-explanatory (there is no reply channel). Keep credentials, customer records and confidential plan content out. Max 20 per 24h, so batch related points.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "productbrain": {
    "command": "npx",
    "args": ["-y","@productbrain-com/mcp"],
    "env": {
      "PRODUCTBRAIN_API_KEY": "",
      "PRODUCTBRAIN_PROJECT_ID": "",
      "PRODUCTBRAIN_API_URL": ""
    }
  }
}
```

**Requires environment variables:** `PRODUCTBRAIN_API_KEY`, `PRODUCTBRAIN_PROJECT_ID`, `PRODUCTBRAIN_API_URL` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What ProductBrain MCP server does

ProductBrain MCP server gives MCP clients access to a ProductBrain product plan. It covers structured planning data such as goals, needs, bets, and jobs, along with phases and project membership. The server exposes read, write, workflow, administration, and sharing operations through MCP tools.

For plan discovery, `search` provides semantic lookup and is intended as the first tool for searches. `list_nodes` supports bulk reads with optional type and iteration filters, while `get_tree` returns a node with surrounding context such as ancestors, siblings, children, or a subtree. Changes go through `mutate`, which can create, update, or delete nodes and phases.

This fits the Product Management category when an agent needs to maintain a shared product plan rather than only answer questions about static documentation.

## How it works

The ProductBrain MCP server is a thin transport layer over ProductBrain's versioned v1 REST API. Each MCP tool corresponds to an API endpoint, and the API remains the underlying contract. Responses pass through the API's `_meta` coaching data so clients receive the same guidance returned by the REST service.

The plan tools include iteration lookup, story-mapping workflows, OKF export, and changelog access. `set_view` and `read_view` control and inspect the live canvas. Project tools list, create, rename, and archive projects; archiving is reversible. Webhook tools manage registrations and secrets, while share-link tools create public read-only links, audit them, and revoke them.

Membership tools list project members, add agent seats, invite contributors, and revoke access. `tier_status` reports the account tier, API access, credit balance, and limits. Team-only operations return a tier error when used with a Builder key.

## Setup and configuration

Install the published npm package with an MCP client's standard server configuration. The README provides examples for Claude Desktop and Claude Code using `npx -y @productbrain-com/mcp`; Cursor and other clients use the same command, arguments, and environment entries.

Set `PRODUCTBRAIN_API_KEY` to a `pb_` key from the ProductBrain application. `PRODUCTBRAIN_PROJECT_ID` is optional because tools can receive a project ID directly. `PRODUCTBRAIN_API_URL` is also optional and defaults to `https://productbrain.com/api/v1`.

The repository includes headless spike and parity scripts for testing against a real deployment. The documented approach uses a throwaway project, and the parity script archives its temporary project because no project-delete endpoint exists.

## Tools and capabilities

- Search and inspect plan data with semantic search, node lists, and contextual trees.
- Create, update, and delete nodes or phases, with idempotency support for `mutate` retries.
- Run the Story-Mapping workflow using add, task-curate, or phase-assign operations.
- Export the plan as an OKF file bundle and inspect its changelog.
- Manage projects, the live canvas, webhooks, public read-only links, members, agent seats, and contributor invitations.

## Limitations and notes

`create_project` is not retry-safe because its project-creation operation reads the idempotency header after the relevant mutation step. Supplying an explicit project ID is recommended. Webhook creation returns the signing secret only once, and adding an agent seat also returns its `pb_` key only once.

Public share links are read-only but accessible to anyone with the link, so revoke links that are leaked or no longer needed. Agent access is removed when the agent's last project membership is revoked. Team-tier tools require the Team tier. The source repository is MIT licensed, and the MCP registry name is `io.github.moxzas/productbrain`.

_Full upstream README: https://allmcps.com/mcp/productbrain/readme_

