Skip to content
AddHunt
MCP servers

Codanna

Local code search and call graphs for AI coding agents

Open source

  • Open source
  • Licence: Apache-2.0

In short

Codanna is an open-source Rust tool that indexes a codebase locally and answers symbol, semantic and relationship queries through a CLI and an MCP server. It is for developers who pair-program with AI coding agents and want fast, verifiable context about their code.

What you get

  • Symbol and semantic code search
  • Call graphs with exact call sites and impact radius
  • MCP server for AI coding agents
  • CLI output that works with Unix pipes
  • Watch mode keeps the index up to date
  • Supports 15 programming languages

The details

Codanna grew out of its authors' need to answer many quick questions about a codebase during research, prototypes and pair-programming sessions, where language servers felt too slow. It builds a local index and serves it to AI agents over MCP, while the same queries can be run by hand from the command line.

What it can find

  • symbols by name, with signatures and docstrings
  • code by meaning, using embedding-based semantic search over documentation, so a question about where the retry logic lives works without exact names
  • callers and callees of a function, down to the exact call sites, and what a change would affect
  • dependencies and relationships between parts of the code
  • project documents through document search

A single MCP call can return the matching symbol, its signature, its callers and callees and the impact radius, which saves the agent follow-up searches and file reads. Codanna only reports call edges it can verify.

Working style

The human stays in control: results can be piped through Unix tools and checked before the AI acts on them, and a watch flag keeps the index current while code changes. Codanna is written in Rust, supports 15 languages and is released under the Apache-2.0 license.

Alternatives to Codanna

All alternatives

Questions

Does Codanna run locally?

Yes. It builds and queries its index on the developer's machine and exposes it to agents through an MCP server and a CLI.

How does Codanna differ from grep for agents?

One query returns the symbol, its signature and documentation, its call graph in both directions and the impact of changing it, so the agent needs fewer follow-up searches.

How many programming languages does it support?

Codanna supports 15 programming languages.

More like this