Skip to content

ray-mcp

An MCP server for Ray on Kubernetes. Point Claude — or any MCP client — at your cluster and ask about your Ray workloads in plain language.

ray-mcp is built specifically for Ray, with the LLM as the consumer: it returns distilled status (a one-line health read, not a wall of raw .status YAML), keeps output token-bounded, and is read-only by default with a guarded, opt-in write path.

Start here

The tools at a glance

ray-mcp exposes 19 tools across three permission tiers:

  • Read (always on) — ray_capabilities, and the read tools for RayClusters, RayJobs (the cross-plane "wedge" — CRD status fused with the live Ray dashboard), and RayServices.
  • Write (--allow-mutations) — create / update / scale clusters, submit / delete jobs, deploy / update services — all through a Server-Side Apply pipeline with dry-run and before/after diffs.
  • Destructive (--allow-destructive) — delete a cluster or service, behind a two-step confirm-fingerprint flow and the ray-mcp/protected annotation guard.

See the Tool reference for the full, always-in-sync list.

Transports

  • stdio (default) — your agent launches ray-mcp as a subprocess. See Install.
  • HTTP — a streamable HTTP listener with bearer-token or Kubernetes TokenReview auth. See HTTP transport & auth.

Learn more