
Prototype MCP server for RHOAI
概览
An MCP (Model Context Protocol) server that enables AI agents to interact with Red Hat OpenShift AI (RHOAI) environments. This server replicates the capabilities of the OpenShift AI Dashboard through programmatic tools. - : Create, list, and manage Data Science Projects - : Create, start, stop, and delete Jupyter workbenches - : Deploy and manage InferenceServices with KServe - : Manage S3 credentials for data access - : Configure Data Science Pipelines infrastructure - : Create and manage persistent volume claims - : Fine-tune models with Kubeflow Training Operator - : Workflow guidance for multi-step operations (18 prompts) Want to add your team's capabilities to rhoai-mcp? See the contributor guide for templates, documentation, and a working example domain. For OpenShift installation, refer to OpenShift deployment.
README
以下为原文 README 节选,完整内容请查看原文。
RHOAI MCP Server
An MCP (Model Context Protocol) server that enables AI agents to interact with Red Hat OpenShift AI (RHOAI) environments. This server replicates the capabilities of the OpenShift AI Dashboard through programmatic tools.
Features
- Project Management: Create, list, and manage Data Science Projects
- Workbench Operations: Create, start, stop, and delete Jupyter workbenches
- Model Serving: Deploy and manage InferenceServices with KServe
- Data Connections: Manage S3 credentials for data access
- Pipelines: Configure Data Science Pipelines infrastructure
- Storage: Create and manage persistent volume claims
- Training: Fine-tune models with Kubeflow Training Operator
- MCP Prompts: Workflow guidance for multi-step operations (18 prompts)
Technology Stack
| Component | Technology | Purpose |
|---|---|---|
| Runtime | Python 3.11+ | Core language |
| MCP Framework | FastMCP 1.0+ | Model Context Protocol server |
| Kubernetes Client | kubernetes-python 28.1+ | Cluster API interactions |
| Data Validation | Pydantic 2.0+ | Type-safe models and settings |
| HTTP Client | httpx 0.27+ | Async HTTP requests |
| Container Base | Red Hat UBI 9 | Production container image |
| Package Manager | uv | Fast Python dependency management |
Extending
Want to add your team’s capabilities to rhoai-mcp? See the contributor guide for templates, documentation, and a working example domain.
Installation
For OpenShift installation, refer to OpenShift deployment.
Using uv (recommended)
# Clone the repository
git clone https://github.com/opendatahub-io/rhoai-mcp.git
cd rhoai-mcp
# Install dependencies
uv sync
# Run the server
uv run rhoai-mcp
Using pip
pip install -e .
rhoai-mcp
Using Container (Podman/Docker)
# Build the image
make build
安装
uvx --from git+https://github.com/opendatahub-io/rhoai-mcp rhoai-mcp配置
{
"mcpServers": {
"rhoai-mcp": {
"url": "https://<RHOAI_MCP_ROUTE>/mcp"
}
}
}