@framingui/mcp-server
v0.6.29
Published
FramingUI MCP server for production UI workflows, discovery, validation, and quota-aware billing visibility
Downloads
480
Readme
@framingui/mcp-server
MCP server for building production UI through FramingUI.
@framingui/mcp-server gives AI coding agents a real local-first UI contract: components, themes, layout tokens, validated workflows, and environment checks.
Install
Use the CLI without a local install:
npx -y @framingui/mcp-server@latestRecommended project setup:
npx -y @framingui/mcp-server@latest initinit writes a local-only MCP config, so bundled package themes, templates, tokens, and component fallbacks work without login.
Hosted authentication is optional:
npx -y @framingui/mcp-server@latest loginUse hosted auth only when you need account features, entitlement checks, or quota visibility. In local-only mode, the whoami MCP tool reports the local session and available local themes.
CLI Commands
npx -y @framingui/mcp-server@latest init
npx -y @framingui/mcp-server@latest login
npx -y @framingui/mcp-server@latest logout
npx -y @framingui/mcp-server@latest status
npx -y @framingui/mcp-server@latestMCP Config
{
"mcpServers": {
"framingui": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@framingui/mcp-server@latest"],
"env": {
"FRAMINGUI_LOCAL_ONLY": "1"
}
}
}
}Production Screen Workflow
Use the guarded workflow for production work:
preview-themewhen theme recipes or defaults matterget-screen-generation-contextpreview-componentfor component ambiguitylist-icon-librariesbefore adding iconsvalidate-screen-definition- write React code directly from the validated definition
validate-environmentwithsourceFilesfor dependency, style-contract, and code-audit checks
Style Contract Rule
Choose one contract before relying on FramingUI defaults:
host-utility: keep explicit utility stylingframingui-native: import@framingui/ui/styles, mountFramingUIProvider, and use the generatedframingui-thememigrate: stop and decide the migration path first
Slash Commands
FramingUI exposes guidance for:
/screen/draft/section/responsive/a11y/theme-swap/doctor/install-check/export/update
Main MCP Tools
Discovery
list-themespreview-themelist-componentspreview-componentlist-screen-templatespreview-screen-templatelist_tokenslist-icon-librariespreview-icon-library
Production Workflow
get-screen-generation-contextvalidate-screen-definitionvalidate-environmentgenerate_screen(optional helper)
Legacy Helpers
generate-blueprintexport-screenvalidate_screen
What init Updates
init can:
- install the FramingUI screen-generation runtime and peer dependencies in one pass
- configure Tailwind content paths and
tailwindcss-animate - add
@import '@framingui/ui/styles';to a detected global stylesheet - generate a local
framingui-thememodule - wire
FramingUIProviderintoapp/layout.tsxorsrc/main.tsx - verify the package install, Tailwind config, and stylesheet import before finishing
- create
.mcp.jsonwithFRAMINGUI_LOCAL_ONLY=1 - generate
FRAMINGUI-GUIDE.md - append FramingUI sections to
CLAUDE.mdandAGENTS.md
Package Docs
- docs/README.md
- docs/01-quickstart.md
- docs/02-user-guide.md
- docs/03-api-reference.md
- docs/04-architecture.md
- docs/05-developer-guide.md
- docs/06-integration-guide.md
License
MIT
