figma-brand-rules-demo
Provides tools for working with Figma Variables-based brand rules, including retrieving tokens, retrieving rules, and checking color pairs from exported Figma variable data.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Figma brand rules demo
A fictional, local demonstration of Figma Variables-shaped JSON flowing through DTCG 2025.10 and Style Dictionary v5 to CSS, resolved typed server JSON, ASE, and three Preview MCP/REST tools. It is not a product or hosted service.
flowchart LR
F[Figma plugin export JSON] --> C[DTCG 2025.10 converter]
C --> B[Style Dictionary v5]
B --> R[one tool registry]
R --> M[MCP stdio]
R --> H[loopback REST]Use Node 22: npm ci --ignore-scripts && npm run build && npm run pipeline && npm test. Copy .env.example to .env for synthetic local credentials; never commit real credentials. Run REST with node --env-file=.env dist/src/main.js rest (loopback only), or the stdio MCP entry with node --env-file=.env dist/src/main.js. Stdio writes only MCP JSON-RPC: Style Dictionary build logging is silenced during server startup.
For REST, use curl -X POST http://127.0.0.1:3000/tools/check_color_pair -H 'Authorization: Bearer synthetic-alpha-key' -H 'content-type: application/json' -d '{"brand":"alpha","fg":"semantic.color.text","bg":"semantic.color.background","text_size":"normal"}'.
npm run pipeline writes ignored artifacts and artifacts/snapshot.json. Generate a changelog with npm run changelog -- before.json after.json 0.1.0. Additions are minor; changed or removed tokens/rules are major; unchanged snapshots retain the supplied version.
Claude Code/Desktop MCP clients must start this command with the repository as their current working directory, because the fictional fixture paths are deliberately relative. This is a client launch setting, not shared workspace infrastructure.
An ordinary Figma account with edit access can use a manually invoked Plugin API exporter: call figma.variables.getLocalVariablesAsync() and getLocalVariableCollectionsAsync() in the open file, serialize collections (modes, defaultModeId, variableIds) and variables (variableCollectionId, resolvedType, valuesByMode), including { type: "VARIABLE_ALIAS", id } values, then replace only fictional local fixture data. Collection modes are matched by name, never ID. Figma REST Variables is not used because it is Enterprise-only.
Out of scope: OAuth, governance, page checking, hosting, real brands/client data, production deployment, and any tools beyond get_tokens, get_rule, and check_color_pair.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for StyleKit styles, tokens, recipes, lint and repair over stdio or HTTP.
Unofficial Color API MCP — wraps thecolorapi.com (free, no auth)
Give your agent a real design system: tokens, measured WCAG contrast, and rules to follow.
WCAG color contrast checks, nearest accessible color, CSS color conversion and palette pair checks.
Related MCP Servers
- AlicenseAqualityCmaintenanceManages design tokens (colors, spacing, fonts) in a JSON file and enables agents to read, write, export, and detect drift between tokens and CSS via MCP.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to validate design system constraints, including WCAG accessibility, token relationships, and consistency, through MCP tools like validate, explain, and suggest-fix.73 npmMIT
- AlicenseAqualityCmaintenanceRead-only MCP server that exposes a design system's tokens, components, conventions, and deprecations as queryable tools, enabling agents to look up canonical values, assess change impact, and detect hardcoded value drift.83 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to access a governed, versioned design style specification through MCP, including deterministic checks, proposal review workflows, and generated CSS, JSON, and TypeScript artifacts.Apache 2.0