Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

kubeflow-mcp

Latest version: v0.2.1rc1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: andreyvelich
61 Stars
104 Forks
3 Versions
324 Downloads
Python Repo language

Scan summary

kubeflow-mcp was last scanned on 27 Nov 2026 at version 0.2.1rc1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest 2 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.2.1rc1.
  • Downloads: 324 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.1rc1 LATEST 27 Nov 2026 No rules fired
0.2.0rc3 25 Nov 2026 No rules fired
0.2.0rc1 16 Nov 2026 No rules fired

No rules fired in 0.2.1rc1

Findings

Findings for v0.2.1rc1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.1rc1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Kubeflow MCP Server

License Python Join Slack

Quickstart · Architecture · Blog · KEP-936 · Roadmap · Security · Contributing

Overview

The Kubeflow MCP Server exposes Kubeflow operations as Model Context Protocol (MCP) tools. AI agents (Claude, Cursor, Claude Code, or custom agents) can plan, submit, monitor, and manage ML workloads in natural language — without requiring users to write Kubernetes YAML or Kubeflow SDK boilerplate.

Why Kubeflow MCP Server?
  • Agent-Native: Tools are auto-discovered via MCP with guided workflow phases (Plan → Discover → Run → Monitor)
  • Preview-Before-Submit: Every mutating operation previews its action first and requires explicit confirmed=True
  • Security-First: Persona gating (readonly by default), namespace allowlists, input validation, and Bearer/JWT HTTP auth
  • Multi-Platform: Auto-detects OpenShift, EKS, and GKE with platform-specific guidance
  • Token-Efficient: Progressive and semantic tool modes compress tools into 2–3 meta-tools
  • Modular Clients: Load only what you need (trainer, spark, pipelines, optimizer; planned: hub)

Demo

Quick Start

New to Kubeflow MCP? Follow the Quickstart & Troubleshooting Guide for step-by-step cluster verification, RBAC checks, and common fixes.

Prerequisites
  • Python 3.10, 3.11, or 3.12
  • Kubernetes cluster with kubectl and a configured kubeconfig (see RBAC Configuration)
  • Kubeflow component(s) installed for the clients you enable: Kubeflow Trainer, Spark Operator, and/or Kubeflow Pipelines
Install & Run
# Default (Trainer client)
pip install kubeflow-mcp

# Optional client extras
pip install "kubeflow-mcp[pipelines]"   # Kubeflow Pipelines (kfp)
pip install "kubeflow-mcp[spark]"       # Kubeflow Spark

# Start the MCP server (stdio transport by default)
kubeflow-mcp serve
Connect an MCP Client

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "kubeflow": {
      "command": "kubeflow-mcp",
      "args": ["serve"]
    }
  }
}
claude mcp add kubeflow -- kubeflow-mcp serve

Pre-built multi-arch images are published to GHCR on every release. Replace <your-secret-token> with a unique secret before running:

docker run --rm -p 127.0.0.1:8000:8000 \
  -v ~/.kube/config:/kubeconfig:ro \
  -e KUBECONFIG=/kubeconfig \
  -e KUBEFLOW_MCP_AUTH_TOKEN="<your-secret-token>" \
  ghcr.io/kubeflow/mcp-server:latest

Connect your MCP client to http://localhost:8000/mcp:

{
  "mcpServers": {
    "kubeflow": {
      "url": "http://localhost:8000/mcp",
      "headers": { "Authorization": "Bearer <your-secret-token>" }
    }
  }
}

For local clusters (e.g., Kind/Minikube) whose kubeconfig points to 127.0.0.1, use --network host (Linux) or a kubeconfig targeting host.docker.internal so the container can reach the host API server. For in-cluster Kubernetes deployments, omit the kubeconfig mount (the pod uses its ServiceAccount credentials) and set KUBEFLOW_MCP_ALLOWED_HOSTS when exposing behind a Service or Ingress. Unauthenticated container probes are exposed at GET /health (liveness) and GET /ready (readiness).

Example Workflow

Start the server with data-scientist (the default readonly persona blocks job submission):

kubeflow-mcp serve --persona data-scientist
User: "Fine-tune gemma-2b on the alpaca dataset"

Agent → check_compatibility()                      # K8s + Trainer CRD verified
Agent → get_cluster_resources()                    # 4x A100 GPUs available
Agent → estimate_resources("google/gemma-2b")      # Needs ~16GB GPU, 1x A100
Agent → list_runtimes()                            # torchtune-gemma-2b found
Agent → fine_tune(..., confirmed=False)            # Returns preview for approval
Agent → fine_tune(..., confirmed=True)             # TrainJob "train-gemma-abc" created
Agent → get_training_logs("train-gemma-abc")       # Streams training progress

Agent Skills

Agent Skills catalog: a skeleton for independently released skill plugins. Register the catalog, then install a plugin by replacing <plugin-name> with its name:

# Claude Code
claude plugin marketplace add kubeflow/mcp-server
claude plugin install "<plugin-name>@kubeflow-mcp"

# Codex CLI
codex plugin marketplace add kubeflow/mcp-server
codex plugin add "<plugin-name>@kubeflow-mcp"

Available Tools

Trainer (--clients trainer, default — 23 tools)
Phase Tools Description
Planning pre_flight, check_compatibility, get_cluster_resources, estimate_resources Environment checks and GPU/memory estimation
Discovery list_training_jobs, get_training_job, list_runtimes, get_runtime Browse TrainJobs and ClusterTrainingRuntimes
Training fine_tune, run_custom_training, run_container_training Submit LoRA/QLoRA fine-tuning, Python scripts, or container jobs
Monitoring get_training_logs, get_training_events, wait_for_training Track job status, logs, and Kubernetes events
Lifecycle update_training_job, delete_training_job Suspend, resume, or delete MCP-managed jobs
Platform inspect_crd, inspect_controller, create_runtime, patch_runtime, delete_runtime Cluster inspection and runtime administration
Health health_check, get_server_logs Server diagnostics
Pipelines (--clients pipelines — 14 tools)

