DEV.co
RAG Frameworks · bartolli

codanna

Codanna is a local-first code intelligence server written in Rust that provides semantic search, call-graph analysis, and relationship tracking for codebases. It integrates with AI agents via the MCP protocol to help coding assistants understand code structure without relying on external APIs.

Source: GitHub — github.com/bartolli/codanna
706
GitHub stars
63
Forks
Rust
Primary language
Apache-2.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositorybartolli/codanna
Ownerbartolli
Primary languageRust
LicenseApache-2.0 — OSI-approved
Stars706
Forks63
Open issues10
Latest releasev0.9.23 (2026-07-04)
Last updated2026-07-04
Sourcehttps://github.com/bartolli/codanna

What codanna is

A Rust-based MCP server that indexes code symbols, parses multiple languages (14+ supported), performs semantic search via embeddings, and exposes call graphs and dependency analysis through stdio/HTTP transports. Achieves sub-10ms lookups and parses 75,000+ symbols per second.

Quickstart

Get the codanna source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/bartolli/codanna.gitcd codanna# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

AI-Assisted Code Navigation in Large Codebases

Accelerate debugging and refactoring by giving Claude, Gemini, or Codex precise call graphs, semantic search, and dependency information instead of relying on grep or LSP alone. Particularly effective for understanding intent-based queries like 'where do we handle authentication?'

RAG Workflows with Code + Documentation

Index both source code and markdown documentation to enable AI agents to answer questions by combining code structure knowledge with project docs. Useful for onboarding, compliance checks, and architecture review automation.

Rapid R&D and Pair Programming

Deploy locally as a development server for faster code lookups than LSP-based solutions. No cloud dependency, no latency waiting for external services. Suitable for tight feedback loops during active development or exploratory programming.

Implementation considerations

  • Requires initial indexing step (codanna init, codanna index) before use; index size and refresh strategy must be planned based on codebase churn.
  • Embedding model (~150MB) downloads on first execution; ensure network access and storage available during initialization.
  • MCP integration setup varies by client (Claude, Cursor, Windsurf); follow integration guides for each platform to avoid configuration errors.
  • Language detection and symbol parsing depend on file extensions and AST analysis; test on representative code samples to confirm accuracy.
  • Search quality depends on semantic embedding quality; custom profiles may be needed for domain-specific code patterns or terminology.

When to avoid it — and what to weigh

  • Windows Production Deployments — Windows support is marked as experimental. If you rely on Windows servers or CI/CD, test thoroughly or consider alternatives.
  • Minimal Infrastructure or Embedded Scenarios — Requires ~150MB for the embedding model on first run. Not suitable for resource-constrained environments or embedded systems.
  • Need for Vendor Support or SLAs — This is a community open-source project. No commercial support, SLA, or liability guarantees. Enterprise projects requiring support agreements should evaluate commercial alternatives.
  • Polyglot Codebases with Exotic Languages — 14+ languages are supported, but esoteric or proprietary languages may not be indexed. Verify your primary languages are on the supported list.

License & commercial use

Apache License 2.0 (SPDX: Apache-2.0). Permissive OSI-approved license. Allows commercial use, modification, and distribution with attribution and notice file retention required. See LICENSE and NOTICE files in repo.

Apache 2.0 permits commercial use, closed-source modification, and distribution. Attribution and NOTICE file inclusion are mandatory. No patent indemnification or explicit warranty. For commercial deployments, review NOTICE file requirements and consult legal if integrating with proprietary systems. No commercial support is evident from the repo.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityLow
DEV.co fitGood
Assessment confidenceHigh
Security considerations

Local-first architecture reduces attack surface vs. cloud services. Runs as local process; standard OS process isolation applies. No assertion made about input validation, dependency vulnerability scanning, or cryptographic hardening. Embedding model and SSL/TLS usage (libssl-dev dependency) noted but not detailed. For sensitive code indexing, review data residency and access controls on the local server.

Alternatives to consider

Tree-sitter + LSP (e.g., rust-analyzer, pylsp)

Standard language server protocol offers symbol search and diagnostics but typically slower semantic understanding and less natural-language query capability. Better for IDE integration; less suitable for AI agent training loops.

Anthropic's Codebase Context (Claude API native)

Cloud-hosted, does not require local indexing, but introduces latency, API costs, and data residency concerns. Tighter integration with Claude; no local control.

Sourcegraph (on-premise or SaaS)

Mature code intelligence platform with advanced search, refactoring, and monitoring. Requires more infrastructure and operational overhead than Codanna but offers greater scalability and commercial support.

Software development agency

Build on codanna with DEV.co software developers

Evaluate Codanna for your codebase. Test semantic search, relationship tracking, and MCP integration on a sample project. Review Apache 2.0 licensing and Windows support status for your environment.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

codanna FAQ

Does Codanna send code to the cloud?
No. Codanna is local-first; all indexing and search runs on your machine. No external API calls unless configured explicitly for external embeddings (not mentioned in README).
Which languages are supported?
14+ languages: Rust, Python, JavaScript, TypeScript, Java, Kotlin, Go, PHP, C, C++, C#, Clojure, Lua, Swift, GDScript. Verify your primary languages are included.
Can I use Codanna with my IDE?
Codanna is primarily an MCP server for AI agents (Claude, Gemini, Codex, Cursor, Windsurf). Direct IDE plugins are not mentioned; integration is via MCP protocol.
What happens if the index is outdated?
You must manually re-run indexing commands when code changes. Automatic watch/rebuild is not documented; plan index refresh as part of your workflow or CI/CD.

Software development & web development with DEV.co

Need help beyond evaluating codanna? DEV.co is a software development agency offering software development services and web development for teams of every size. Our software developers and web developers build custom software, web applications, APIs, and rag frameworks integrations — and maintain them long-term.

Ready to give your AI agents smarter code understanding?

Evaluate Codanna for your codebase. Test semantic search, relationship tracking, and MCP integration on a sample project. Review Apache 2.0 licensing and Windows support status for your environment.