Hewn

MCP

Local stdio MCP server for Hewn registry and AI schema.

newfree

@hewnui/mcp exposes a read-only Model Context Protocol server over stdio. AI coding tools can list and inspect free components without scraping the docs site.

The package is private for the 0.1.0 release and is not published to npm yet.

Run

From the monorepo (after pnpm generate so registry + AI JSON exist) — contributors only:

Snippet
pnpm --filter @hewnui/mcp build
node packages/mcp/dist/cli.js

Set HEWN_ROOT if the server cannot find the workspace root.

Tools

ToolPurpose
list_componentsRegistry items
search_componentsSubstring search
get_componentRegistry row + AI schema JSON
get_install_commandnpm + CLI install strings
get_themeCurated packs (or one pack by id)
get_tokensTokens for a component or theme pack

Cursor example

Snippet
{
  "mcpServers": {
    "hewn": {
      "command": "node",
      "args": ["packages/mcp/dist/cli.js"],
      "env": {
        "HEWN_ROOT": "/absolute/path/to/your-project"
      }
    }
  }
}

On this page