Skip to main content
Glama
README.md1.14 kB
# react-uswds-mcp An MCP server that indexes your locally-installed `@trussworks/react-uswds` package (from the host project's `node_modules`) and exposes tools/resources that help code assistants: - discover components - inspect detected Props surfaces (best-effort) - generate correct import + usage snippets - suggest components for a UI use case ## Prerequisites - Node.js 18+ - Yarn (recommended Yarn 4.12) ## Install ```bash yarn install ``` ## Build + run ```bash yarn build yarn start ``` ## Dev (no build) ```bash yarn dev ``` ## Environment - `REACT_USWDS_PACKAGE` (optional): package name to resolve. Default is `@trussworks/react-uswds`. ## MCP host configuration (example) ```json { "mcpServers": { "react-uswds-mcp": { "command": "node", "args": ["/ABSOLUTE/PATH/react-uswds-mcp/dist/index.js"], "env": { "REACT_USWDS_PACKAGE": "@trussworks/react-uswds" } } } } ``` ## Tools - `list_components` - `search_components` - `get_component` - `get_component_usage` - `suggest_components` ## Resources - `resource://react-uswds/index` - `resource://react-uswds/components/{name}`

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/focus-digital/react-uswds-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server