


In the world of AI-driven development, everybody has been talking about MCP servers, context-driven design systems, and how we can make the most of what we have. The promise of having an AI tool like Figma Make, Cursor, or Claude Code create or audit things for you while adhering to your design system documentation is huge. However, to understand what you should do, it's important to understand how these actually work.
When you connect an LLM-powered tool to your design system through an MCP (Model Context Protocol) server, something interesting happens: the model starts making systematic decisions about which documentation to read, in what order, and how seriously to take it.
Here's what's actually going on under the hood.

LLMs don't treat all documentation equally. When working through an MCP, they follow a rough priority order based on how specific and contextual the guidance is.
Pattern pages come first. If your design system includes pages that describe complete flows — checkout sequences, multi-step forms, onboarding journeys — these get prioritised above individual component pages. They provide the broader context of how components work together, which is crucial for understanding intended user experience. If a pattern page and a component page both cover the same scenario, the pattern's guidance about orchestration and flow carries more weight. One important thing to note, however, is that the pattern naming has to be extremely clear. If you're asking for it to create a checkout page, but you only have form pattern guidance, it might not immediately read this without prompting.
Component documentation is next. Once the LLM understands the pattern-level context, it looks to component-specific pages for the details: which variant to use, what props and states apply, hierarchy rules like "one primary button per logical area," and specific measurements or constraints.
Best practices and cross-cutting concerns come after that. Pages covering forms, validation, accessibility, and general guidelines are consulted next. These apply across multiple components: error message formatting, button placement, label guidelines, and assistive text usage.
Foundational elements are consulted last. Color palettes, typography scales, spacing tokens, etc. These typically only come into play if the task specifically requires checking token usage or visual consistency. They won't be automatically included in an audit unless you request them.

Not all language in your documentation carries the same authority.
Explicit rules get the highest weight. Statements like "Use Primary when...", "Must be 44×44px minimum", or "Display errors in place of assistive text" are treated as requirements and map directly to pass/fail criteria in audits.
Recommendations (anything using "Consider," "Should," or "Recommended") are treated as important but not absolute. Violations might be flagged as improvement opportunities rather than hard failures.
Tips and explanatory content provide context but don't usually generate audit findings unless they clarify an explicit rule.
This distinction matters a lot in practice. If your documentation mixes imperative requirements with casual suggestions without distinguishing between them, an LLM will have to guess, and it might get the weighting wrong.

When performing an audit through an MCP server, the LLM typically:
One important thing to understand: the LLM won't infer hierarchy or impose requirements that aren't stated in the documentation. If your design system doesn't explicitly say "primary buttons go first," the audit won't flag button order as an issue.
Building a new component or feature from documentation follows a similar pattern, but is more synthesis-focused:
LLMs working through MCP servers are quite literal about scope. They work with what they're given access to and what they're asked to look for. That means:

The way you frame a request has a direct impact on what the model does with it. Here's what actually matters.
Declare the priority hierarchy. Don't assume the LLM will naturally reach for pattern pages before component pages. State the order explicitly: pattern pages → component pages → best practices → foundations. Without it, the model might weight a component page over a pattern that should take precedence, or pull in foundation pages when you only need component-level guidance.
Tell it how strict to be. The LLM needs to know how to treat different types of documentation language. A line like "treat Do/Don't and Use when rules as required; treat Tip and Consider as optional" is all it takes. You can tighten or loosen this depending on the task. Be more strict for audits, more relaxed for exploratory builds.
Name what you actually want to check. Rather than asking for a general audit, call out the areas that matter: button hierarchy, validation timing, error message placement, token usage. The more specific your focus areas, the less likely the model is to miss what you care about or get distracted by lower-priority findings.
Anchor it to your codebase. When the LLM knows to look at how your component library is already used in the repo, not just what the docs say, it can flag local pattern deviations and design system violations. Pointing it at a representative file that does things correctly gives it a useful reference point.
Separate spec from implementation. For new pages or components, be explicit about whether you want a spec, code, or both. Asking for a spec first lets you review the approach (information architecture, component choices, validation rules) before anything is built.
Handle conflicts explicitly. If your design system has any overlap between pages, tell the model what to do when it finds a contradiction. "If pages conflict, say which source you're following and why" turns a potential silent error into a visible decision you can review.
Write your documentation to match. All of the above works better when the design system itself uses clear, imperative language for requirements. If your docs distinguish between "Use this" and "Consider this," the LLM can classify guidance correctly without guessing. It's also worth making the priority hierarchy explicit somewhere, in project rules, a team README, or reusable skills, so the model has it available without you needing to spell it out every time.
LLMs working with design systems through MCP servers follow predictable patterns: they prioritise pattern-level guidance over component details, they weight explicit rules more heavily than tips, and they work within the scope they're given. Understanding this lets you structure both your design system documentation and your requests to produce far more accurate, consistent results.
The key is explicitness, both in how your system is documented and in how tasks are requested. Get both right, and LLMs become genuinely reliable partners in maintaining design system consistency at scale.
