figjam-context-mcp
The figjam-context-mcp server transforms FigJam/Figma boards into queryable, LLM-ready context by reading board content directly via the Figma REST API — no manual export needed. It exposes three tools:
ingest_board: Fetches a FigJam/Figma file, spatially clusters its content (stickies, shapes, screenshots, etc.) using geometry and a vision model, labels each cluster, and caches the result under aboardId. An optionaldocStructureHintcan guide how the board's structure is interpreted.get_board_context: Returns a compact, token-efficient context block plus the underlying labeled clusters for a previously ingested board. Supports optional topic scoping to filter the most relevant clusters — ideal for pasting into documentation or chat sessions.answer_from_board: Accepts a free-form natural language question about an ingested board and returns a direct answer, citing the specific clusters it was derived from.
Provides tools to ingest FigJam boards, retrieve context summaries and clusters, and answer questions about board content.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@figjam-context-mcpWhat are the main action items from the FigJam board?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
figjam-context-mcp
MCP server that turns a FigJam board into queryable context for LLMs — read directly via the Figma REST API, no manual PDF-export detour. It exposes three tools:
ingest_board — reads a FigJam/Figma file, clusters its content spatially, verifies and labels each cluster with a vision model, and caches the result under a
boardId(= the Figma file key).get_board_context — returns a compact, paste-ready context block plus the underlying clusters for an ingested board, optionally scoped to a topic.
answer_from_board — answers a free-form question about an ingested board, citing the clusters the answer was derived from.
How it works
FigJam boards are spatially chaotic: rotated stickies, overlapping shapes, embedded screenshots, no reading order. The pipeline therefore combines geometry with vision:
fetchFileTree+flattenNodeTree— pull the raw node tree and flatten it into normalized nodes (position, size, rotation, text, image refs), dropping empty structural noise.geometricPreCluster— rotation-aware distance clustering into coarse groups.refineClusterWithVision— per cluster, node screenshots + extracted text go to a vision model in one request; it confirms which nodes belong together, labels the group, describes embedded images, and writes a 3–5 sentence summary.mapToDoubleDiamond(optional,docStructureHint: "double_diamond") — assigns each cluster to Discover / Define / Develop / Deliver (or "unclear").Results are cached in-memory per file key;
get_board_contextandanswer_from_boardread from the cache.
Related MCP server: Figma MCP Server
Setup
npm install
cp .env.example .envFill in .env:
FIGMA_ACCESS_TOKEN — log in at figma.com, go
to Settings → Security → Personal access tokens, generate a token. (Can
also be passed per-call via the figmaAccessToken input on ingest_board.)
LLM_BASE_URL / LLM_API_KEY / LLM_VISION_MODEL / LLM_TEXT_MODEL —
any OpenAI-compatible endpoint. Free options:
OpenRouter (default in
.env.example): get a key at openrouter.ai/keys. The preconfiguredopenrouter/freemodel id is OpenRouter's Free Models Router, which auto-routes to a live free model that supports image input — individual:freemodels come and go, the router doesn't. Free tier (~20 req/min, 200/day) comfortably covers occasional board scans.GitHub Models: free with any GitHub account — create a token at github.com/marketplace/models, set
LLM_BASE_URL=https://models.github.ai/inference.
The same model can serve both the vision and text roles; the two variables exist so they're easy to split later.
Run
npm run devThis starts the MCP server over stdio using tsx watch. To try the tools
interactively:
npx @modelcontextprotocol/inspector npx tsx src/index.tsNote: don't pass plain
npm run devto the Inspector (or any MCP client) — npm prints a> figjam-context-mcp@0.1.0 devbanner to stdout before the server starts, which corrupts the JSON-RPC stream the client expects there. Either invoketsxdirectly as above, or add--silent:npx @modelcontextprotocol/inspector npm run dev --silent.
Usage example
Paste in a Figma board link and ingest it:
// tool: ingest_board
{
"figmaFileUrl": "https://www.figma.com/board/AbC123XyZ456/Semester-Project-Research",
"docStructureHint": "double_diamond"
}
// → { "boardId": "AbC123XyZ456", "clusterCount": 5,
// "summary": "Ingested board AbC123XyZ456: 5 clusters — \"User interview quotes\", \"Problem framing\", …" }The boardId is the file key itself — re-running ingest_board on the same
file refreshes the cache entry. Then pull context, optionally scoped to a
topic:
// tool: get_board_context
{ "boardId": "AbC123XyZ456", "topic": "user research" }
// → contextText:
// FigJam board AbC123XyZ456 — 2 of 5 clusters (topic: user research):
//
// ## User interview quotes [discover]
// Sticky notes with verbatim quotes from six student interviews about exam
// stress. Two embedded screenshots show survey results (bar charts of study
// habits). Main pain points: unclear requirements and late feedback. …The contextText block is deliberately token-lean — paste it straight into
a documentation-writing chat (e.g. for a semester report). Or ask directly:
// tool: answer_from_board
{ "boardId": "AbC123XyZ456", "question": "What were the main user pain points?" }
// → { "answer": "Unclear requirements and late feedback …",
// "citedClusters": ["User interview quotes", "Problem framing"] }Scripts
npm run dev— run the server withtsx watch(auto-restart on change).npm run build— compile TypeScript todist/.npm start— run the compiled server fromdist/.npm test— run the Vitest test suite.
Project layout
src/
├── index.ts # stdio entrypoint
├── server.ts # McpServer setup + tool registration
├── tools/ # tool handlers (ingest pipeline, context, Q&A)
├── schemas/ # Zod input/output schemas per tool
├── lib/ # Figma API, node tree, clustering, vision, LLM, cache
└── types.ts # shared domain typesMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ecestnrkl/figjam-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server