UI Preset MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | The port number to use when the transport is set to 'http'. | |
| TRANSPORT | No | The transport protocol to use for the server (e.g., 'http'). Defaults to stdio if not specified. | |
| WATCH_PRESETS | No | Enables hot-reloading of presets on disk changes when set to 'true'. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| load_presetA | Activate a UI preset bundle by ID. Loads all tokens, component templates, and layout templates. Resolves inheritance (extends) chain automatically, deep-merging parent tokens. Must be called before any correction, validation, or generation tools. Args:
Returns: Preset manifest summary and token count confirmation. Error: "Preset 'x' not found" if the preset directory doesn't exist. |
| swap_templateA | Hot-swap the active preset without restarting the server. Useful for switching between client presets while building. Optionally preserves any runtime token overrides applied in the current session. Args:
Returns: New active preset summary. |
| list_presetsA | List all available presets in the presets directory. Optionally includes full manifest metadata for each preset. Args:
Returns: Array of preset IDs, or array of preset manifests if include_metadata is true. |
| diff_presetsA | Compare two presets and return what changed between them. Useful for understanding what a client override changes vs the base. Args:
Returns: Object with added, removed, and changed keys with before/after values. |
| get_session_stateA | Returns the current session state including active preset ID, load time, and any runtime token overrides. Returns:
|
| scaffold_presetA | Create a new preset directory with manifest and token override scaffold, inheriting from a parent preset. Generates a ready-to-customize preset structure on disk. Args:
Returns: Path to new preset directory and files created. |
| autocorrect_componentA | Analyze a React component and auto-correct it against the active preset. Corrects: hardcoded colors, missing glass treatment, wrong typography tokens, wrong animation tokens, non-conforming sidebar/settings structure. Args:
Returns:
Requires active preset (run load_preset first). |
| validate_uiA | Validate a React component against the active preset rules without modifying code. Returns a conformance score (0–100) and detailed issue list. Args:
Returns:
Requires active preset. |
| generate_componentA | Generate a React component from a preset template, with tokens resolved. Templates come from the active preset's component library. Args:
Returns:
Run list_presets with include_metadata to see available templates. Requires active preset. |
| generate_tokensA | Export the active preset's design tokens in various formats for use in your project. Args:
Returns: Token file content as a string. Requires active preset. |
| apply_token_overridesA | Apply runtime token overrides on top of the active preset (deep merged). Overrides are applied in memory only unless persist: true writes them to disk. Useful for per-client accent color changes without creating a full preset. Args:
Example overrides: { "colors": { "accent": { "primary": "#2563eb" } } } Returns: Confirmation of applied override paths. Requires active preset. |
| generate_color_paletteA | Generate a harmonious color palette from a seed hex color using color theory. Args:
Returns:
Use the result to populate apply_token_overrides or scaffold_preset. |
| suggest_styleA | Get a style preset and token override suggestions based on a natural-language aesthetic description. Args:
Returns matching preset and style suggestions. |
| list_style_categoriesA | List all available design style categories with descriptions, design principles, and associated presets. Args:
Returns: Array of style categories with metadata. Use with suggest_style and load_preset to explore the design system. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/ncsound919/OG-Glass'
If you have feedback or need assistance with the MCP directory API, please join our Discord server