Octocode logo

Octocode

by muvon

Indexes code locally for semantic search, dependency exploration, structural navigation, and MCP access from AI coding clients.

Install Octocode

Run the project’s own setup commands, in order.

Setup steps from the project

muvon/octocode installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/Muvon/octocode/master/install.sh | sh
    
  2. 2. Add to Claude Code
    claude mcp add --transport stdio octocode -- octocode mcp --path /path/to/your/project
    
  3. 3. Add to Codex
    codex mcp add octocode -- octocode mcp --path /path/to/your/project
    

Overview

muvon/octocode provides a Rust CLI and MCP server for searching and navigating local codebases. It combines indexed hybrid search with a live symbol and dependency graph, while optional language-server support adds definitions, references, hover information, symbols, and completion. Use it when an AI coding client needs architectural context, code relationships, or intent-based search rather than file-only retrieval. The server runs over stdio and can be configured for a project directory.

Use cases

  • Search a codebase by natural-language intent
  • Trace imports, calls, inheritance, and implementations
  • Locate definitions and usages in current source
  • Inspect signatures without loading complete files
  • Connect code navigation to an MCP-compatible assistant

Key features

  • Hybrid vector and keyword search with reranking
  • Live file, symbol, and dependency graph
  • Structural search over current source
  • Signature and import inspection
  • Optional language-server navigation and completion
  • Local default embedding and reranking models

Tools4

What Octocode lets your agent do. Expand a tool for its parameters.

Self-reported~16 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

29/33 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars530Stargazers on the source repository.
Last commit2d agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity6 viewsConfig copies, upvotes, and views on AllMCPs.

How Octocode works

What muvon/octocode does

muvon/octocode indexes source code and exposes code exploration features through both a command-line interface and the Model Context Protocol. Its semantic search combines vector embeddings with keyword search and configurable reranking, allowing queries based on intent such as authentication middleware or deployment configuration. Searches can target source code, documentation, or indexed history, with language filters available for code results.

The server also analyzes the current source directly. Structural search can locate definitions, usages, and AST patterns without an index. Signature views return declarations, function signatures, and imports without requiring an entire file to be loaded. A live graph represents relationships among files and symbols, including imports, calls, inheritance, and implementations.

How it works

Indexing uses local FastEmbed models by default for embeddings and reranking. Model files are downloaded on first use, and no API key is needed for that default configuration. Semantic search reads the resulting index; changes require another indexing run, a separate watch process, or optional in-process indexing configuration.

Current-source navigation uses Tree-sitter parsers to build a live file and symbol graph without embeddings or an LLM. This graph remains available even when indexed GraphRAG is disabled. An optional persisted GraphRAG layer can add semantic file discovery, LLM-generated descriptions, and architectural relationships.

Language-server tools are enabled separately with a language-server executable and the --with-lsp option. These tools cover definitions, references, hover information, symbols, and completion. Supported source formats include Rust, Python, TypeScript, JavaScript, Go, PHP, C and C++, Ruby, Elixir, Java, and Swift.

Setup and configuration

Install on Linux or macOS with the project installer, through Homebrew on macOS, from a GitHub release binary, or with Cargo. Building from source requires Rust 1.95 or later and protoc. After installation, run octocode index from a Git repository, then use octocode search or connect an MCP client with a command such as:

config.json
{
  "mcpServers": {
    "octocode": {
      "command": "octocode",
      "args": ["mcp", "--path", "/path/to/your/project"]
    }
  }
}

The project path should be absolute in MCP client configuration. Directories without Git can be indexed with octocode index --no-git. A language server can be added with octocode mcp --path /path/to/your/project --with-lsp rust-analyzer.

Tools and capabilities

  • semantic_search finds code, documentation, and indexed history by meaning; it requires an index.
  • structural_search searches current source for definitions, usages, and AST patterns.
  • view_signatures returns signatures, declarations, and imports.
  • graphrag explores live file and symbol relationships and dependency paths.
  • lsp_* tools provide language-server navigation and completion when a compatible language server is configured.

Octocode can run beside OctoFS when an agent also needs file reading and atomic editing. Both servers should use the same project directory; OctoFS is optional and Octocode's search and navigation features work without it.

Limitations and notes

Semantic search depends on a previously built index, which is not automatically refreshed by the MCP server by default. Re-run indexing after source changes or run octocode watch separately. Structural search, signature inspection, and the live relationship graph operate on current source and do not require that index.

The optional GraphRAG enrichment layer is separate from the live graph and is enabled through configuration before indexing. Language-server features require installing and selecting a language server for the relevant language. MCP integration documentation covers additional transport options and serving multiple repositories.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Octocode

muvon/octocode is an MCP server that connects AI assistants to local codebases and their semantic indexes. Its main tools provide semantic search, structural search, signature inspection, dependency and symbol graph exploration, and optional language-server features for definitions, references, hover information, symbols, and completion.

Install it with the project installer, Homebrew on macOS, a GitHub release binary, or Cargo. Building from source requires Rust 1.95 or later and protoc. After installation, confirm that the `octocode` command is available, then configure your MCP client to run `octocode mcp`.

Yes, muvon/octocode works with Cursor through its MCP configuration. Add an entry whose command is `octocode` and whose arguments include `mcp`, `--path`, and the absolute path to the project, then restart Cursor.

Yes, both Claude Code and Codex CLI are named integration targets. Claude Code uses `claude mcp add --transport stdio octocode -- octocode mcp --path /path/to/your/project`, while Codex uses `codex mcp add octocode -- octocode mcp --path /path/to/your/project`.

Yes, semantic search requires an index created with `octocode index`. The default setup uses local embedding and reranking models, which download on first use without an API key. Structural search, signatures, the live graph, and language-server tools do not require the semantic index.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewOctocode AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/muvon-octocode?style=directory)](https://allmcps.com/mcp/muvon-octocode)
HTML Embed
<a href="https://allmcps.com/mcp/muvon-octocode"><img src="https://allmcps.com/api/badge/muvon-octocode?style=directory" alt="Octocode on AllMCPs" /></a>