Requires pip install "kubeflow-mcp[pipelines]" and Kubeflow Pipelines on the cluster.

Phase Tools Description
Discovery list_pipelines, get_pipeline, list_experiments, get_experiment Browse pipelines, versions, and experiments
Authoring create_pipeline, delete_pipeline Compile and register KFP v2 pipelines from Python, or delete them
Monitoring list_pipeline_runs, get_pipeline_run, get_pipeline_logs Follow runs and read task pod logs
Runs create_pipeline_run, stop_pipeline_run, retry_pipeline_run, create_experiment, delete_experiment Launch, stop, or retry runs and manage experiments
Spark (--clients spark — 5 tools)

Requires kubeflow[spark] extra.

Phase Tools Description
Discovery list_spark_sessions, get_spark_session Browse SparkConnect sessions
Sessions create_spark_session, delete_spark_session Provision and delete MCP-managed SparkConnect sessions
Monitoring get_spark_session_logs Read Spark driver logs
Optimizer (--clients optimizer — 17 tools)

Requires Katib v0.19 on the cluster, and the katib.kubeflow.org/metrics-collector-injection=enabled label on the experiment namespace.

Phase Tools Description
Planning katib_pre_flight Check the Experiment CRD, controller readiness, and admission webhooks
Discovery list_hpo_experiments, get_hpo_experiment, get_hpo_experiment_status, get_trial, get_successful_trials, list_suggestions Browse Katib experiments, trials, and suggestions
Optimization create_hpo_experiment, create_hpo_experiment_from_spec Create experiments from flat parameters or a full V1beta1Experiment manifest
Monitoring get_hpo_experiment_trials, get_best_trial, get_suggestion, get_hpo_experiment_trial_logs, get_hpo_experiment_events Follow trials and read the best result, trial logs, and events
Lifecycle wait_for_hpo_experiment, update_hpo_experiment, delete_hpo_experiment Wait for completion, change the trial budget or parallelism, or delete MCP-managed experiments

Katib has no pause: lowering parallel_trial_count makes Katib delete trials, newest first and whatever their state, so update_hpo_experiment is destructive and its preview lists those trials. See optimizer://guides/hpo-patterns.

Personas & Configuration

--persona controls which tools are exposed. Each level includes all tools from the level above it:

Persona Scope
readonly (default) Planning, browsing resources/jobs, reading logs and events
data-scientist Submitting training/pipeline runs, deleting MCP-created jobs/sessions
ml-engineer Container training, job lifecycle controls, pipeline authoring, CRD/controller inspection
platform-admin Full access, including runtime and pipeline/experiment administration

Custom personas can also be defined in ~/.kf-mcp-policy.yaml (see Architecture).

CLI Reference (kubeflow-mcp serve)
Flag Values / Default Description
--clients trainer, spark, pipelines, optimizer (default: trainer) Comma-separated client modules to enable
--persona readonly | data-scientist | ml-engineer | platform-admin Tool access persona
--mode full | progressive | semantic progressive (3 meta-tools) and semantic (2 meta-tools) reduce token usage
--instruction-tier full | compact | minimal Agent instruction verbosity
--transport stdio | http (default: stdio) Transport protocol (sse is deprecated)
--auth-token <token> Bearer token for HTTP authentication
--otel-endpoint <url> Optional OTLP HTTP endpoint for OpenTelemetry tracing
--log-level DEBUG | INFO | WARNING | ERROR Server log verbosity
--log-format console | json Auto-detected if omitted
--no-banner flag Suppress the startup banner
Variable Default Description
MCP_TRANSPORT stdio Transport protocol (http, stdio)
KUBEFLOW_MCP_CLIENTS trainer Comma-separated client modules
KUBEFLOW_MCP_PERSONA readonly Active persona name
KUBEFLOW_MCP_INSTRUCTION_TIER full Instruction verbosity (full, compact, minimal)
KUBEFLOW_MCP_AUTH_TOKEN (none) Bearer token for HTTP auth (dev/staging)
KUBEFLOW_MCP_JWKS_URI (none) JWKS endpoint for JWT verification (production)
KUBEFLOW_MCP_JWT_ISSUER (none) Expected JWT issuer (required with KUBEFLOW_MCP_JWKS_URI)
KUBEFLOW_MCP_JWT_AUDIENCE (none) Expected JWT audience (required with KUBEFLOW_MCP_JWKS_URI)
KUBEFLOW_MCP_ALLOWED_HOSTS (loopback) Allowed Host headers for DNS rebinding protection
KUBEFLOW_MCP_ALLOWED_ORIGINS (loopback) Allowed Origin headers
KUBEFLOW_MCP_DNS_REBINDING_PROTECTION true Set false to disable Host/Origin checks (not recommended)
KUBEFLOW_MCP_PIPELINES_URL (auto) Override Kubeflow Pipelines endpoint URL
KUBEFLOW_MCP_PIPELINES_TOKEN (auto) Override Kubeflow Pipelines auth token
KUBEFLOW_MCP_PIPELINES_NAMESPACE (auto) Override Kubeflow Pipelines namespace
LOG_FORMAT / LOG_LEVEL auto / INFO Logging format and level

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases kubeflow-mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229