mcp-redhat-kb

jeanlopezxyz/mcp-redhat-kb

3.3

If you are the rightful owner of mcp-redhat-kb and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Red Hat Knowledge Base MCP Server is a tool designed to facilitate the search and retrieval of information from the Red Hat Knowledge Base using the Model Context Protocol.

Tools
2
Resources
0
Prompts
0

Red Hat Knowledge Base MCP Server

License: MIT npm version Java GitHub release Docker

A Model Context Protocol (MCP) server for searching the Red Hat Knowledge Base (Hydra API).

Built with Quarkus MCP Server.

Transport Modes

This server supports two MCP transport modes:

ModeDescriptionUse Case
stdioStandard input/output communicationDefault for VS Code, Cursor, Windsurf
SSEServer-Sent Events over HTTPStandalone server, web integrations, multiple clients

Table of Contents


Requirements


Installation

npx

npx -y mcp-redhat-kb@latest

MCP Client Configuration

Add to your MCP client configuration (VS Code, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "redhat-kb": {
      "command": "npx",
      "args": ["-y", "mcp-redhat-kb@latest"],
      "env": {
        "REDHAT_TOKEN": "your-token-here"
      }
    }
  }
}

VS Code

code --add-mcp '{"name":"redhat-kb","command":"npx","args":["-y","mcp-redhat-kb@latest"],"env":{"REDHAT_TOKEN":"your-token-here"}}'

Cursor

Add to mcp.json:

{
  "mcpServers": {
    "redhat-kb": {
      "command": "npx",
      "args": ["-y", "mcp-redhat-kb@latest"],
      "env": {
        "REDHAT_TOKEN": "your-token-here"
      }
    }
  }
}

Windsurf

Add to MCP configuration:

{
  "mcpServers": {
    "redhat-kb": {
      "command": "npx",
      "args": ["-y", "mcp-redhat-kb@latest"],
      "env": {
        "REDHAT_TOKEN": "your-token-here"
      }
    }
  }
}

Goose CLI

Add to config.yaml:

extensions:
  redhat-kb:
    command: npx
    args:
      - -y
      - mcp-redhat-kb@latest
    env:
      REDHAT_TOKEN: your-token-here

Docker

docker run -e REDHAT_TOKEN="your-token" ghcr.io/jeanlopezxyz/mcp-redhat-kb:latest

SSE Mode

Run as standalone server:

REDHAT_TOKEN="your-token" npx mcp-redhat-kb --port 9081

Endpoint: http://localhost:9081/mcp/sse


Configuration

Command Line Options

OptionDescription
--port <PORT>Start in SSE mode on specified port
--helpShow help message
--versionShow version

Environment Variables

VariableDescriptionRequired
REDHAT_TOKENRed Hat API offline tokenYes

Tools

This server provides 5 tools for searching Red Hat Knowledge Base:

Search

searchKnowledgeBase

Search Red Hat Knowledge Base for solutions and articles. Use error messages or technical keywords.

ParameterTypeRequiredDescription
querystringYesSearch keywords
maxResultsintegerNoMax results 1-50 (default: 10)
productstringNoFilter: OpenShift, RHEL
documentTypestringNoType: Solution, Documentation, Article
getSolution

Get full content of a Knowledge Base article. Use article ID from search results.

ParameterTypeRequiredDescription
solutionIdstringYesArticle ID (numeric)

Troubleshooting

troubleshootError

Search for solutions to an error message. Optimized for troubleshooting.

ParameterTypeRequiredDescription
errorMessagestringYesError message to search
productstringNoProduct (default: OpenShift)
findSolutionForAlert

Find KB solutions for a Prometheus/OpenShift alert name.

ParameterTypeRequiredDescription
alertNamestringYesAlert name (e.g., KubePodCrashLooping)
productstringNoProduct (default: OpenShift)
searchDocumentation

Search Red Hat documentation for how-to guides and best practices.

ParameterTypeRequiredDescription
topicstringYesTopic to search
productstringNoProduct (default: OpenShift)

Example Prompts

Use natural language to search the Knowledge Base:

"Search knowledge base for CrashLoopBackOff"
"Find solutions for etcd timeout errors"
"Search KB for oauth authentication error in OpenShift"
"Get the full solution for article 7129807"
"Find documentation about OpenShift networking"
"Search for RHEL storage issues"

Development

Run in dev mode

export REDHAT_TOKEN="your-token"
./mvnw quarkus:dev

Build

./mvnw package -DskipTests

Test with MCP Inspector

# stdio mode
REDHAT_TOKEN="your-token" npx @modelcontextprotocol/inspector npx mcp-redhat-kb

# SSE mode
REDHAT_TOKEN="your-token" npx mcp-redhat-kb --port 9081
# Then connect inspector to http://localhost:9081/mcp/sse

Kubernetes / OpenShift Deployment

Container Image

The container image is available on GitHub Container Registry:

ghcr.io/jeanlopezxyz/mcp-redhat-kb:latest

Helm Chart

Deploy using the included Helm chart:

# Create secret with Red Hat token
kubectl create secret generic mcp-redhat-kb-secrets \
  --namespace mcp-servers \
  --from-literal=REDHAT_TOKEN=your-token-here

# Deploy with Helm
helm upgrade --install mcp-redhat-kb ./charts/mcp-redhat-kb \
  --namespace mcp-servers \
  --create-namespace \
  --set openshift=true \
  --set redhat.existingSecret=mcp-redhat-kb-secrets
Helm Values
ParameterDescriptionDefault
image.registryContainer registryghcr.io
image.repositoryImage repositoryjeanlopezxyz/mcp-redhat-kb
image.versionImage taglatest
openshiftEnable OpenShift Routesfalse
service.portService port8080
redhat.existingSecretName of existing secret with REDHAT_TOKEN""
redhat.tokenRed Hat API token (if not using existingSecret)""
Example with inline token (not recommended for production)
helm upgrade --install mcp-redhat-kb ./charts/mcp-redhat-kb \
  --namespace mcp-servers \
  --set openshift=true \
  --set redhat.token=your-token-here

Related Projects


License

- Free to use, modify, and distribute.