Connect DUKU Labs to your coding agent
Connect DUKU Labs once, then ask your coding agent to discover and implement components inside your product. MCP gives the agent structured context and callable tools — the agent still needs access to your project and your permission to edit files, install dependencies and run commands.
Claude Code
claude mcp add duku-labs --transport http https://labs.duku.design/mcpCodex
codex mcp add duku-labs --url https://labs.duku.design/mcpThe Codex CLI and IDE extension share MCP configuration, so adding the server once covers both.
Claude Desktop, Cursor, VS Code and other clients
Add the server to your client's MCP configuration file:
{
"mcpServers": {
"duku-labs": {
"type": "http",
"url": "https://labs.duku.design/mcp"
}
}
}Test the connection
The endpoint answers plain JSON-RPC, so you can verify it from a terminal before wiring up a client:
curl -s https://labs.duku.design/mcp -X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'What the server exposes
Tools
search_componentsSearch the registry by natural-language requirement. Returns matches with confidence scores, category, tier and docs links.
get_componentFull agent-readable schema for one component: props, interaction and motion behavior, dependencies, install command, quality guarantees and source.
get_install_commandThe shadcn CLI command that installs a component's source (plus registry dependencies) into the current project.
Resources
duku://componentsIndex of every component in the catalogduku://components/{name}Per-component schema and sourceduku://tokens/defaultFoundation, semantic, domain and motion tokensduku://docs/quality-standardWhat every published component guarantees
Prompts
adapt_component_to_brandInstall a component and remap tokens to your brandbuild_auth_flowCompose signup, login and OTP into a full auth flowaudit_duku_implementationAudit installed components for token and a11y compliance
Authentication
Anonymous connections can search the full catalog, read every component's metadata and fetch source for free-tier components. A Pro or Team license unlocks Pro component source: send your license key as an Authorization: Bearer header. Treat the key like a password — keep it out of screenshots, logs and committed config files (use an environment variable reference instead).