Skip to main content
Glama
PatternFly MCP Server

PatternFly MCP Server

Official
by patternfly

PatternFly MCP Server

A Model Context Protocol (MCP) server that provides access to PatternFly rules and documentation, built with Node.js.

The PatternFly MCP server is a comprehensive library resource for PatternFly. It is intended to be extensible to meet the needs of different teams and projects, from simple to complex, from design to development. Read more about our roadmap and how we've structured the server in our architecture docs.

Requirements

Related MCP server: Design System MCP Server

Quick start

The PatternFly MCP Server supports multiple configurations; see the usage documentation for details.

For integrated use with an IDE

Set a basic MCP configuration

Unable to update to the required Node.js version? See pinned MCP configuration examples for earlier Node.js versions.

Minimal configuration

{
  "mcpServers": {
    "patternfly-mcp": {
      "command": "npx",
      "args": ["-y", "@patternfly/patternfly-mcp@latest"],
      "description": "PatternFly rules and documentation"
    }
  }
}

HTTP transport mode

{
  "mcpServers": {
    "patternfly-mcp": {
      "command": "npx",
      "args": ["-y", "@patternfly/patternfly-mcp@latest", "--http", "--port", "8080"],
      "description": "PatternFly rules and documentation (HTTP transport)"
    }
  }
}

See the MCP Server Configuration documentation for more examples.

For development, advanced usage

Run the latest released server

Run the latest published package immediately via npx:

npx -y @patternfly/patternfly-mcp@latest

Or with options

npx -y @patternfly/patternfly-mcp@latest --log-stderr --verbose

Run a locally built server

# clone the repo, change the directory, npm install, npm run build, then in the repo context run...
npm start

Inspect the server

Visualize and test the packaged MCP interface:

npx -y @modelcontextprotocol/inspector npx -y @patternfly/patternfly-mcp@latest

Build from source and test a local built MCP interface:

# clone the repo, change the directory, npm install, npm run build, then in the repo context run...
npx -y @modelcontextprotocol/inspector node dist/cli.js

Embed the server in your application

import { start } from '@patternfly/patternfly-mcp';

// Remember to avoid using console.log and info, they pollute STDOUT
async function main() {
  const server = await start();

  // Graceful shutdown
  process.on('SIGINT', async () => {
    await server.stop();
    process.exit(0);
  });
}

main();

See the development documentation for additional examples, CLI and embedded server options.

Documentation

For comprehensive usage, development, and project state read the docs.

Security & Governance

See SECURITY.md for vulnerability reporting and GOVERNANCE.md for how contributions are reviewed.

Contributing

Contributing? Guidelines can be found here CONTRIBUTING.md.

AI agent

If you're using an AI assistant to help with development in this repository, please prompt it to review the repo guidelines to ensure adherence to project conventions.

Guidelines for developer-agent interaction can be found in CONTRIBUTING.md.

Available Tools

2 tools
searchPatternFlyDocsA

Search collections and get component names with documentation and guidance URLs. Supports case-insensitive partial, version-specific (e.g., "card v5"), and all ("*") matches.

  **Usage**:
    1. Input a "searchQuery" to find documentation and guideline URLs, resource URIs, and component names.
    2. Use the returned resource names OR URLs OR URIs OR version with the "usePatternFlyDocs" tool to get markdown documentation, guidelines, and component JSON schemas.

  **Returns**:
    - Component and resource names that can be used with "usePatternFlyDocs"
    - Documentation and guideline URLs that can be used with "usePatternFlyDocs"
    - Resource URIs that can be used with "usePatternFlyDocs" or directly as MCP resources
  

Inputs: searchQuery (required), collection.

usePatternFlyDocsA

Get markdown documentation and component JSON schemas for PatternFly resources and components.

  **Usage**:
    1. Input a component or resource name (e.g., "Button", "Writing") OR a list of up to 15 patternfly:// URIs or documentation URLs at a time (typically from searchPatternFlyDocs results).

  **Returns**:
    - Markdown documentation
    - Component JSON schemas, if available
  

Inputs: name, urlList, version.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools form a clean, non-overlapping pipeline: searchPatternFlyDocs discovers names/URLs/URIs, and usePatternFlyDocs retrieves content for them. Each description explicitly points to the other as the next step, leaving no realistic chance of misselection.

    Naming Consistency5/5

    Both tools use camelCase with the same '<verb>PatternFlyDocs' shape, differing only in the verb (search vs. use), which is a clear and predictable pattern.

    Tool Count4/5

    Two tools is slightly below the typical 3-15 range, but for a documentation retrieval server the search-then-fetch pair is the minimal complete surface. No tool feels redundant or missing as a separate capability.

    Completeness4/5

    Discovery (including wildcard '*' listing and version filtering) plus content/schema retrieval covers the core docs workflow with no dead ends. A dedicated collection-listing or version-enumeration operation would be a minor nicety, but search substitutes for it.

    Maintenance

    ActivityActive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers