Octocode

v1.0.0โ€ขDeveloper Toolsโ€ขstable

๐Ÿฆ€ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - Semantic code indexer with GraphRAG knowledge graph. Index your codebase, search in natural language, and expose everything v

aiai-toolsclicli-appcode-search
Share:
380
Stars
0
Downloads
0
Weekly
0/5

What is Octocode?

Octocode is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐Ÿฆ€ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - semantic code indexer with graphrag knowledge graph. index your codebase, search in natural language, and expose everything v

๐Ÿฆ€ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - Semantic code indexer with GraphRAG knowledge graph. Index your codebase, search in natural language, and expose everything v

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • githubSearchCode
  • githubGetFileContent
  • githubViewRepoStructure
  • githubSearchRepositories
  • githubSearchPullRequests

Use Cases

Semantic code indexing
GraphRAG knowledge graph
Natural language code search
Muvon

Maintainer

LicenseApache 2.0
Languagerust
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y octocode-mcp

Manual Installation

npx -y octocode-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Octocode

Octocode is a Rust-native semantic code indexer that builds a GraphRAG knowledge graph over your local codebase and exposes it to AI assistants via an MCP server. It uses vector embeddings (Voyage AI, OpenAI, Jina, or Google) to enable natural-language code search, structural AST pattern matching, and dependency graph traversal. Developers use it to let AI assistants understand and navigate large codebases without uploading code to a remote service.

Prerequisites

  • An embedding provider API key โ€” Voyage AI is recommended (200M free tokens/month); alternatively OpenAI, Jina, or Google
  • Rust 1.82+ if building from source, or macOS with Homebrew for the tap installation
  • A local codebase to index
  • An MCP-compatible client such as Claude Desktop, Cursor, or Windsurf
1

Install Octocode

Use the universal installer script, Homebrew on macOS, or build from source with Cargo.

# Universal installer (macOS/Linux)
curl -fsSL https://raw.githubusercontent.com/Muvon/octocode/master/install.sh | sh

# macOS Homebrew
brew install muvon/tap/octocode

# From source
cargo install --git https://github.com/Muvon/octocode
2

Set your embedding API key

Export your Voyage AI key (or an alternative provider key). Octocode uses this to generate vector embeddings for semantic search.

# Voyage AI (recommended)
export VOYAGE_API_KEY="your-voyage-api-key"

# Or use OpenAI
export OPENAI_API_KEY="sk-..."

# Or Jina
export JINA_API_KEY="jina_..."
3

Index your codebase

Navigate to your project directory and run the index command. Octocode will walk the source tree, generate embeddings, and build the GraphRAG knowledge graph locally.

cd /path/to/your/project
octocode index
4

Test semantic search from the CLI

Verify the index is working by running a natural-language search query before connecting an MCP client.

octocode search "authentication middleware"
octocode search "database connection pooling"
5

Add Octocode MCP to your client configuration

Configure your MCP client to launch the octocode MCP server, pointing --path at the indexed project directory.

6

Restart your MCP client and query the codebase

Restart Claude Desktop or reload Cursor/Windsurf. You can now ask your AI assistant to search and explain code using natural language.

Octocode Examples

Client configuration

Add this to your claude_desktop_config.json or .cursor/mcp.json. Update the --path value to your project directory.

{
  "mcpServers": {
    "octocode": {
      "command": "octocode",
      "args": ["mcp", "--path", "/Users/yourname/projects/myapp"],
      "env": {
        "VOYAGE_API_KEY": "your-voyage-api-key"
      }
    }
  }
}

Prompts to try

Sample prompts to use with Octocode connected to your MCP client.

- "Search the codebase for how user authentication is handled"
- "Show the function signatures in the src/api/routes.rs file"
- "What files depend on the database module?"
- "Find all places where rate limiting is implemented"
- "Show me the GraphRAG relationships for the payment service"

Troubleshooting Octocode

Index command fails with an embedding API error

Verify your VOYAGE_API_KEY (or alternative provider key) is exported in the shell where you run octocode. Check that you have network access to the embedding API endpoint.

MCP server starts but returns no search results

Make sure you ran `octocode index` inside the project directory before starting the MCP server. The --path argument must point to the same directory that was indexed.

Homebrew installation not found after brew install

Ensure Homebrew's bin directory is in your PATH. Run `brew link octocode` if the binary is not available, or use the universal installer script instead.

Frequently Asked Questions about Octocode

What is Octocode?

Octocode is a Model Context Protocol (MCP) server that ๐Ÿฆ€ ๐Ÿ  ๐ŸŽ ๐ŸชŸ ๐Ÿง - semantic code indexer with graphrag knowledge graph. index your codebase, search in natural language, and expose everything v It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Octocode?

Install via npm with the command: npx -y octocode-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Octocode?

Octocode works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Octocode free to use?

Yes, Octocode is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "octocode": { "command": "npx", "args": ["-y", "octocode-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use Octocode?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides