primereact-mcp
Provides access to PrimeReact v10 component documentation, including props, events, examples, search, and comparison tools for building React UI applications.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@primereact-mcp Find all components with a filter prop"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
primereact-mcp
A Model Context Protocol (MCP) server that gives AI assistants full access to PrimeReact v10 component documentation — props, events, examples, and search.
Why does this exist?
The PrimeReact team has not yet published an official@primereact/mcppackage. This server fills that gap using the same engine (@primeuix/mcp) that powers the official PrimeNG MCP server, with component data extracted from PrimeReact's TypeScript definitions. The official PrimeReact MCP will be launched with v11.
Features
105 PrimeReact v10 components with full prop/event documentation
15+ MCP tools: search, suggest, inspect props, get examples, compare components, and more
Works with Claude Code, Claude Desktop, Cursor, Windsurf, and any MCP-compatible client
Generated directly from PrimeReact's TypeScript
.d.tssource — no stale hand-written docs
Related MCP server: mcp-primer
Quick Start
Prerequisites
Node.js 18 or later
An MCP-compatible AI client (see below)
Option A — npx (no install needed)
Use npx -y primereact-mcp directly in your MCP client config. Component data ships pre-generated inside the package.
Option B — clone and run locally
git clone https://github.com/wisdomrock/primereact-mcp.git
cd primereact-mcp
npm install
node index.mjs # starts the serverTo regenerate component data after a PrimeReact version upgrade:
npm install primereact@10 # install the target version
node generate-data.mjs # rewrites components-data.jsonMCP Client Setup
Claude Code (CLI)
# via npx — zero install
claude mcp add primereact -- npx -y primereact-mcp
# or point at a local clone
claude mcp add primereact -- node /absolute/path/to/primereact-mcp/index.mjsOr add it to your project's .mcp.json:
{
"mcpServers": {
"primereact": {
"command": "npx",
"args": ["-y", "primereact-mcp"]
}
}
}Claude Desktop
Add the following to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"primereact": {
"command": "npx",
"args": ["-y", "primereact-mcp"]
}
}
}Cursor
Add to .cursor/mcp.json in your project root:
{
"mcpServers": {
"primereact": {
"command": "npx",
"args": ["-y", "primereact-mcp"]
}
}
}Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"primereact": {
"command": "npx",
"args": ["-y", "primereact-mcp"]
}
}
}Available Tools
Tool | Description |
| List all 105 PrimeReact components, optionally filtered by category |
| Get full details for a component (stats, props preview, sections) |
| Get all props for a component with types and descriptions |
| Get all event callbacks a component supports |
| Get component methods (where documented) |
| Get slots/render props for a component |
| Get Pass Through (PT) customization options |
| Get design tokens (CSS variables) |
| Get CSS class names |
| Get all sections with examples (basic, advanced, etc.) |
| Get the correct import statement |
| Get the official documentation URL |
| Get code examples for a component |
| Search components by name or description |
| Find all components that have a specific prop |
| Find all components that emit a specific event |
| Find components with a feature (e.g. "filter", "lazy", "virtual") |
| Compare two components side by side |
| Suggest components based on a use-case description |
| Get all component categories |
| Get PrimeReact version and compatibility info |
| Get all form input components |
| Get all data display components (tables, lists, trees) |
| Get all overlay/popup components |
Example prompts
Which PrimeReact component should I use for a searchable multi-select?
What props does the DataTable component accept?
Find all PrimeReact components that have a filter prop.
Compare the Dropdown and AutoComplete components.
Show me the import statement for the Calendar component.Upgrading PrimeReact Version
To update the component data after upgrading PrimeReact:
npm install primereact@NEW_VERSION
node generate-data.mjsThe generate-data.mjs script re-reads all .d.ts files and rewrites components-data.json.
Project Structure
primereact-mcp/
├── index.mjs # MCP server entry point
├── generate-data.mjs # Generates components-data.json from .d.ts files
├── components-data.json # Generated component data (committed for convenience)
├── server.json # MCP Registry metadata
├── package.json
└── README.mdMCP Registry
This server is published to the Official MCP Registry. Registry metadata is in server.json at the repo root.
How it works
generate-data.mjsreads each component's.d.tsfile from theprimereactnpm package, parses JSDoc comments and TypeScript interface definitions using a line-by-line state machine, and writes structured JSON tocomponents-data.json.index.mjscallsrunPrimeMcpServer()from@primeuix/mcp— the same shared engine used by the official PrimeNG MCP server — passing PrimeReact-specific configuration and the generated component data.
Contributing
Contributions welcome! Areas that would benefit from improvement:
Richer examples — add JSX code snippets to more component sections
PrimeReact v11 support — the alpha v11 uses
@primereact/types, requiring a different parsing strategyPass Through (PT) data — extract PT options from
.d.tsfilesDesign tokens — extract CSS variable names
Please open an issue before sending a large PR.
License
MIT — see LICENSE.
Related
@primeng/mcp — Official MCP server for PrimeNG (Angular)
@primeuix/mcp — Shared MCP engine by the PrimeFaces team
Available Tools
43 toolscompare_componentsC
Compare two PrimeReact components side by side
Inputs: component1 (required), component2 (required).
export_component_docsB
Export complete documentation for a PrimeReact component in markdown format
Inputs: component (required).
find_by_eventC
Find PrimeReact components that emit a specific event
Inputs: event_name (required).
find_by_propB
Find PrimeReact components that have a specific prop
Inputs: prop_name (required).
find_components_with_featureB
Find PrimeReact components that support a specific feature (e.g., 'filter', 'lazy', 'virtual', 'template', 'multiple', 'disabled')
Inputs: feature (required).
generate_component_templateB
Generate a basic template for a PrimeReact component with common props
Inputs: component (required), include_events.
get_accessibility_guideB
Get PrimeReact accessibility guide (WCAG compliance, ARIA, screen readers)
Inputs: no named parameters.
get_accessibility_infoB
Get accessibility information for a PrimeReact component
Inputs: component (required).
get_categoriesB
Get all PrimeReact component categories
Inputs: no named parameters.
get_componentC
Get detailed information about a specific PrimeReact component
Inputs: name (required).
get_component_eventsC
Get all events for a PrimeReact component
Inputs: component (required).
get_component_importB
Get the correct import statement for a PrimeReact component
Inputs: component (required).
get_component_methodsC
Get all methods for a PrimeReact component
Inputs: component (required).
get_component_propsC
Get all props/properties for a PrimeReact component
Inputs: component (required).
get_component_ptB
Get Pass Through (PT) options for a PrimeReact component to customize DOM elements
Inputs: component (required).
get_component_sectionsC
Get all available sections/features for a PrimeReact component with examples
Inputs: component (required).
get_component_slotsC
Get all slots for a PrimeReact component
Inputs: component (required).
get_component_stylesB
Get CSS class names for a PrimeReact component
Inputs: component (required).
get_component_tokensB
Get design tokens (CSS variables) for a PrimeReact component
Inputs: component (required).
get_component_urlB
Get the official documentation URL for a PrimeReact component
Inputs: component (required).
get_configurationB
Get PrimeReact application-wide configuration options (ripple, zIndex, locale, PT options, etc.)
Inputs: section.
get_data_componentsA
Get all PrimeReact data display components (tables, lists, trees)
Inputs: no named parameters.
get_exampleC
Get a specific code example by PrimeReact component and section
Inputs: section (required), component (required), variant.
get_form_componentsB
Get all PrimeReact form input components
Inputs: no named parameters.
get_guideC
Get a specific PrimeReact guide by name
Inputs: name (required), section.
get_icons_guideB
Get guide for using icons in PrimeReact (PrimeIcons, custom icons, FontAwesome, Material)
Inputs: type.
get_installationB
Get PrimeReact installation instructions
Inputs: environment.
get_overlay_componentsA
Get all PrimeReact overlay/popup components (dialogs, drawers, popovers, tooltips)
Inputs: no named parameters.
get_passthrough_guideB
Get guide for using Pass Through (PT) to customize PrimeReact component DOM elements
Inputs: section.
get_performance_tipsC
Get performance optimization tips for a specific PrimeReact component
Inputs: component (required).
get_tailwind_guideC
Get guide for integrating PrimeReact with Tailwind CSS
Inputs: section.
get_theming_guideC
Get detailed PrimeReact theming guide (styled mode, unstyled mode, design tokens)
Inputs: mode.
get_theming_infoC
Get information about PrimeReact theming
Inputs: mode.
get_usage_exampleC
Get code examples for a PrimeReact component
Inputs: component (required).
get_version_infoB
Get PrimeReact version and compatibility information
Inputs: no named parameters.
list_componentsC
List all available PrimeReact components with their categories
Inputs: category.
list_examplesC
List all available code examples across PrimeReact components
Inputs: component.
list_guidesA
List all available PrimeReact guides and documentation pages
Inputs: no named parameters.
search_allB
Search across all PrimeReact components, guides, props, and examples
Inputs: query (required).
search_componentsB
Search PrimeReact components by name or description
Inputs: query (required).
suggest_componentB
Suggest PrimeReact components based on a use case description
Inputs: use_case (required).
validate_propsB
Validate if props exist and are correctly used for a PrimeReact component
Inputs: props (required), component (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 43 tools
Most tools target clearly distinct aspects of PrimeReact documentation, such as props, events, methods, slots, examples, theming, and accessibility. A few areas could still be confused, especially search_components vs search_all, get_theming_info vs get_theming_guide, and get_component_pt vs get_passthrough_guide.
Tool names consistently use snake_case with predictable verb_noun or get_noun patterns, such as get_component_props, get_component_events, list_guides, and find_by_prop. There are no mixed casing styles or major naming convention deviations.
The 43-tool surface is very large for a documentation server, and many granular getters could be consolidated into parameterized tools such as get_component_info(component, section). While PrimeReact has a broad domain, this count creates unnecessary selection overhead for an agent.
The tool set covers component discovery, props, events, methods, slots, examples, templates, validation, styles, tokens, PT options, guides, theming, accessibility, configuration, installation, and search. It provides a thorough reference surface for PrimeReact documentation with no obvious major gaps.
Related MCP Connectors
MCP server for agentverse documentation, generated by doc2mcp.
Augments MCP Server - A comprehensive framework documentation provider for Claude Code
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
AlicenseAqualityBmaintenanceMCP server that gives AI assistants on-demand access to 1,500+ amCharts 5 docs, ~300 code examples, and 1000+ class API references.111,947 npm9MIT- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI models to render GitHub's Primer React components directly within chat interfaces using a JSON component tree. It provides tools to list available components and display interactive UI elements with full GitHub theming support.MIT
- AlicenseAqualityBmaintenanceMCP server for daisyUI React components that enables AI coding assistants to search documentation, look up props, and retrieve code examples.57 npm2MIT
- AlicenseAqualityBmaintenanceMCP server that provides access to Livewire Flux components and layouts documentation, enabling AI assistants to fetch and search through documentation on demand.4373 npm9MIT