Skip to main content
The Design Platform MCP server gives AI tools direct access to Anvil2 guidance. Connect it to your code editor or agent so it can look up the right component, read its usage guidelines, validate code, and use design tokens instead of guessing.

Connect

The server uses the MCP Streamable HTTP transport at:
Run /mcp in a session to confirm the server is connected.
/mcp/v1 is a versioned endpoint, so a future version would use a new path such as /mcp/v2.

Which packages are covered

The component tools index these web packages from their published type declarations: React Native packages and the deprecated amCharts kit (anvil2-ext-charts) are not indexed. Icon exports are named with an Icon prefix, for example IconActivity. list_components shows a count for the icons package instead of listing every name, so pass the exact export name to get_component_guidance. When a component name exists in more than one package, the tools list the candidates and ask which package you mean. To avoid the question, mention the product or an alias in your prompt, or pass an argument:
  • find_component_for_use_case, get_component_guidance, and validate_component_usage take package.
  • get_component_usage_guidelines takes pkg (or kit).
  • list_component_do_donts takes kit, which defaults to anvil2. Use ai-kit for AI Kit’s version of a shared component.

Tools

Start with list_components or find_component_for_use_case when you don’t know the exact component name. Then use the guidance and validation tools.

Components

get_component_guidance, validate_component_usage, and list_components are built on each package’s published type declarations, so they cover every indexed component. get_component_usage_guidelines and list_component_do_donts read the component’s design page on this site, so they only return what that page says. A component with no design page, or a page with no Usage Guidelines section or Do/Don’t table, is reported as a gap instead: usageGuidelines: null with a gap of no-design-page, no-usage-guidelines, no-do-dont-table, or invalid-do-dont-table. list_component_do_donts lists every gap under gaps. Atlas components are documented outside these design pages, so expect a gap for them. Use get_component_guidance for those.

Foundations, tokens, patterns, and content

Accessibility and migration

A typical workflow

  1. Ask for the UI you need. The agent calls find_component_for_use_case or list_components to pick a component.
  2. It calls get_component_guidance and get_component_usage_guidelines to learn the props and the Do’s and Don’ts.
  3. For layout, color, and spacing it calls get_foundation_guidance, get_pattern_guidance, and get_design_tokens, so the result uses tokens instead of raw CSS values.
  4. Before it finishes, it calls validate_component_usage on the code it wrote.
The Anvil2 documentation site also has its own MCP server for searching these docs. See AI Tooling and Anvil2. Questions or problems? Ask in #ask-designsystem.
Last modified on November 12, 2026