@primereact/mcp
v11.0.0
Published
Model Context Protocol (MCP) server for PrimeReact component library
Readme
@primereact/mcp
Model Context Protocol server for PrimeReact v11 generated documentation.
Requires Node.js 22 or newer. Published runtime data is self-contained: canonical JSON lives once under data/, while offline Markdown, API JSON, hooks, indexes, and text resources live under data/llms/.
The package is a thin PrimeReact server over the shared @primeuix/mcp v2 core. It exposes the compact v2 tool surface only:
listsearchget_componentget_guideget_exampleget_setupvalidate_usageversion
PrimeReact mode boundaries are preserved through the generated docs data: styled, tailwind, primitive, headless, and hooks.
Install
Run the server with:
npx -y @primereact/mcpThe package bundles generated docs from apps/showcase/public/llms into packages/mcp/data. Generated Markdown and API resources are read from package-owned data/llms first, with the local showcase tree used only as a source-development fallback.
Package-manager assumption: @primereact/mcp does not vendor the shared core. Its RC dependency on @primeuix/mcp is pinned exactly to 2.0.0-rc.2; keep the dependency exact throughout the RC cycle so installed behavior remains reproducible.
Claude Code
claude mcp add primereact -s user -- npx -y @primereact/mcpProject-local install:
claude mcp add primereact -- npx -y @primereact/mcpCursor
Create .cursor/mcp.json in your project or ~/.cursor/mcp.json globally:
{
"mcpServers": {
"primereact": {
"command": "npx",
"args": ["-y", "@primereact/mcp"]
}
}
}VS Code
Create .vscode/mcp.json in your project:
{
"servers": {
"primereact": {
"command": "npx",
"args": ["-y", "@primereact/mcp"]
}
}
}For a user-level setup, place the same servers object in your VS Code MCP user configuration.
Codex
codex mcp add primereact -- npx -y @primereact/mcpDirect ~/.codex/config.toml configuration:
[mcp_servers.primereact]
command = "npx"
args = ["-y", "@primereact/mcp"]Development
corepack pnpm --filter @primereact/mcp test
corepack pnpm --filter @primereact/mcp build