Figma Context Cache MCP
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., "@Figma Context Cache MCPGet figma node with fileKey wdva3WcsFmz54Sg5e6OWJl and nodeId 4510-5941"
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.
π¨ Figma Context Cache MCP
π§π· Leia em portuguΓͺs: README.pt-BR.md
Persistent design context for AI coding agents.
Build once. Cache locally. Reuse everywhere.
An MCP (Model Context Protocol) server that provides cached, refreshable and structured Figma context for AI coding assistants such as Codex, Claude Code, and other MCP-compatible clients.
Instead of querying the Figma API on every request, this server stores node responses locally and exposes tools to retrieve, inspect, synchronize and manage cached design context.
Why?
AI coding assistants frequently need information from Figma while implementing or maintaining frontend applications.
Without a cache layer, every request:
calls the Figma API
consumes rate limits
increases latency
downloads the same information repeatedly
This project introduces a persistent cache with explicit synchronization capabilities, making Figma context:
β‘ Faster
β»οΈ Reusable
π¦ Persistent
π€ AI-friendly
Architecture
AI Agent
(Codex / Claude Code)
β
βΌ
MCP Server
β
βββββββββββββ΄ββββββββββββ
β β
βΌ βΌ
Local JSON Cache Figma REST API
β
βΌ
Persistent Design ContextFeatures
β Persistent local cache
β Configurable cache TTL
β Explicit cache synchronization
β Cache inspection
β Selective cache clearing
β Strongly typed
β Automated tests with Vitest
β MCP compatible
MCP Tools
Tool | Description |
| Verifies that the MCP server is running |
| Retrieves a node from cache or directly from Figma |
| Forces a fresh request to Figma and updates the cache |
| Lists cached nodes and their current status |
| Removes cache entries selectively |
Cache Lifecycle
get_figma_node
β
βΌ
Cache Hit?
β
βββ Yes ββββββββββββββββΊ Return cached node
β
βββ No
β
βΌ
Query Figma API
β
βΌ
Store locally
β
βΌ
Return response
sync_figma_node
β
βΌ
Always query Figma
β
βΌ
Update cache
β
βΌ
Return fresh responseExample
Synchronize a node:
Use sync_figma_node with:
fileKey: wdva3WcsFmz54Sg5e6OWJl
nodeId: 4510-5941
depth: 1Example response:
{
"message": "Node synchronized successfully.",
"metadata": {
"source": "figma",
"cacheUpdated": true
}
}Subsequent requests:
Use get_figma_node...Response:
{
"metadata": {
"source": "cache"
}
}Project Structure
src/
βββ cache/
βββ figma/
βββ server/
βββ tools/
βββ sync/
tests/
βββ cache/
βββ figma/Testing
This project uses Vitest.
Current test coverage:
Component | Coverage |
CacheService | 90%+ |
FigmaContextService | 100% |
FigmaClient | In progress |
Run the test suite:
npm testGenerate coverage:
npm run test:coverageInstallation
git clone https://github.com/AysllaGomes/figma-context-cache-mcp.git
cd figma-context-cache-mcp
npm installConfigure your environment:
FIGMA_API_KEY=your-token
CACHE_TTL_SECONDS=3600
STORAGE_PATH=./storageStart the server:
npm run devRoadmap
Persistent cache
Cache inspection
Cache synchronization
Automated unit tests
Structured node metadata
Component relationship graph
Storybook integration
Angular component mapping
Design token indexing
Semantic search
Vision
This project started as a cache for the Figma API.
Its long-term goal is to evolve into a Frontend Context Engine, capable of providing AI coding agents with rich, structured knowledge about design systems, frontend components and software architecture.
Instead of simply retrieving JSON from Figma, the server aims to understand relationships between components, design tokens, Storybook stories and frontend implementations, enabling AI agents to make better architectural and implementation decisions.
License
This server cannot be installed
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 Servers
- Alicense-qualityAmaintenanceAn MCP server that gives AI coding tools access to Figma design data for accurate one-shot implementation of designs.3229MIT
- AlicenseBqualityDmaintenanceAn MCP server that integrates AI agents with Figma, enabling reading and programmatic modification of designs.41MIT
- Alicense-qualityCmaintenanceA Model Context Protocol (MCP) server that enhances Figma design integration by adding element position information to API responses, enabling AI assistants to better understand spatial relationships and convert designs to code more accurately.2101MIT
- Flicense-qualityBmaintenanceA self-hosted MCP server that enables AI agents to retrieve Figma design data for generating code, templates, or custom prompts.2,114
Related MCP Connectors
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Cloud-hosted MCP server for durable AI memory
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
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/AysllaGomes/figma-context-cache-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server