Ariadne is a Kubernetes graph MCP for coding agents. It ingests the cluster state into a property graph and exposes three deterministic tools:
graph_queryfor read-only Cyphergraph_schemafor schema discoverygraph_healthfor freshness and readiness
The Rust MCP server is the primary product surface. The Rust CLI and Python agent in this repo are local harnesses for debugging, evaluation, and experimentation.
Short version:
kubectllists objects. Ariadne answers relationship questions.
- MCP-first: Ariadne is designed to plug into coding agents, not replace them.
- Topology over inventory: Ariadne is strongest on multi-hop Kubernetes questions such as
Host -> Ingress -> IngressServiceBackend -> Service -> EndpointSlice -> Endpoint -> EndpointAddress -> Pod. - Deterministic execution: the model generates Cypher; the graph executes modeled relationships.
- Compact defaults:
graph_schema()andgraph_health()default to compact, model-friendly responses to reduce token overhead. - Shared validation:
ariadne-coreowns Cypher validation and shared query-issue classification used by both the MCP server and local tooling.
ariadne1200_pass1.mp4
Most "LLM + Kubernetes" workflows make the model reason over raw JSON or YAML:
Kubernetes API -> giant object dump -> LLM context -> ad hoc joins in code
That works for direct inventory, but it breaks down on relationship-heavy questions:
- which pods back a host?
- which services have no endpoint slices?
- which pods claim PVCs whose PV has no storage class?
- which deployment owns these pods through replica sets?
Those are graph questions. Ariadne gives the agent explicit edges instead of forcing it to reconstruct joins with Python, shell, or jq.
Ariadne is strongest when the answer depends on multi-hop traversals across resource kinds:
Host -> Ingress -> IngressServiceBackend -> Service -> EndpointSlice -> Endpoint -> EndpointAddress -> PodService -> EndpointSlice -> Endpoint -> EndpointAddress -> PodDeployment -> ReplicaSet -> PodPod -> PersistentVolumeClaim -> PersistentVolume -> StorageClass- negative graph queries such as "resources with no backing edges"
These are literal graph paths. Ariadne derives helper nodes such as Host, IngressServiceBackend,
Endpoint, EndpointAddress, and Container from raw Kubernetes objects during graph construction.
For these questions, Ariadne helps with:
- correctness: joins are encoded as graph edges, not improvised by the agent
- lower agent-side complexity: one declarative query replaces bespoke glue code
- scaling with hop depth: adding another relationship hop extends the traversal instead of rewriting the whole approach
Ariadne is not meant to replace kubectl for every cluster question. Plain read-only kubectl is often enough for:
- listing pods, services, ingresses, or PVCs
- top namespaces by pod count
- straightforward spec/status checks
- direct inventory dumps with little or no joining
The goal is not to out-kubectl kubectl. The goal is to give agents a safer query substrate for relationship-heavy Kubernetes questions.
User question
↓
Coding agent
↓
Query issue loop
(static validation + repairable execution feedback)
↓
GraphDB (Memgraph)
↓
Deterministic execution over the current graph state
Key idea:
- the model does not need raw cluster state in context
- it generates a query against a modeled graph
- Ariadne validates the query and returns structured results or structured repair feedback
docker compose up -dMemgraph listens on localhost:7687 and Memgraph Lab on localhost:3000.
CLUSTER=<cluster> \
KUBE_CONTEXT=<context> \
cargo run --release -p ariadne-mcpBy default this starts an HTTP MCP server on:
http://127.0.0.1:8080/mcp
The main tools are:
graph_query: execute read-only Cyphergraph_schema: compact schema by default; requestformat = "structured"for full machine-readable detailsgraph_health: compact freshness/status by default; requestdetail = "full"ordetail = "debug"for full diagnostics
Point your coding agent at the MCP endpoint above. If you want reusable agent guidance, use AGENTS.template.md as a template in the consuming workspace, not as an active instruction file in this repo.
The repo also includes local harnesses:
ariadne-cli: local GUI/debug clientpython/agent: evaluation and experimentation layer for NL -> Cypher workflows
Example Python agent setup:
cd python/agent
uv venv
uv syncMCP_URL=http://localhost:8080/mcp \
LLM_MODEL=openai/gpt-5.2 \
k8s-graph-agent --use-adk "What are the pods backing DNS name litmus.qa.agoda.is?"- Architecture: docs/architecture.md
- MCP tool contract: docs/specs/mcp_tools_v1.md
- Development & build: docs/development.md
- Snapshots: docs/snapshots.md
- Python agent + eval harness: python/agent/README.md
- CLI: ariadne-cli/README.md
ariadne-core/- kube clients, snapshot resolver, shared graph model/backends, validation, and query-issue classificationariadne-mcp/- MCP + HTTP server that wiresariadne-coreinto the primary product surfaceariadne-cli/- local GUI/debug harness with optional Memgraph or in-memory executionariadne-tools/- schema generation tooling used bygraph_schemaariadne-cypher/- Cypher parser, AST, and semantic validationpython/agent/- MCP client, agent experiments, eval harness, and structured-schema consumers
See LICENSE.