# muvon/octocode [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/Muvon/octocode  
**GitHub Stars:** 530  
**Views:** 6  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/muvon-octocode

## Description
Semantic code indexer with GraphRAG knowledge graph. Index your codebase, search in natural language, and expose everything via MCP so AI agents understand architecture — not just files.

## Tools
Capabilities this server exposes over MCP:

- **semantic_search** — Yes
- **structural_search** — No
- **view_signatures** — No
- **graphrag** — No

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/Muvon/octocode), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/Muvon/octocode/master/install.sh | sh
```

2. Add to Claude Code:

```sh
claude mcp add --transport stdio octocode -- octocode mcp --path /path/to/your/project
```

3. Add to Codex:

```sh
codex mcp add octocode -- octocode mcp --path /path/to/your/project
```

## Documentation

## 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:

```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.

_Full upstream README: https://allmcps.com/mcp/muvon-octocode/readme_

