docs/installation/mcp.mdx
Plate has an official MCP server. This lets AI tools understand and work with our rich ecosystem of editor templates, plugin configurations, UI components, and documentation.
The Model Context Protocol (MCP) is an open protocol that standardizes how applications provide context to LLMs. This is useful for Plate because you can now give your AI-assisted IDE direct access to hundreds of Plate resources.
Your AI can now:
Try asking your AI:
"Set up a Plate editor with basic formatting and table support"
"Help me understand how the Plate AI plugin works"
"Update my editor components to the latest version"
The Plate ecosystem provides structured information that MCP-enabled tools can read from a unified registry that includes:
This comprehensive registry ensures AI tools have complete context for both code generation and understanding Plate's features.
For teams working with Plate, integrating local documentation is key to maximizing the benefits of MCP. We recommend following our Local Docs guide to set this up. This approach offers several advantages for AI-powered development:
llms.txt: Unlike simply dumping documentation into a text file (which can struggle with large volumes and context limits), a structured local setup allows AI to efficiently access the specific information it needs.Follow these steps to set up MCP with Plate:
Run this command to initialize your project with the basic editor template:
npx shadcn@latest add @plate/editor-basic
Configure your registry in your components.json file:
{
"registries": {
"@platejs": "https://platejs.org/r/{name}.json"
}
}
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"
]
}
}
}
Copy and paste into .vscode/mcp.json in your workspace:
{
"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"
]
}
}
}
~/.codex/config.toml[mcp_servers.plate]
command = "npx"
args = ["shadcn@latest", "mcp"]