MCP Server

Give compatible AI assistants access to PrimeNG component documentation, guides, examples, and Angular API metadata.

Model Context Protocol (MCP) lets AI assistants call external tools. The @primeng/mcp package uses those tools to search and read the PrimeNG documentation included with the package.

  • Find components, guides, examples, and standalone setup instructions.
  • Read component APIs, Angular inputs and outputs, templates, and documentation sections.
  • Check component usage against documented selectors, inputs, and outputs.
  • Return links to the related PrimeNG documentation when available.

The server requires Node.js 22 or newer. It is read-only and does not change your project files or PrimeNG configuration.

The recommended setup is the PrimeNG Plugin. It installs this MCP server together with the PrimeNG skills for implementation, setup, theming, migration, and troubleshooting.

Replace copilot with claude, codex, gemini, or cursor for another supported assistant. Use Manual Setup when you want the MCP server without the plugin skills.

Add the PrimeNG MCP server using the CLI. After adding, start a new session and use /mcp to verify the connection.

See Claude Code MCP Documentation for more details.

Create .vscode/mcp.json for project-level setup. To use the server across projects, add the same servers entry to your VS Code user MCP configuration.

See VS Code MCP Documentation for more details.

Add the MCP server with the Codex CLI, or add the same configuration to ~/.codex/config.toml.

See OpenAI Codex MCP Documentation for more details.

Create .cursor/mcp.json in your project or ~/.cursor/mcp.json for global configuration.

See Cursor MCP Documentation for more details.

The PrimeNG MCP server provides eight tools.

ToolPurpose
listList available components, guides, examples, resources, or modes.
searchSearch generated component, guide, Angular API, section, and example text.
get_componentRead component documentation, Angular API metadata, and available sections.
get_guideRead a generated PrimeNG guide and its source metadata.
get_exampleReturn an example from a documented component section.
get_setupReturn setup guidance for supported standalone Angular environments.
validate_usageValidate component usage against generated PrimeNG API metadata.
versionReport the server version and the status of its documentation data, tools, and resources.

The MCP package includes a generated copy of the PrimeNG documentation. This keeps the server usable without a PrimeNG source checkout and makes its answers match the installed package version. Results include a primeui://primeng resource URI and, when available, a link to the public documentation.

  • The tools do not edit files, install dependencies, or update configuration.
  • validate_usage checks documented Angular component metadata. If the required metadata is unavailable, it reports that limitation instead of guessing.
  • Run your project type checks, tests, and browser checks after making changes. MCP validation does not replace them.

If you installed the PrimeNG Plugin, do not register the MCP server again with a manual configuration. Run the CLI doctor command if the server is missing or appears more than once.