Pierre
A knowledge graph for design teams.
Design teams accumulate knowledge faster than they can organise it. A spacingrule agreed in March, a carousel pattern that tested badly, the reason acomponent was built one way and not another. It ends up scattered across docs,threads, and people's memory, and by the time someone needs it nobody can findit.
Pierre has two halves:
- An MCP server that plugs into Claude. Designers and developers install itonce, and from then on Claude reads the team's conventions before answeringand writes new decisions back as they are made.
- A graph viewer that renders the same knowledge spatially, so you can seehow decisions connect instead of scrolling a folder tree.
Both read the same plain Markdown folder. There is no database, no backend, andno service to sign up for — which means a team shares its knowledge by puttingthat folder in git.
Install the MCP server
Requires Node.js 20.19+ or 22.12+.
git clone https://github.com/gustavocambareri/Pierre_MCP.git
cd Pierre_MCP
npm install
Point Claude at it. PIERRE_KNOWLEDGE_DIR is the folder your team's Markdownlives in — anywhere you like:
claude mcp add pierre --scope user \
--env PIERRE_KNOWLEDGE_DIR="$HOME/pierre-knowledge" \
-- node "$PWD/server/index.mjs"
Verify it connected:
claude mcp list # pierre: … - ✔ Connected
For Claude Desktop, add the same thing to claude_desktop_config.json:
{
"mcpServers": {
"pierre": {
"command": "node",
"args": ["/absolute/path/to/pierre/server/index.mjs"],
"env": { "PIERRE_KNOWLEDGE_DIR": "/absolute/path/to/your-knowledge" }
}
}
}
That's the whole setup. Ask Claude "what's our spacing rule?" and it searchesthe store before answering.
What Claude can do with it
| Tool | When Claude reaches for it |
|---|---|
search_knowledge |
Before answering anything about how your team designs or builds — so the answer matches decisions you already made |
get_document |
When a search excerpt looks relevant and it needs the full rule |
record_decision |
The moment you settle a convention, so it survives the session |
list_documents |
To see everything the team has written down |
The two that matter are search and record. Search is described so Claudecalls it unprompted at the start of design work — nobody remembers to ask fortheir own conventions. Record is a single call with no ceremony, because acapture step with friction is a capture step that doesn't happen.
Using it with your team
The knowledge store is a folder of Markdown files, so sharing it is just git:
cd ~/pierre-knowledge
git init && git add . && git commit -m "Team knowledge"
git remote add origin [email protected]:your-team/design-knowledge.git
git push -u origin main
Teammates clone that repo and point their own PIERRE_KNOWLEDGE_DIR at it. Pullto get everyone's decisions; push to share yours. Decisions arrive as readablediffs you can review like any other change.
Each document is plain Markdown with frontmatter — editable by hand, no toolrequired:
---
title: Spacing System
project: atlas # optional; omit for team-wide knowledge
author: your-name # or 'team' for collectively-owned decisions
tags: [spacing, layout]
created: 2026-03-09
---
8px base unit, with a 4px step for tight UI.
**Why:** the ratio between gaps carries more meaning than absolute values.
[!TIP]Always write the why. A decision without its rationale is one the teamrelitigates in six weeks — and the rationale is what makes Claude apply therule correctly to a case you didn't anticipate.
The graph viewer
- Spatial navigation — a 3D force-directed graph you can pan, zoom, andexplore, with hand-composed positions so the layout reads deliberatelyrather than like a hairball.
- Four ways to filter — by scope, project, author, or free-text searchacross titles, tags, descriptions, and section headings.
- The author lens — dim everything except one person's contributions to seewho holds which knowledge, and where a single point of failure is forming.
- Typed relationships —
foundation,reference, andsiblingedges aredrawn differently, so how two documents relate is legible at a glance. - Readable content — every node carries full Markdown, a description, and asection outline; click any node to read it without leaving the graph.
Running the viewer
npm run dev
Open the address Vite prints (usually http://localhost:5173) and the demograph loads immediately.
npm run build # production build to dist/
npm run preview # serve that build locally
npm run lint # eslint
[!NOTE]The bundled graph is entirely fictional. Meridian, Lumen, Atlas, Cadence,Harbor, and Verso are invented engagements, and every person credited in themis made up. Nothing here is real client work.
Viewer data format
The viewer reads src/data/graph-data.json. Replace it with your own and theapp is yours.
A node looks like this:
{
"id": "projects/atlas/block-library",
"name": "Atlas — Block Library",
"slug": "block-library",
"scope": "project",
"project": "atlas",
"author": "your-name",
"tags": ["atlas", "blocks", "templates"],
"created": "Mon Mar 16 2026 01:00:00 GM",
"fileSize": 8200,
"description": "Reusable blocks and page templates for the Atlas redesign.",
"body": "# Atlas — Block Library\n\n## Navigation\n\nSticky header that…",
"sections": ["Atlas — Block Library", "Navigation"],
"connections": ["_team/design-system-patterns"]
}
And an edge connects two of them:
{
"source": "_team/design-system-patterns",
"target": "projects/atlas/block-library",
"type": "reference",
"label": "informs",
"description": "Team patterns applied in the Atlas block library."
}
The full shape is defined in src/lib/types.ts.
Fields worth understanding
| Field | What it does |
|---|---|
scope |
team for shared knowledge, project for engagement work. Drives colour and grouping. |
project |
Required when scope is project. Becomes a filter chip automatically. |
author |
Powers the author lens. Use team for collectively-owned documents. |
fileSize |
Controls node radius. Scale your values into roughly 2600–19500 so sizes stay differentiated. |
body |
Markdown, rendered in the detail panel. |
sections |
Heading list, included in search. |
type |
Edge weight and curvature: foundation arcs through the centre, sibling hugs the perimeter. |
Adding a project
- Add your nodes to
graph-data.jsonwith a newprojectvalue. - Add a colour for it in
src/lib/colors.ts→PROJECT_COLORS.Without one it falls back to the default ink, and becomes indistinguishablefrom team nodes. - Optionally place its nodes in
MANUAL_POSITIONSinsrc/components/graph3d/useForceLayout.ts.Nodes without coordinates are positioned automatically, but hand-placingthem keeps clusters legible.
The filter chips read the project list straight from your data, so step 1 isenough to make it appear in the UI.
[!TIP]Keep
idvalues path-like (projects/<project>/<slug>). Nothing enforces it,but it keeps the file browsable and makesconnectionseasy to write by hand.
Design decisions
A few choices are deliberate and worth knowing before you extend it:
- Positions are authored, not simulated. A pure force layout drifts on everyreload and buries the structure. Coordinates live in
useForceLayout.tssothe composition is stable and intentional. - Colour is a system, not decoration. Every hue in
colors.tsis derivedfrom a five-colour palette and tuned to a narrow contrast band, so no projectreads as visually heavier than another. - Uppercase titles, explicit weights. Type rules are applied consistentlyacross the canvas and panel; if you add UI, set
fontWeightexplicitly ratherthan inheriting it.
Project structure
server/ # the MCP server
├── index.mjs # tool definitions + stdio transport
└── knowledge.mjs # Markdown store: read, write, search
src/ # the graph viewer
├── data/graph-data.json # demo content — replace this with yours
├── lib/
│ ├── types.ts # GraphNode, GraphEdge, GraphData
│ └── colors.ts # palette, scope/project/author colour maps
├── hooks/useGraphData.ts # filtering, search, selection state
└── components/
├── FilterBar.tsx # scope/project/author filters, search
├── DecisionLog.tsx # per-node detail panel
└── graph3d/ # the 3D scene
├── useForceLayout.ts # hand-placed node coordinates
├── GraphNode3D.tsx # node + label rendering
└── GraphEdge3D.tsx # typed, curved edges
Built with
React 19 · TypeScript ·Vite · Three.js viaReact Three Fiber ·Tailwind CSS