Use the shadcn MCP server with the Plate registry to give your coding tools access to editor templates, plugin kits, copied components, and documentation.
The Model Context Protocol (MCP) lets coding tools read resources and call tools
provided by a server. The shadcn server reads the registries configured in your
project's components.json.
Use the registry source when asking a coding tool to configure an editor or add a feature. For example:
"Set up a Plate editor with basic formatting and table support"
"Set up a Plate editor with basic formatting and table support"
"Help me understand how the EditorRoot AI plugin works"
"Update my editor components to the latest version"The Plate registry includes:
Follow Local docs to keep a documentation snapshot in your project. Check that its APIs match your installed Plate version and update the snapshot when you upgrade.
Follow these steps to set up MCP with Plate:
For an existing shadcn project, add the Plate registry to components.json:
{
"registries": {
"@plate": "https://platejs.org/r/{style}/{name}.json"
}
}{
"registries": {
"@plate": "https://platejs.org/r/{style}/{name}.json"
}
}Then add the basic editor from the @plate registry:
For a new project, create a Base/Nova project with the basic Plate editor:
Choose the configuration for your IDE:
Copy and paste into .cursor/mcp.json:
{
"mcpServers": {
"plate": {
"description": "Plate editors, plugins and components",
"type": "stdio",
"command": "npx",
"args": [
"shadcn@latest",
"mcp"
]
}
}
}{
"mcpServers": {
"plate": {
"description": "Plate editors, plugins and components",
"type": "stdio",
"command": "npx",
"args": [
"shadcn@latest",
"mcp"
]
}
}
}Copy and paste into .vscode/mcp.json in your workspace:
{
"servers": {
"plate": {
"type": "stdio",
"command": "npx",
"args": [
"shadcn@latest",
"mcp"
]
}
}
}{
"servers": {
"plate": {
"type": "stdio",
"command": "npx",
"args": [
"shadcn@latest",
"mcp"
]
}
}
}Copy and paste into .mcp.json:
{
"mcpServers": {
"plate": {
"description": "Plate editors, plugins and components",
"type": "stdio",
"command": "npx",
"args": [
"shadcn@latest",
"mcp"
]
}
}
}{
"mcpServers": {
"plate": {
"description": "Plate editors, plugins and components",
"type": "stdio",
"command": "npx",
"args": [
"shadcn@latest",
"mcp"
]
}
}
}~/.codex/config.toml[mcp_servers.plate]
command = "npx"
args = ["shadcn@latest", "mcp"][mcp_servers.plate]
command = "npx"
args = ["shadcn@latest", "mcp"]