Ariadne is a cross-service API dependency graph tool for microservice architectures, designed to help developers find their way out of the microservice maze. It runs as a local MCP (Model Context Protocol) stdio server for AI coding assistants (such as Claude Code, Cursor, Windsurf) to call, and also provides a CLI twin tool.
Purpose: Ariadne focuses on indexing the contract layer—GraphQL mutations, REST endpoints, Kafka topics, frontend queries—and does not index anything else. This allows query results to fit within AI context windows. For example, when asking Claude "where does createOrder sit across the whole stack?", query_chains returns a bounded response that is easy for the AI to understand.
Main capabilities:
- Deterministic cross-service API chain discovery, covering REST, GraphQL, Kafka, TypeScript, and FastAPI.
- Local SQLite + TF-IDF implementation with zero machine learning dependencies.
- Supports GraphQL, Spring HTTP/Kafka/RestClient, Python FastAPI, TypeScript Apollo/fetch/axios, Cube.js.
- Provides a reproducible public stack benchmark (48 reviewed queries, covering Spring REST, GraphQL/TypeScript, Kafka, and FastAPI), measuring retrieval, serialized tokens, and timing results, and comparing against rg and grep.
- Supports custom scanners (Go, Rust, etc.), see docs/CUSTOM_SCANNERS.md for details.
- Provides evaluation ranking functionality, allowing maintenance of a JSONL judgment list to evaluate top-k hit rate and MRR.
Usage:
- 30-second zero-config trial: clone spring-petclinic-microservices to ~/.cache/ariadne-mcp/demo, scan and print the owner's top-level clusters, demonstrating a real cross-service call chain. No configuration file or workspace setup required.
- Install in your own workspace: run the install command and then restart Claude Code. install is idempotent, and can be re-run after pulling new code,or have the assistant call rescan when there is a stale_warning.
- Scanners are inferred from each repository's top-level files (pom.xml / build.gradle / package.json / SDL); see docs/CONFIG.md for detection tables and coverage syntax.
- Reproducible public samples: each sample pins an upstream commit, scans real service source code, runs a query, and verifies manually reviewed node IDs.
- Evaluation ranking: keep a JSONL judgment list, run commands against the built database, evaluate top-k hit rate and MRR, and optionally add --feedback-db .ariadne/feedback.db to include local feedback reranking.
Applicable scenarios:
- Cross-service API call chain tracing under microservice architectures.
- When AI coding assistants need to understand operations related to business terms or endpoints in the codebase.
- When a deterministic, localized code retrieval tool with no ML dependencies is needed.
Limitations:
- The current public stack benchmark is primarily based on operation names, measuring deterministic contract lookup compatibility, and is not yet a natural language relevance benchmark.
- Only the contract layer is indexed, not other code content.
- The current server uses MCP Python SDK v1 (mcp<2).
- Commercial acceptance and ablation experiments use synthetic contracts; private workspace source code and feedback remain local.
- Ariadne itself does not automatically send usage data; the feedback form only opens when the user chooses to submit.