Skip to content

Model Context Protocol (MCP)

Connect Claude Code, Cursor, VS Code, and Windsurf to Space UI's component registry using MCP.

The Model Context Protocol (MCP) allows AI assistants to query the Space UI registry directly inside your editor. When enabled, your AI coding agent can search components, inspect TypeScript signatures, and install primitives without leaving the chat.

Space UI leverages the official shadcn MCP server. Once configured, any @spaceui primitive can be discovered and installed autonomously by your AI tools.


Run the initialization command for your preferred editor to automatically write the MCP configuration file:

Bash

Manual Configuration

If you prefer adding the MCP server manually, save the corresponding JSON snippet in your project or global configuration directory:

.mcp.json

Available MCP Capabilities

When the MCP server is active, your AI agent has access to these capabilities:


Example Prompts with MCP

Try prompting your AI assistant with natural language instructions:

Code