Use the shadcn MCP server with the Plate registry to give your coding tools access to editor templates, plugin kits and copied components.
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"
"Add AI commands to my editor"
"Update my editor components to the latest version"The Plate registry includes:
The registry serves components, not docs. Every platejs release ships
Markdown docs for that release in node_modules/platejs/dist/docs/. Follow
Local docs to point your coding agent at them.
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"]node_modules/platejs/dist/docs/, which match your installed version. See Local docs.platejs. Use Sync copied files when your AI needs to sync copied registry files.