Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

Octocode

Lets your AI agent search a codebase by meaning, find definitions, and trace dependencies between files and symbols.

522 stars on GitHubby MuvonLicense Apache-2.0Updated 20 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add octocode -- npx -y @muvon/octocode mcp

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Find where failed requests are retried
Show what depends on the retry function

What it is

Octocode is a Rust program and MCP server for exploring code. It combines meaning-based search, structural search and a live graph of symbols and dependencies. Embedding models run locally by default, so no API key is needed.

What it can do

  • semantic_search: find code, docs and indexed history by meaning (needs an index)
  • structural_search: find definitions, usages and patterns in current source
  • view_signatures: read function signatures and imports without whole files
  • graphrag: explore file and symbol relationships and dependency paths
  • lsp_*: definitions, references, hover and symbols (needs a language server)

When to use

  • β€ΊWhen you want your agent to find where something is done in a large codebase
  • β€ΊWhen you need to know what depends on a function before changing it
  • β€ΊWhen you want to read signatures without loading entire files

What you need

Install the octocode program (installer script, Homebrew or Cargo) and run octocode index in your Git repository. No API key is needed for the default local models.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes. The readme says it is Apache License 2.0.

Does it need an API key?

Not by default. It uses local FastEmbed models, which download on first use. Remote providers are optional.

Does my code leave my computer?

The readme says indexes are stored locally. The AI model your client uses may receive source content returned by tools.

Do I need to index first?

Only for semantic search. Structural search, signatures and the live graph read the current source directly.

Which languages are supported?

Rust, Python, TypeScript and JavaScript, Go, PHP, C and C++, Ruby, Elixir, Java, Swift, Svelte, Lua, CSS, JSON, Bash and Markdown.

Can it edit files?

No. The readme points to the separate OctoFS server for file reading and editing.

If it does not work

  • β€ΊRun octocode index in the project first if semantic search finds nothing, and again after changes
  • β€ΊUse an absolute project path in octocode mcp --path, and restart the client after saving the config
  • β€ΊFor a folder without Git, use octocode index --no-git

5 new skills a week. 1 minute to read.