Primereact Mcp

io.github.wisdomrockPublished by GitHub account wisdomrockv1.2.3Updated Oct 24, 2026

105 PrimeReact v10 components with props, types, and events

VerifiedSTDIODesktop onlyKnowledge & MemoryDeveloper Tools

Overview

AI-generated overview

Local MCP server exposing PrimeReact v10 component documentation — props, events, examples and search — so an assistant can look up and compare UI components.

What you can do
  • List and search components, filter by category, and get suggestions for a use case
  • Inspect a component's props, events, methods, slots, pass-through options, design tokens and CSS classes
  • Retrieve sections, usage examples, import statements and official documentation links
  • Find components by prop, event or feature, and compare two components side by side
  • Check version and compatibility info, and list form, data and overlay component groups
When to use it
Useful when building or maintaining a React UI with PrimeReact v10 and you want the assistant to answer questions about component APIs, pick the right component, or produce correct imports and examples without guessing.
Requirements
Node.js 18 or later; runs locally over stdio, typically via npx with no install, or from a cloned repository. Component data ships pre-generated in the package. No accounts, API keys or environment variables are declared.
Before you install
Read-only documentation lookup; no credentials or write actions are described. Data covers PrimeReact v10 only and is generated from TypeScript definitions, so it may lag behind newer releases until regenerated. Running via npx executes third-party package code on your machine.

Installation

In SourceWeft

  1. Open Primereact Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

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/mcp package. 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.ts source — no stale hand-written docs

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

bash
git clone https://github.com/wisdomrock/primereact-mcp.gitcd primereact-mcpnpm installnode index.mjs   # starts the server

To regenerate component data after a PrimeReact version upgrade:

bash
npm install primereact@10   # install the target versionnode generate-data.mjs      # rewrites components-data.json

MCP Client Setup

Claude Code (CLI)

bash
# via npx — zero installclaude mcp add primereact -- npx -y primereact-mcp
# or point at a local cloneclaude mcp add primereact -- node /absolute/path/to/primereact-mcp/index.mjs

Or add it to your project's .mcp.json:

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):

json
{  "mcpServers": {    "primereact": {      "command": "npx",      "args": ["-y", "primereact-mcp"]    }  }}

Cursor

Add to .cursor/mcp.json in your project root:

json
{  "mcpServers": {    "primereact": {      "command": "npx",      "args": ["-y", "primereact-mcp"]    }  }}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "primereact": {      "command": "npx",      "args": ["-y", "primereact-mcp"]    }  }}

Available Tools

ToolDescription
list_componentsList all 105 PrimeReact components, optionally filtered by category
get_componentGet full details for a component (stats, props preview, sections)
get_component_propsGet all props for a component with types and descriptions
get_component_eventsGet all event callbacks a component supports
get_component_methodsGet component methods (where documented)
get_component_slotsGet slots/render props for a component
get_component_ptGet Pass Through (PT) customization options
get_component_tokensGet design tokens (CSS variables)
get_component_stylesGet CSS class names
get_component_sectionsGet all sections with examples (basic, advanced, etc.)
get_component_importGet the correct import statement
get_component_urlGet the official documentation URL
get_usage_exampleGet code examples for a component
search_componentsSearch components by name or description
find_by_propFind all components that have a specific prop
find_by_eventFind all components that emit a specific event
find_components_with_featureFind components with a feature (e.g. "filter", "lazy", "virtual")
compare_componentsCompare two components side by side
suggest_componentSuggest components based on a use-case description
get_categoriesGet all component categories
get_version_infoGet PrimeReact version and compatibility info
get_form_componentsGet all form input components
get_data_componentsGet all data display components (tables, lists, trees)
get_overlay_componentsGet 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:

bash
npm install primereact@NEW_VERSIONnode generate-data.mjs

The 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.md

MCP Registry

This server is published to the Official MCP Registry. Registry metadata is in server.json at the repo root.

How it works

  1. generate-data.mjs reads each component's .d.ts file from the primereact npm package, parses JSDoc comments and TypeScript interface definitions using a line-by-line state machine, and writes structured JSON to components-data.json.

  2. index.mjs calls runPrimeMcpServer() 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 strategy
  • Pass Through (PT) data — extract PT options from .d.ts files
  • Design tokens — extract CSS variable names

Please open an issue before sending a large PR.


License

MIT — see LICENSE.


Related

Source: README.md at commit 9685499

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.2.3LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts