codryn is an open-source Rust tool that indexes a codebase into a persistent knowledge graph and exposes it as an MCP server for AI coding agents.
Rust
5
44 commits
updated Jun 5, 2026
Open-source Rust knowledge graph for AI coding agents.
Fast indexing. Deep code understanding. Embedded web UI. Single binary.
codryn is an open-source Rust knowledge graph and MCP server for AI coding agents, built to make large codebases easier to explore, trace, and understand.
If this project is useful, give it a star. It helps more people discover the project and support continued open-source work.
curl -fsSL https://raw.githubusercontent.com/WolfCanCode/Codryn/main/install.sh | sh
Tries pre-built binaries first. Falls back to building from source if none are available for your platform. Requires Rust and Node.js 20+ for source builds.
AI coding agents are much better when they can understand structure, not just grep files.
codryn indexes a repository into a persistent graph of:
That gives agents fast answers for things like:
what_if, ask_graph, plan_refactoring, detect_patterns, semantic_search, generate_openapiSome of the most useful tools (46 total):
| Tool | Description |
|---|---|
index_repository | Build the graph for a repository |
find_symbol | Fast ranked symbol lookup by name |
get_symbol_details | Full context: callers, callees, imports, inheritance |
find_references | Find symbol usage through graph edges |
impact_analysis | Estimate what a change will affect |
what_if | Predict breakages from rename/remove/change |
trace_call_path | Follow calls between functions |
trace_backend_flow | Trace route → controller → service → repository |
get_architecture | Summarize packages, modules, and code shape |
get_project_summary | Onboarding brief in one call |
find_routes | Discover API routes and DTO relationships |
find_dead_code | Find unused symbols |
detect_patterns | Detect design patterns and antipatterns |
plan_refactoring | Step-by-step refactoring plans |
semantic_search | Natural language code search |
generate_openapi | Generate OpenAPI spec from routes |
get_api_surface | Public API with optional diff |
dep_freshness | Check for outdated dependencies |
ask_graph | Plain English questions about code |
suggest_next_reads | Help agents decide what to inspect next |
find_pipelines | Discover CI/CD pipelines |
find_infrastructure | Discover Docker, Kubernetes, Helm, Terraform resources |
Full tool reference: docs/MCP_TOOLS.md
codryn Run as MCP server on stdin/stdout
codryn install Auto-configure coding agents (interactive)
codryn status Show agent installation status
codryn activate [--global] Activate steering for workspace
codryn query <tool> [--args] Run MCP tool as CLI command
codryn validate --project P Validate graph consistency
codryn dedupe --project P Deduplicate graph nodes
codryn complexity --project P Report complex symbols
codryn deps --project P List/check dependencies
codryn backup [path] Back up the graph database
codryn --ui [--port=N] Enable web UI (default port 9749)
crates/
├── codryn-foundation — Config, platform detection, utilities
├── codryn-store — SQLite graph store with pooling & embeddings
├── codryn-discover — 64-language file discovery
├── codryn-pipeline — Multi-pass indexing with checkpoints
├── codryn-treesitter — 30+ AST walkers
├── codryn-graph-buffer — Batch graph operations with confidence
├── codryn-cypher — Cypher → SQL query engine
├── codryn-services — Navigation, flow, analysis, semantic search
├── codryn-mcp — 46 MCP tool handlers
├── codryn-cli — Interactive install, validate, query, etc.
├── codryn-ui — Web dashboard (React + embedded assets)
├── codryn-watcher — File system watcher
├── codryn-bench — Performance benchmarks
└── codryn-bin — App binary
ui/
└── React/Vite dashboard for graph exploration
cargo build --release
./target/release/codryn --ui
Then open http://127.0.0.1:9749.
Supports 64 language mappings, including Rust, TypeScript, JavaScript, Java, Kotlin, Python, Go, Dart, Lua, Haskell, C, C++, C#, PHP, Ruby, Scala, Swift, Elixir, SQL, HTML, CSS, Vue, Svelte, Bash, Dockerfile, YAML, and more. Deep tree-sitter walkers for 30+ languages with error-tolerant AST recovery.
This project is MIT licensed and intended to be easy to use, inspect, extend, and contribute to.
MIT
35 commits
9 commits
Rust
93.2%
TypeScript
5.8%
codryn is an open-source Rust tool that indexes a codebase into a persistent knowledge graph and exposes it as an MCP server for AI coding agents.
Rust
5
44 commits
updated Jun 5, 2026
Open-source Rust knowledge graph for AI coding agents.
Fast indexing. Deep code understanding. Embedded web UI. Single binary.
codryn is an open-source Rust knowledge graph and MCP server for AI coding agents, built to make large codebases easier to explore, trace, and understand.
If this project is useful, give it a star. It helps more people discover the project and support continued open-source work.
curl -fsSL https://raw.githubusercontent.com/WolfCanCode/Codryn/main/install.sh | sh
Tries pre-built binaries first. Falls back to building from source if none are available for your platform. Requires Rust and Node.js 20+ for source builds.
AI coding agents are much better when they can understand structure, not just grep files.
codryn indexes a repository into a persistent graph of:
That gives agents fast answers for things like:
what_if, ask_graph, plan_refactoring, detect_patterns, semantic_search, generate_openapiSome of the most useful tools (46 total):
| Tool | Description |
|---|---|
index_repository | Build the graph for a repository |
find_symbol | Fast ranked symbol lookup by name |
get_symbol_details | Full context: callers, callees, imports, inheritance |
find_references | Find symbol usage through graph edges |
impact_analysis | Estimate what a change will affect |
what_if | Predict breakages from rename/remove/change |
trace_call_path | Follow calls between functions |
trace_backend_flow | Trace route → controller → service → repository |
get_architecture | Summarize packages, modules, and code shape |
get_project_summary | Onboarding brief in one call |
find_routes | Discover API routes and DTO relationships |
find_dead_code | Find unused symbols |
detect_patterns | Detect design patterns and antipatterns |
plan_refactoring | Step-by-step refactoring plans |
semantic_search | Natural language code search |
generate_openapi | Generate OpenAPI spec from routes |
get_api_surface | Public API with optional diff |
dep_freshness | Check for outdated dependencies |
ask_graph | Plain English questions about code |
suggest_next_reads | Help agents decide what to inspect next |
find_pipelines | Discover CI/CD pipelines |
find_infrastructure | Discover Docker, Kubernetes, Helm, Terraform resources |
Full tool reference: docs/MCP_TOOLS.md
codryn Run as MCP server on stdin/stdout
codryn install Auto-configure coding agents (interactive)
codryn status Show agent installation status
codryn activate [--global] Activate steering for workspace
codryn query <tool> [--args] Run MCP tool as CLI command
codryn validate --project P Validate graph consistency
codryn dedupe --project P Deduplicate graph nodes
codryn complexity --project P Report complex symbols
codryn deps --project P List/check dependencies
codryn backup [path] Back up the graph database
codryn --ui [--port=N] Enable web UI (default port 9749)
crates/
├── codryn-foundation — Config, platform detection, utilities
├── codryn-store — SQLite graph store with pooling & embeddings
├── codryn-discover — 64-language file discovery
├── codryn-pipeline — Multi-pass indexing with checkpoints
├── codryn-treesitter — 30+ AST walkers
├── codryn-graph-buffer — Batch graph operations with confidence
├── codryn-cypher — Cypher → SQL query engine
├── codryn-services — Navigation, flow, analysis, semantic search
├── codryn-mcp — 46 MCP tool handlers
├── codryn-cli — Interactive install, validate, query, etc.
├── codryn-ui — Web dashboard (React + embedded assets)
├── codryn-watcher — File system watcher
├── codryn-bench — Performance benchmarks
└── codryn-bin — App binary
ui/
└── React/Vite dashboard for graph exploration
cargo build --release
./target/release/codryn --ui
Then open http://127.0.0.1:9749.
Supports 64 language mappings, including Rust, TypeScript, JavaScript, Java, Kotlin, Python, Go, Dart, Lua, Haskell, C, C++, C#, PHP, Ruby, Scala, Swift, Elixir, SQL, HTML, CSS, Vue, Svelte, Bash, Dockerfile, YAML, and more. Deep tree-sitter walkers for 30+ languages with error-tolerant AST recovery.
This project is MIT licensed and intended to be easy to use, inspect, extend, and contribute to.
MIT
35 commits
9 commits
Rust
93.2%
TypeScript
5.8%