Getting started¶
Install¶
Optional extras:
| Extra | Adds | Needed for |
|---|---|---|
ai |
anthropic SDK |
--ai enrichment flag |
mcp |
mcp SDK |
figma-taxonomy-mcp server |
docs |
mkdocs-material |
Building these docs locally |
Install multiple at once:
Get a Figma token¶
- Figma → your avatar → Settings → Security → Personal access tokens
- Click Generate new token, give it File content: Read scope
-
Export it:
The token is read from the FIGMA_TOKEN environment variable on every API call.
It's never logged or written to disk.
First extraction¶
Point it at a real Figma file:
…or run against the bundled banking-app fixture (no token needed):
Either produces four files in ./output/:
| File | Purpose |
|---|---|
taxonomy.xlsx |
Team review; matches common tracking templates |
taxonomy.csv |
Direct import into Amplitude Data |
taxonomy.json |
Canonical, validation, CI/CD |
taxonomy.md |
PR reviews, wiki, documentation |
Commit the JSON¶
The taxonomy.json is the canonical artifact. Commit it to the app repo:
cp output/taxonomy.json tracking/taxonomy.json
git add tracking/taxonomy.json
git commit -m "Add initial tracking plan"
From here you can:
- Run
validatein CI to catch drift between the JSON and the current Figma design - Use
diffto review taxonomy changes in PRs - Push events to Amplitude via the Taxonomy API (Enterprise)
- Wire up the drift-check action on your app repo