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 sourceview_signatures: read function signatures and imports without whole filesgraphrag: explore file and symbol relationships and dependency pathslsp_*: 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
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
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
smart-exploreSearches code intelligently and efficiently. It helps understand code structure, find functions, and explore projects without reading everything.codegraphHelps your agent analyze an indexed codebase through its call graph, dependencies, dead code, hotspots and semantic search.code-searchHelps your agent search a codebase with regular expressions and Git history to find definitions, usages and past changes.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 indexin 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.