A comprehensive guide to PatternFly MCP Server tools, resources, and configuration.
User Guide:
MCP tools represent the actions available to interact with the server.
Core server tools provide a resource library for PatternFly. They are extensible by design and intended for use with available MCP resources.
Use this to search for PatternFly documentation URLs and component names. Accepts partial string matches or * to list all available components. From the content, you can select specific URLs and component names to use with usePatternFlyDocs.
Parameters:
searchQuery:string(required) - Full or partial component name to search for (e.g., "button", "table", "*" for all components)
Example:
{
"searchQuery": "button"
}Fetch full documentation and component JSON schemas for specific PatternFly URLs or component names.
Feature: This tool automatically detects if a URL belongs to a component (or if a "name" is provided) and appends its machine-readable JSON schema (props, types, validation) to the response, combining human-readable documentation with technical specifications.
Parameters: Parameters are mutually exclusive. Provide either name OR urlList, not both.
name:string(optional) - The name of the PatternFly component (e.g., "Button", "Modal"). Recommended for known component lookups.urlList:string[](optional) - A list of specific documentation URLs discovered viasearchPatternFlyDocs(max 15 at a time).
Example with name:
{
"name": "Button"
}Example with urlList:
{
"urlList": ["https://patternfly.org/components/button"]
}"fetchDocs" has been integrated into "usePatternFlyDocs."
"componentSchemas" has been integrated into "usePatternFlyDocs" and MCP resources.
MCP resources represent indexed collections of documentation and machine-readable metadata.
The server exposes a resource-centric architecture via the patternfly:// URI scheme. MCP clients can use these resources directly. Review the roadmap for future resource updates.
Note on AI content: Specialized AI guidance resources are sourced from the patternfly/ai-helpers integration. These are specifically optimized to help LLMs generate more accurate PatternFly code. See Data sources and integrations in architecture.
Use these indexes to discover what is available in the library:
patternfly://docs/index{?version,category,section}: A comprehensive index of all available PatternFly documentation pages.patternfly://docs/meta{?version}: Metadata discovery for available PatternFly documentation pages, helpful for understanding available filter parameters.patternfly://components/index{?version,category}: A list of all available PatternFly component names.patternfly://components/meta{?version}: Metadata discovery for components, helpful for understanding available filter parameters.patternfly://schemas/index{?version,category}: An index of all available component JSON schemas.patternfly://schemas/meta{?version}: Metadata discovery for JSON schemas, helpful for understanding available filter parameters.
Access specific component documentation or technical specifications using the following URI templates (RFC 6570):
patternfly://docs/{name}{?version,category,section}: Full human-readable documentation for a specific component (e.g.,patternfly://docs/button) or guideline.patternfly://schemas/{name}{?version,category}: Machine-readable JSON Schema for a specific component, detailing props, types, and validation rules (e.g.,patternfly://schemas/button).
patternfly://context: General PatternFly MCP server context, including high-level development rules and accessibility guidelines.
Tip for LLMs: When a user asks about a component you aren't familiar with, first check
patternfly://docs/indexto find the correct name, then read the documentation viapatternfly://docs/{name}. Usepatternfly://components/indexfor a cleaner list of component-only names.
Most MCP clients use JSON configuration to specify how the server is started. Below are examples you can adapt for your client.
{
"mcpServers": {
"patternfly-mcp": {
"command": "npx",
"args": ["-y", "@patternfly/patternfly-mcp@latest"],
"description": "PatternFly rules and documentation"
}
}
}{
"mcpServers": {
"patternfly-mcp": {
"command": "npx",
"args": ["-y", "@patternfly/patternfly-mcp@latest", "--http", "--port", "8080"],
"description": "PatternFly rules and documentation (HTTP transport)"
}
}
}{
"mcpServers": {
"patternfly-mcp": {
"command": "npx",
"args": [
"-y",
"@patternfly/patternfly-mcp@latest",
"--tool",
"./mcp-tools/local-custom-tool.js"
],
"description": "PatternFly MCP with a local custom tool"
}
}
}{
"mcpServers": {
"patternfly-mcp": {
"command": "npx",
"args": [
"-y",
"@patternfly/patternfly-mcp@latest",
"--http",
"--port",
"3000",
"--allowed-origins",
"https://app.com",
"--allowed-hosts",
"localhost,127.0.0.1"
],
"description": "PatternFly rules and documentation (HTTP transport with security)"
}
}
}You can extend the server's capabilities by loading custom Tool Plugins at startup.
See development documentation for tool plugins.
These are first-step checks for common setup problems, not full diagnostics. If something still fails, use the community links at the end of this section or ask your IT team, especially on Windows, where permissions, security software, and Git setup vary and may be beyond simple troubleshooting.
Note on Operating Systems: Our primary development and testing environments are macOS and Linux. While we provide instructions for Windows, these commands are run at your own discretion. If you are unsure, please verify them with your IT or system administrator before proceeding.
Agents: PatternFly MCP server information is available internally through the
patternfly://contextMCP resource.
The PatternFly MCP server requires Node.js 20 or higher.
- How to check:
- macOS/Linux: Open Terminal and type
node -v. - Windows: Open PowerShell or Command Prompt and type
node -v.
- macOS/Linux: Open Terminal and type
- Requirement: You should see a version starting with
v20,v22, or higher. - Solution: If your version is lower than 20, please download and install the latest "LTS" (Long Term Support) version from nodejs.org.
If you encounter an ERR_MODULE_NOT_FOUND error or don't see the latest features, your system may be using a "stale" or corrupted version in its cache.
Run this command in your Terminal:
rm -rf ~/.npm/_npxRun the appropriate command for your terminal:
- PowerShell:
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache\_npx"
- Command Prompt (CMD):
rd /s /q "%LocalAppData%\npm-cache\_npx"
Next Step: Restart your MCP client (e.g., Claude Desktop, IDE, or Cursor) to force a fresh download.
On Windows, folders such as .agents/skills and .claude/skills can look empty if Git created them as normal folders instead of links to guidelines/skills. This often happens because Developer Mode, or Git symlink support, hasn't been enabled.
For detailed instructions on enabling and restoring symlinks, please refer to the Windows and repository symlinks section in CONTRIBUTING.md.
To ensure you stay up to date with the latest PatternFly documentation, use the @latest tag in your configuration:
"patternfly-mcp": {
"command": "npx",
"args": ["-y", "@patternfly/patternfly-mcp@latest"],
"description": "PatternFly rules and documentation"
}Using
@latestin the configuration means installs resolve to the "latest" published version when npm/npx fetches the package, typically on a newnpxrun.
If your logs show Error [ERR_MODULE_NOT_FOUND], it likely indicates a corrupted cache following a PatternFly MCP version update. Please follow the Reset the npx Cache steps above for your specific operating system.
If you have tried the steps above and are still encountering issues, or if you have specific questions about using PatternFly with your AI assistant, the following community resources are available:
- PatternFly Slack: Join our Slack community for real-time support and conversation.
- GitHub Discussions: A great place to ask questions, share ideas, and see how others are leveraging PatternFly.
- PatternFly on Medium: Read articles and deep-dives into PatternFly design and development practices.