tkh-components
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tkh-components build a volunteer page with hero, mission, testimonials, and footer"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tkh-components-mcp
UI components, design tokens, and a UI/UX spec rebuilt from theknowledgehouse.org, served over the Model Context Protocol (MCP). Any MCP client (Claude Desktop, Claude Code, Cursor, etc.) can browse the components, customize them with props, and generate full pages in the TKH style.
No dependencies. Plain Node 18+. Nothing to
npm install.Transport: stdio (newline-delimited JSON-RPC 2.0). Protocol versions 2025-06-18, 2025-03-26, and 2024-11-05.
Quick start
cd tkh-components-mcp
node scripts/test.js # 14 protocol smoke tests
node scripts/export.js # writes components/<name>/component.{html,css,js} + dist/*.html
open dist/index.html # full homepage rebuildRelated MCP server: UI Toolkit MCP Server
Connect it to a client
Claude Code
claude mcp add tkh-components -- node /ABSOLUTE/PATH/tkh-components-mcp/server.jsClaude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json) / Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"tkh-components": {
"command": "node",
"args": ["/ABSOLUTE/PATH/tkh-components-mcp/server.js"]
}
}
}Tools
Tool | What it does |
| Lists all components (optional |
|
|
| Keyword search, e.g. "slider", "dropdown" |
|
|
| The full written UI/UX spec |
| Scraped content (nav, testimonials, news, footer...) as JSON |
| Composes |
Resources: tkh://design-spec, tkh://tokens.json, tkh://base.css, tkh://content.json, tkh://page.html, tkh://component/{name}, and tkh://raw/{name}.
Prompt: build_tkh_page(goal).
Components
name | category | notes |
| navigation | Gold underline hover, gray dropdowns, Donate ripple button, burger + fullscreen overlay below 992px |
| marketing | Lavender strip + rounded purple CTA |
| hero | Wave-line bg + 16:9 autoplay video (or |
| content | Centered H2 + paragraphs on off-white |
| content | 3-up uppercase label + 89px lavender icon circles |
| social-proof | Seamless-loop slider, 8s autoplay, auto-height, BACK n/total NEXT |
| content | Purple section, 3/2/1 responsive cards |
| navigation | Link columns w/ chevrons, contact icons, logo, social, badges |
| navigation | Lavender legal strip |
| primitive | Ripple button: |
Example call
{ "name": "render_page", "arguments": {
"title": "Volunteer with us",
"sections": [
"header",
{ "name": "announcement-bar", "props": { "text": "Mentor sign-ups close Friday!", "cta": { "label": "Sign Up", "href": "/volunteer" } } },
{ "name": "mission", "props": { "title": "Give back to the pipeline", "paragraphs": ["..."] } },
"testimonials", "footer", "legal-bar"
],
"outputPath": "./out/volunteer.html"
} }Layout
server.js MCP server (stdio)
src/base.js tokens -> CSS vars, globals, ripple button, reveal JS
src/registry.js component registry, renderPage, search
src/components/*.js one module per component: {name, description, props, css, js, render()}
src/tokens.json measured design tokens
src/content.json scraped homepage content (defaults for props)
components/_raw/*.html original markup captured from the live site (reference)
components/<name>/ exported static html/css/js per component
dist/ standalone previews (index.html = full page)
DESIGN_SPEC.md written UI/UX specNotes
Images and the hero video are hot-linked from the TKH CloudFront CDN. Swap them via props for your own project.
The originals use Bootstrap 4, Swiper, AOS, and jQuery. These rebuilds swap those for small vanilla CSS/JS with the same measured values and timings.
The mobile fullscreen menu is an approximation. The desktop layout was measured directly.
The brand, logos, photos, and copy belong to The Knowledge House. Use this as a design reference, or with their permission.
Available Tools
7 toolsget_componentGet componentARead-only
Get one component. format: "spec" (props schema + defaults), "html" (rendered markup), "css", "js", "bundle" (html+css+js, default), "standalone" (full HTML doc with base styles, ready to open), or "raw" (original markup captured from theknowledgehouse.org). Pass props to override the default content.
Inputs: name (required), props, format.
get_design_specGet UI/UX specBRead-only
The full written UI/UX specification of theknowledgehouse.org homepage (layout, typography, colors, interactions, responsive rules).
Inputs: no named parameters.
get_design_tokensGet design tokensARead-only
Design tokens measured from the live site (colors, Lato type scale, spacing, layout, motion, scrollbar). format "json" (default), "css" (CSS custom properties only), or "base-css" (tokens + global styles + ripple buttons + reveal animation).
Inputs: format.
get_site_contentGet site contentARead-only
Structured content scraped from the homepage (nav tree, announcement, mission, pillars, 5 testimonials, news, footer links, social, badges). Useful as a template for your own props.
Inputs: no named parameters.
list_componentsList componentsARead-only
List every saved TKH component (name, title, category, description, prop names). Optionally filter by category.
Inputs: category.
render_pageRender pageA
Compose components into one standalone HTML page (base styles, Lato font, per-component CSS/JS deduped). sections defaults to the full homepage order. Optionally write the result to outputPath.
Inputs: title, extraCss, sections, outputPath.
search_componentsSearch componentsARead-only
Keyword search across component names, descriptions, categories and props (e.g. "slider", "dropdown", "cards").
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools are clearly distinct (get_component for one item, get_design_tokens, get_design_spec, get_site_content, render_page all target different resources). search_components and list_components overlap slightly since list can filter by category while search does keyword matching, but the descriptions clarify the boundary.
Consistent snake_case verb_noun pattern throughout: search_components, list_components, get_component, get_design_tokens, get_design_spec, get_site_content, render_page. The 'get_' family and the search/list/render verbs are used predictably.
Seven tools is well-scoped for a component-library/reference server, with each tool earning its place (discovery, retrieval, tokens, spec, content, composition). No redundant or thin entries.
The read-and-compose surface is strong: discovery (search/list), retrieval with multiple output formats (get_component), design system data (tokens/spec/content), and page composition (render_page). There is no write/create/update path for components, but the server's apparent purpose is serving reference components, so this is a minor gap.
Maintenance
Related MCP Connectors
Create, edit, preview, publish, and manage web pages from MCP-capable AI clients.
UI encyclopedia for agents — search Elements and fetch component specs over MCP (OAuth).
Find UI components and themes, retrieve code, and generate with hosted 21st AI when enabled.
Mzizi design system MCP: search and execute over components, tokens, crates, skills and docs. Free.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides resources, tools, and prompts for a Design System via MCP protocol, enabling component search, reading, and related component discovery.ISC
- AlicenseAqualityFmaintenanceComprehensive MCP server for end-to-end UI development, offering tools to generate components, manage design tokens, audit accessibility, autofix issues, inspect live pages, compare screenshots, and more across multiple frameworks.1318 npmMIT
- AlicenseNot gradedqualityBmaintenanceSearch and pull 620+ React and Tailwind sections into your project over MCP.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for the NS UI React component registry. Search components, inspect source and details, list categories, get install commands, and retrieve design-token conventions.43MIT