# MCP for Design Tokens, Explained > An MCP server exposes live design tokens to AI coding agents like Cursor and Claude Code, so generated UI uses real system values instead of invented ones. - Source: https://flashdsm.com/glossary/mcp-design-tokens - Site: Flash DS (https://flashdsm.com) - Updated: 2026-08-06 --- ## Definition Model Context Protocol is an open standard for connecting AI assistants to external tools and data. Applied to design tokens, an MCP server exposes a project's live token values to an AI coding agent so that generated components reference the real design system rather than values the model invents. Also written as: Model Context Protocol design system ## The problem it addresses An AI coding agent writing a component has to get design values from somewhere. Absent anything better, it uses what it has seen in training: common Tailwind defaults, popular palettes, plausible spacing. The result compiles, looks reasonable and is wrong. Not visibly wrong, which is the difficulty. It is a hex code near your primary rather than your primary. Pasting the palette into a prompt helps for one conversation. It does not survive the next one, and it does not scale to a team. ## What MCP changes Model Context Protocol is an open standard for exposing tools and data to AI assistants. A client such as Cursor or Claude Code connects to a server and can then call its tools during a task. For a design system, that means the agent can ask for the values at the moment it needs them, rather than relying on whatever ended up in the prompt. A typical server exposes: - **Token retrieval** - the current values for colour, typography, spacing, radius, shadow and motion - **Component lookup** - the specification for a named component - **Violation checking** - given a block of code, which values are hardcoded and which tokens replace them - **Token proposals** - a way for the agent to request a value the system does not define, instead of inventing one That last one matters more than it looks. It converts the failure case from silent invention into an explicit request a human can answer. ## Connecting one MCP clients read a small JSON configuration naming the server and how to reach it. In Cursor this lives in the project's MCP settings; in Claude Code it is added through the CLI. Authentication is usually a bearer token scoped to one project. Once connected, the agent has the design system available on every generation, with no per-prompt pasting. ## Why this is different from a rules file Cursor rules and similar mechanisms inject static text into context. That works, and it is worth doing, but the text is a snapshot: it is right until the tokens change, and then it is confidently wrong. An MCP server is read at call time. When a token changes, the next generation sees the new value without anyone updating a file. ## Where this fits with Flash DS Flash DS runs an MCP server exposing the tools above for any design system you own, connectable from Cursor, Claude Code or any MCP client with a scoped token. ## Related terms - https://flashdsm.com/glossary/token-drift - https://flashdsm.com/glossary/design-token - https://flashdsm.com/glossary/design-to-code