Generates, validates, and searches USWDS markup, pages, classes, patterns, and integration guidance through MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Unofficial MCP Server for USWDS.
get_component_markupOfficial HTML** for a component/page template and its variants (`accordion`, `footer` + `slim`, `sign-in`, ...). Understands everyday names (`dropdown` β select).
compose_uswds_pageBuild a full page from structured sections: hero, content, alert, summary box, cards, process list, step indicator, accordion, table, form, contact.
validate_uswds_markupValidate fragments or full pages: real class names, component structure, forms, ARIA, accessibility basics.
find_uswds_classesLook up real classes, including utilities and responsive variants (`margin top 2`, `tablet grid col 6`).
generate_uswds_pageQuick start from free-text requirements; returns an editable section spec, bracketed placeholders, and its own validation.
recommend_uswds_structureUSWDS-first structure for a service or page.
Unofficial MCP Server for USWDS MCP server gives AI clients a local MCP interface to USWDS component markup, page patterns, templates, class names, and documentation. It is intended for developers building government or public-service interfaces with the U.S. Web Design System and wanting generated output checked against known USWDS structure.
The server can return canonical HTML for components and page templates, including variants and common-name aliases. It can also assemble complete pages from structured sections such as alerts, cards, forms, tables, accordions, process lists, contact blocks, and hero content. Free-text page requirements can be converted into an editable section specification with placeholders and validation results.
The package includes data derived from USWDS templates, fixtures, stylesheets, and documentation. Its current data targets USWDS 3.14.0. Because the data is bundled, normal use does not require an API key, network access, or a separate ingestion step.
A typical workflow starts by asking for a recommended structure, retrieves canonical markup for selected components, composes the page, and then validates the result. Validation checks known USWDS classes, component relationships, forms, ARIA wiring, headings, identifiers, links, images, buttons, scripts, and basic accessibility conditions. Findings identify the affected element and can include a suggested correction, component reference, and documentation link.
Run the server with:
An MCP client can launch it as a standard stdio server:
Claude Code can use claude mcp add uswds -- npx -y uswds-mcp. The repository also provides client setup documentation and example configurations. No environment variables are required by the documented quick-start configuration.
Unofficial MCP Server for USWDS MCP server exposes read-only tools, including:
get_component_markup for official component or page-template HTML and variants.compose_uswds_page for building a page from named structured sections.validate_uswds_markup for checking fragments or complete pages.find_uswds_classes for locating component, utility, and responsive classes.generate_uswds_page for turning free-text requirements into an editable page specification.recommend_uswds_structure for proposing a USWDS-oriented service or page structure.search_uswds for documentation, accessibility, and usage guidance.get_component for structured component guidance and canonical markup.get_uswds_integration_recipe for Next.js, Vite/React, static HTML, Rails, and Drupal setup guidance.validate_uswds_project_setup for detecting common CSS, script, CDN, distribution-copy, and global-CSS issues.The package also exposes USWDS resources for components, patterns, templates, tokens, and package data, plus prompts for tasks such as auditing, conversion, and project integration.
The Unofficial MCP Server for USWDS MCP server performs static analysis. It cannot determine rendered color contrast, visual reading order, actual screen-reader behavior, or full Section 508 conformance. Generated pages still require testing with tools such as axe, keyboard navigation, and screen readers.
Custom classes that do not use the usa- prefix are not validated. Placeholder text from upstream fixtures may remain in returned markup. The project is unofficial and is not affiliated with, endorsed by, or maintained by GSA, TTS, or the official USWDS team.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/unofficial-mcp-server-for-uswds)<a href="https://allmcps.com/mcp/unofficial-mcp-server-for-uswds"><img src="https://allmcps.com/api/badge/unofficial-mcp-server-for-uswds?style=directory" alt="Unofficial MCP Server for USWDS on AllMCPs" /></a>