MCP Server

Model Context Protocol (MCP) server for PrimeNG component library. Provides AI assistants with comprehensive access to PrimeNG component documentation.

Model Context Protocol (MCP) is an open standard that enables AI models to connect with external tools and data sources. The PrimeNG MCP server provides AI assistants with comprehensive access to:

  • Component documentation including props, events, templates, and methods
  • Theming and styling with Pass Through and design tokens
  • Code examples and usage patterns
  • Migration guides for version upgrades
  • Installation and configuration guides

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


# Add to user config (available in all projects)
claude mcp add primeng -s user -- npx -y @primeng/mcp

# Or add to current project only
claude mcp add primeng -- npx -y @primeng/mcp

See Claude Code MCP Documentation for more details.

Create .vscode/mcp.json in your project or ~/Library/Application Support/Code/User/mcp.json for global configuration.


{
    "servers": {
        "primeng": {
            "command": "npx",
            "args": ["-y", "@primeng/mcp"]
        }
    }
}

See VS Code MCP Documentation for more details.

Add the PrimeNG MCP server using the CLI or edit ~/.codex/config.toml directly.


# Using the CLI
codex mcp add primeng -- npx -y @primeng/mcp

# Or edit ~/.codex/config.toml
[mcp_servers.primeng]
command = "npx"
args = ["-y", "@primeng/mcp"]

See OpenAI Codex MCP Documentation for more details.

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


{
    "mcpServers": {
        "primeng": {
            "command": "npx",
            "args": ["-y", "@primeng/mcp"]
        }
    }
}

See Cursor MCP Documentation for more details.

Edit ~/.codeium/windsurf/mcp_config.json to add the PrimeNG MCP server.


{
    "mcpServers": {
        "primeng": {
            "command": "npx",
            "args": ["-y", "@primeng/mcp"]
        }
    }
}

See Windsurf MCP Documentation for more details.

Add to your Zed settings at ~/.config/zed/settings.json (Linux) or ~/Library/Application Support/Zed/settings.json (macOS).


{
    "context_servers": {
        "primeng": {
            "command": {
                "path": "npx",
                "args": ["-y", "@primeng/mcp"]
            }
        }
    }
}

See Zed MCP Documentation for more details.

Component Information

Tools for exploring and understanding PrimeNG components.

  • list_components : List all PrimeNG components with categories
  • get_component : Get detailed info about a specific component
  • search_components : Search components by name or description
  • get_component_props : Get all props for a component
  • get_component_events : Get all events for a component
  • get_component_methods : Get all methods for a component
  • get_component_slots : Get all templates for a component
  • compare_components : Compare two components side by side

Code Examples

Tools for retrieving code samples and generating templates.

  • get_usage_example : Get code examples for a component
  • list_examples : List all available code examples
  • get_example : Get a specific example by component and section
  • generate_component_template : Generate a basic component template

Theming & Styling

Tools for customizing component appearance and styling.

  • get_component_pt : Get Pass Through options for DOM customization
  • get_component_tokens : Get design tokens (CSS variables)
  • get_component_styles : Get CSS class names
  • get_theming_guide : Get detailed theming guide
  • get_passthrough_guide : Get Pass Through customization guide
  • get_tailwind_guide : Get Tailwind CSS integration guide

Documentation & Guides

Tools for accessing PrimeNG documentation and guides.

  • list_guides : List all guides and documentation pages
  • get_guide : Get a specific guide by name
  • get_configuration : Get PrimeNG configuration options
  • get_installation : Get installation instructions
  • get_accessibility_guide : Get accessibility guide
  • get_accessibility_info : Get accessibility info for a component

Migration

Tools for upgrading between PrimeNG versions.

  • get_migration_guide : Get migration guide overview
  • migrate_v18_to_v19 : v18 to v19 migration guide
  • migrate_v19_to_v20 : v19 to v20 migration guide
  • migrate_v20_to_v21 : v20 to v21 migration guide

Search & Discovery

Tools for finding components based on various criteria.

  • search_all : Search across components, guides, and props
  • suggest_component : Suggest components based on use case
  • find_by_prop : Find components with a specific prop
  • find_by_event : Find components that emit a specific event
  • find_components_with_feature : Find components supporting a feature
  • get_related_components : Find related components

Once installed, try asking your AI assistant:


"Show me how to use the Table component with sorting and filtering"
"What props does the Button component have?"
"How do I customize the Dialog component styling with Pass Through?"
"Compare the Select and Listbox components"
"What's the best component for a date picker?"
"How do I migrate from PrimeNG v20 to v21?"

Theme Designer
Theme Designer is the ultimate tool to customize and design your own themes featuring a visual editor, figma to theme code, cloud storage, and migration assistant.