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

Illustrative overview of the ingest pipeline — not a screen recording.
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 five tools:
ingest_board — reads a FigJam/Figma file, clusters its content spatially, verifies and labels each cluster with a vision model, extracts connector arrows as cluster-to-cluster relations, and caches the result under a
boardId(= the Figma file key).get_board_context — returns a compact, paste-ready context block (clusters + connector relations) 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.
diff_board — compares two ingest snapshots of the same board and reports what changed: new/removed/modified clusters, edited nodes, and connector changes ("what came in since the last workshop?").
diagnose_llm_config — runs small text + vision JSON checks against the active model setup and reports actionable failures.
Ingested boards survive server restarts: get_board_context and
answer_from_board transparently restore the last finished ingest from
.cache/figjam-mcp/ when the in-memory store is empty.
Re-ingests are incremental: every cluster's member content is hashed, and
clusters that didn't change simply reuse their previous label/summary — only
new or edited clusters hit the vision model. Re-ingesting a mostly unchanged
board is therefore almost free. Pass forceFullIngest: true to bypass all
caching and reuse (e.g. after switching models).
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, connector endpoints), dropping empty structural noise.geometricPreCluster— rotation-aware distance clustering into coarse groups. Neighbor search runs over a spatial grid (near-linear instead of O(n²)), and the gap threshold adapts to the board's density (median nearest-neighbor gap) so dense and airy boards both cluster sensibly. Huge footprints use a bounded overflow path, and connected components over 250 nodes are spatially bisected before reaching an LLM.extractConnectorEdges+buildClusterRelations— connector arrows are excluded from geometric clustering (they deliberately span groups) but captured as a graph: "cluster A → cluster B (label)". These relations are included inget_board_contextoutput and theanswer_from_boardprompt — arrows are the board's semantic structure.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. Clusters are refined concurrently (INGEST_BOARD_VISION_CONCURRENCY, default 3) within the vision budget.mapClustersToPhases(optional) — assigns each cluster to a phase of the chosen framework:double_diamond,lean_canvas,retro,user_journey, or a free-formcustomPhaseslist (or "unclear").Results are cached in-memory AND persisted per file key;
get_board_contextandanswer_from_boardread from the cache and restore from disk after a restart.
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_MODEL_PRESET — any
OpenAI-compatible endpoint. Free options:
OpenRouter (default in
.env.example): get a key at openrouter.ai/keys. The defaultstudent-freepreset uses explicit free models for each role:google/gemma-4-26b-a4b-it:freefor vision andqwen/qwen3-next-80b-a3b-instruct:freeplusnvidia/nemotron-nano-9b-v2:freefor text/Q&A.openrouter/freeremains a last-resort fallback, not the primary model.GitHub Models: free with any GitHub account — create a token at github.com/marketplace/models, set
LLM_BASE_URL=https://models.github.ai/inference.
Optional overrides:
LLM_MODEL_PRESET— currently supported:student-free.LLM_VISION_MODELS— comma-separated vision model candidates.LLM_TEXT_MODELS— comma-separated text/Q&A candidates.LLM_FAST_TEXT_MODELS— comma-separated small/fast text candidates.Legacy
LLM_VISION_MODEL/LLM_TEXT_MODELstill work as first-candidate overrides.
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 lifecycle banner 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.
MCP UI timeouts
ingest_board can be slow because it calls Figma and a vision LLM for board
clusters. If the MCP UI shows MCP error -32001: Request timed out, the client
gave up before those external calls finished.
The server now keeps provider calls bounded by default:
FIGMA_REQUEST_TIMEOUT_MS=15000FIGMA_FILE_REQUEST_TIMEOUT_MS=60000LLM_REQUEST_TIMEOUT_MS=20000LLM_RATE_LIMIT_RETRIES=1LLM_ANSWER_MAX_OUTPUT_TOKENS=800LLM_VISION_MAX_OUTPUT_TOKENS=4096LLM_ANSWER_TOP_K=6LLM_ANSWER_PROMPT_MAX_CHARS=24000INGEST_BOARD_VISION_BUDGET_MS=35000INGEST_BOARD_VISION_CONCURRENCY=3FIGMA_SCREENSHOT_DOWNLOAD_CONCURRENCY=3FIGJAM_MCP_MEMORY_CACHE_MAX_BOARDS=10
ingest_board defaults to ingestMode: "balanced": text-rich clusters use
deterministic summaries, while image-heavy or low-text clusters use vision
within the budget. max_speed skips vision; max_quality attempts vision for
every cluster. Finished ingests are persisted under .cache/figjam-mcp/, keyed
by file state, node hash, model preset, document hint, and ingest mode.
Vision candidates are prioritized by information gain rather than canvas
position. Each request has bounded node/text inventory, and the phase returns
at its configured deadline even if a provider stalls. answer_from_board
retrieves the most relevant clusters plus direct connector neighbours and keeps
the complete prompt under its configured character budget. The in-memory cache
uses LRU eviction; persisted history keeps 20 states and removes snapshots that
become safely unreferenced.
Run diagnose_llm_config after changing model env vars. It verifies structured
text replies with small arithmetic challenges and checks actual image
understanding with a known color image, without ingesting a board.
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, "relationCount": 3,
// "summary": "Ingested board AbC123XyZ456: 5 clusters — \"User interview quotes\", \"Problem framing\", …" }Instead of a built-in framework (double_diamond, lean_canvas, retro,
user_journey) you can pass your own phase names — clusters are then mapped
onto them by keyword match:
{ "figmaFileUrl": "…", "customPhases": ["Ideen", "Feedback", "Offene Fragen"] }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. …
//
// ## Connections between clusters (from connector arrows)
// - "User interview quotes" → "Problem framing" — "informs"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"] }After the board evolved (say, workshop 2), ingest again — unchanged clusters are reused, so this is fast — and diff the snapshots:
// tool: diff_board
{ "boardId": "AbC123XyZ456" }
// → summaryText:
// FigJam board AbC123XyZ456 — changes from 2026-07-03T14:02:11Z to 2026-07-10T09:41:52Z:
//
// New clusters (1):
// - "Feedback round 2": Sticky notes with feedback from the second usability test.
// Modified clusters (1):
// - "User interview quotes": +3 nodes, 1 edited
// Connections: +1 / -0
// - new: "Feedback round 2" → "Problem framing" — "confirms"
// Nodes: +9 added / -0 removed / 1 edited.
// Unchanged clusters: 4.compareTo selects an older baseline (2 = two ingests back, …); the history
keeps the last 20 distinct board states per file.
Scripts
npm run dev— run the server withtsx watch(auto-restart on change).npm run build— clean and compile TypeScript todist/, preserving an executable CLI.npm start— run the compiled server fromdist/.npm test— run the Vitest test suite.npm run typecheck— type-check both source and tests without emitting files.npm run check— type-check, test, build, and validate the package metadata/binary.npm run package:smoke— pack the npm tarball, execute its CLI, and verify MCP initialization/tool discovery.
Publishing runs the same checks automatically through prepack; CI exercises
that complete package path on the minimum supported Node version and an LTS line.
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 typesAvailable Tools
3 toolsanswer_from_boardAnswer From BoardA
Answers a free-form question about a previously ingested board, citing the clusters the answer was derived from.
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | ||
| question | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| answer | Yes | |
| citedClusters | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the burden. It discloses that the tool cites clusters and requires a previously ingested board, but does not cover permissions, rate limits, or mutability.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence with no wasted words. However, it could be slightly more structured by including usage hints.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With only 2 parameters and an output schema (not shown), the description covers the basic purpose, but lacks details on how citations are delivered or any edge cases. It is adequate but not comprehensive.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0%, so the description should add meaning beyond parameter names. It only says the tool answers a question about a board, but does not clarify that boardId refers to a valid board from a prior ingest or that question is free-form text. The names are self-explanatory but the description adds minimal value.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool answers a free-form question about a previously ingested board and cites clusters, distinguishing it from siblings like get_board_context (which likely provides raw context) and ingest_board (which is for ingestion).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the board must be previously ingested, but does not explicitly state when to use this tool vs alternatives, nor does it provide exclusions or prerequisites beyond 'previously ingested'.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_board_contextGet Board ContextA
Returns a text summary plus the underlying clusters for a previously ingested board, optionally scoped to a topic.
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | Optional topic to focus the context on | |
| boardId | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
| clusters | Yes | |
| contextText | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full responsibility. It discloses that the operation returns text and clusters and requires a previously ingested board, but omits details on error handling, rate limits, or required permissions. It is adequate but not comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that places the key action and outputs first. Every word adds value, and there is no superfluous information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's simplicity (2 parameters, no annotations), the description is sufficiently complete. It explains the return type (text summary + clusters) and the optional scoping. The presence of an output schema further reduces the need for detail in the description.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 50% (only topic has a description). The description adds the phrase 'optionally scoped to a topic,' which clarifies the topic parameter's purpose. However, boardId lacks any description beyond being required, so the additional value is limited.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool returns a text summary and clusters for a previously ingested board, with optional topic scoping. It effectively distinguishes from sibling tools like answer_from_board and ingest_board by specifying the output type and prerequisite.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies the tool should be used after a board has been ingested, but it does not explicitly state when to use this versus alternatives like answer_from_board. No direct guidance on prerequisites or context for selection is provided.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
ingest_boardIngest FigJam BoardA
Reads a FigJam/Figma file, clusters its content, and caches it under a boardId for later get_board_context / answer_from_board calls.
| Name | Required | Description | Default |
|---|---|---|---|
| figmaFileUrl | Yes | URL of the FigJam/Figma file to ingest | |
| docStructureHint | No | How to interpret the board's structure when mapping clusters to phases | freeform |
| figmaAccessToken | No | Figma personal access token; falls back to FIGMA_ACCESS_TOKEN env var if omitted |
Output Schema
| Name | Required | Description |
|---|---|---|
| boardId | Yes | |
| summary | Yes | |
| clusterCount | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description must fully disclose behavior. It explains that the tool reads, clusters, and caches data, but lacks details on side effects (e.g., is caching persistent? can it be redone?), authorization beyond token handling, or potential performance implications.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, moderately long sentence that efficiently conveys the core functionality. It avoids unnecessary words but could be slightly more structured (e.g., separate sentences for purpose vs. usage linkage).
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the presence of an output schema (not shown but declared), the description does not need to detail return values. It covers the essential steps (read, cluster, cache) and links to sibling tools. Some missing detail on clustering meaning, but overall sufficient.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema itself provides full parameter descriptions (100% coverage). The tool description adds context about clustering and caching but does not enhance the meaning of individual parameters beyond what the schema already offers.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses specific verbs ('reads', 'clusters', 'caches') and clearly identifies the resource ('FigJam/Figma file'). It explicitly distinguishes from sibling tools by stating that the output is used for later 'get_board_context' and 'answer_from_board' calls.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly indicates when to use this tool (as a prerequisite for the two sibling tools), providing clear context. However, it does not explicitly state when not to use it or mention alternative approaches.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
3 tool updates
v0.1.0- First observed
answer_from_board - First observed
get_board_context - First observed
ingest_board
TDQS
Each tool has a distinct and non-overlapping purpose: ingest_board adds a board, get_board_context retrieves its context, and answer_from_board answers questions. No ambiguity in intent.
All tool names follow a consistent verb_noun pattern with snake_case: 'ingest_board', 'get_board_context', 'answer_from_board'. The naming pattern is uniform and predictable.
With only 3 tools, the server is tightly scoped to a specific workflow (ingest, context, answer). Each tool serves a necessary step without unnecessary bloat.
The server covers the core workflow of ingesting a board, retrieving context, and answering questions. A minor gap is the lack of a tool to list or delete ingested boards, but this may be out of scope.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Bounded tools for rendering, extraction, RAG, enrichment, local discovery and review analysis.
Enterprise memory, search, and context for frontier AI. 38 tools for business intelligence.
Product intelligence for AI agents — query a Revelica workspace's ideas, specs, and research.
Ingest, manage, and retrieve documents for RAG-powered AI applications
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables seamless interaction with Figma via the Model Context Protocol, allowing LLM applications to access, manipulate, and track Figma files, components, and variables.21,701150MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Figma designs using natural language commands, supporting file analysis, component extraction, asset export, comment management, and design system queries through the Figma API.1,7011ISC
- FlicenseNot gradedqualityDmaintenanceEnables MCP-compatible LLMs to interact with Miro whiteboards to manage boards, create and manipulate shapes, and organize content through grouping tools.-
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to programmatically interact with a Miro board through the Miro API, supporting operations like creating items, updating positions, and managing connectors.15-
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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