← Back to Leaderboard
Cbartolli

bartolli/codanna

Local Rust MCP server and CLI for semantic code search and call-graph analysis

Engineering Health (Methodology)
A+ · 90/100
Maintenance Activity
● Updated 11d ago
Latest Release
v0.18.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption15/25
Release Cadence20/20
License Clarity20/20
MCPCLILocal AISelf-Hosted
Total Stars
★ 765
24h Growth
+0
7d Growth
+3
Forks
69

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

bartolli/codanna Star History (2025-08-10 - 2026-12-04) ALL-TIME STAR HISTORY (2025-08 – 2026-12) +764 in 481d · avg +2/day 808 404 0 2025-08-10: ★ 12025-09-13: ★ 2602025-10-18: ★ 3402025-11-22: ★ 3802025-12-27: ★ 4602026-01-31: ★ 5432026-03-07: ★ 5872026-04-11: ★ 6262026-05-16: ★ 6532026-06-20: ★ 6782026-07-25: ★ 7002026-08-29: ★ 7222026-10-03: ★ 7402026-11-04: ★ 7572026-12-04: ★ 765 ★ 765 2025-08 2026-04 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Codanna is a Rust code-intelligence service and CLI built around a persistent on-disk project index under .codanna/. Tree-sitter provides source parsing, Tantivy backs the search index, and fastembed runs local embeddings through ONNX Runtime. Separating indexing from querying lets an agent retrieve symbols and their relationships without reparsing the repository for every question.

The same tool surface is exposed through persistent codanna serve sessions over stdio, HTTP, or HTTPS and through one-shot codanna mcp invocations. serve --watch tracks file changes during editing. The Claude Code plugin adds scoped symbol and impact views through x-ray and broader codebase visualizations through graph; neither skill is required for a standard MCP client.

Key Capabilities & Differentiators

Codanna indexes symbols and relationships across 15 languages, including Rust, Python, JavaScript, TypeScript, Java, Kotlin, Go, C, and C++. Its most useful agent-facing operation, semantic_search_with_context, combines semantic matches with symbol identities, signatures, docstrings, callers, callees, and recursive change-impact results. File-and-line coordinates let the agent open the code directly, while symbol IDs help it distinguish same-named definitions. --json makes the result suitable for scripts or other tools.

It also indexes Markdown and plain text in named collections, so agents can retrieve design notes or project guides alongside implementation details. Local embeddings are the default. An OpenAI-compatible remote embedding endpoint can be configured explicitly through remote_url in [semantic_search] or CODANNA_EMBED_* environment variables; the API key is supplied only through the environment.

Trade-offs & Limitations

Compared with grep, Codanna requires an initial indexing pass and ongoing freshness management. In return it can rank code by intent and provide relationships that text search alone cannot resolve. Treat its impact results as leads for review, not proof that every runtime dependency has been captured. Use an LSP, compiler, or tests where correctness depends on language-specific resolution or build behavior.

The local default avoids sending source, symbols, or queries to a remote embedding API, but shifts model storage and indexing work to the host. Remote embeddings change the data boundary, as can the agent client consuming MCP results. Apache-2.0 supports commercial self-hosting; redistribution still carries applicable license and notice obligations. For agents running on the same machine, stdio avoids opening a network listener. Review access controls before choosing a network transport for a private index.

Hardware & Deployment Guide

Install via Homebrew, Nix, or the project installer on supported macOS, Linux, or WSL setups, then run codanna init and index the intended source paths. Source builds for v0.18.0 require Rust 1.95+ and pkg-config. The Linux cargo install path requires glibc 2.38+ and GCC 13+ libstdc++; published Linux binaries are built on Ubuntu 24.04 with glibc 2.39. Current macOS releases target Apple Silicon; v0.17.0 was the last Intel Mac release. Windows support is experimental.

First use downloads an approximately 150 MB embedding model, after which the default embedding path runs locally. Plan for separate disk space for the index and test memory and CPU usage under the intended indexing and query load. v0.17.0 triggered a one-time rebuild when it introduced emission semantics v4. v0.17.1 moved to ONNX Runtime 1.28 and removed OpenSSL from the dependency graph; v0.18.0 moved to ONNX Runtime 1.31 and updated Tree-sitter, Tantivy, and reqwest without requiring another index rebuild.

Context query: semantic_search_with_context returns signatures, docstrings, callers, callees, and recursive impact in one result.
Navigable results: File-and-line coordinates point to source, symbol IDs disambiguate names, and --json supports programmatic consumption.
Index lifecycle: The project index lives under .codanna/; serve --watch updates it as files change.
Transport choice: Persistent MCP over stdio, HTTP, or HTTPS, plus daemon-free access through codanna mcp.
Embedding boundaries: fastembed and ONNX Runtime run locally by default; OpenAI-compatible remote embeddings are opt-in.
Upgrade compatibility: v0.18.0 retains emission semantics v4 and the Tantivy index format, so v0.17.x indexes do not need rebuilding for this upgrade.
Best For

Teams using coding agents on private or multilingual repositories that need semantic discovery, cross-file call tracing, and a first pass at refactor impact.

Skip If

You only need exact text search, require compiler-grade guarantees from the index, or must run a current release on Intel macOS or an incompatible Linux baseline.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

MCPCLILocal AISelf-Hosted
curl -fsSL --proto '=https' --tlsv1.2 https://install.codanna.sh | sh

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
codanna ★765+3RustApache-2.0Local Rust MCP server and CLI for semantic code search and call-graph analysis
chrome-devtools-mcp60.4k+760TypeScriptApache-2.0Chrome DevTools via MCP and CLI for live browser debugging and performance analy
context765.8k+333TypeScriptMITA hosted documentation index with MCP and CLI access for coding agents
rea488.8k+7.6kTypeScriptMITA local CLI and MCP server for evidence-backed app and binary analysis

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/bartolli/codanna.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

bartolli/codanna Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about codanna

How do I connect Codanna to an agent and keep the index current?

Run codanna init and index the intended source paths, for example with codanna index src. Point the MCP client at codanna --config .codanna/settings.toml serve --watch for a project-scoped stdio session that tracks edits. For scripts or CI, use the same tool surface via codanna mcp without a daemon; add --json when another program needs to parse the result.

What hardware and storage should I budget for?

Budget roughly 150 MB for the embedding model download, plus disk space for the project index. The local embedding stack is fastembed and ONNX Runtime. There is no fixed RAM or VRAM figure to size against; measure initial indexing time and peak memory on a representative checkout, then test with the embedding thread count and concurrency you intend to use.

Can we use it commercially on private repositories?

Yes. Apache-2.0 permits commercial use and self-hosting. If you redistribute it, account for the license and applicable NOTICE requirements. Codanna does not send source, symbols, or queries to a remote API by default. For restricted environments, review the initial model download, opt-in remote embedding settings, and the agent client's own data handling separately.

Does it replace grep or a language server?

Keep grep for exact text matches and one-off lookups without an index. Use Codanna when an agent needs to find code by intent and follow indexed callers, callees, and related symbols without reading each file in turn. Keep a language server or compiler in the loop when a decision depends on language-specific resolution or build correctness.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining bartolli/codanna? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature bartolli/codanna on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare