Octocode MCP Server

AI-powered code indexer with semantic search and knowledge graphs

Local serverstdioPython

What is the Octocode MCP server?

Connect Octocode to Claude, Cursor or any other MCP client and it stops being a tab you switch to. AI-powered code indexer with semantic search and knowledge graphs. The octocode mcp server is what makes that connection.

What the server does

Now your AI assistant can: ``` You: "Where is authentication handled?" AI: searches your codebase "Authentication is in src/middleware/auth.rs, which imports jwt.rs for token validation and calls user_store.rs for lookup."

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • semantic_search — Find code by meaning — "authentication flow", "error handling", "database queries"
  • view_signatures — View file structure — function signatures, class definitions, imports
  • graphrag — Query relationships — "what calls this function?", "what does this module import?"
  • structural_search — AST pattern matching — find .unwrap() calls, new instantiations, specific patterns
  • lsp_goto_definition — Jump to a symbol's definition (requires --with-lsp)
  • lsp_find_references — Find all usages of a symbol across the workspace (requires --with-lsp)
  • lsp_hover — Type info and documentation for a symbol (requires --with-lsp)

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Credentials and setup notes

Configuration is passed through the environment: VOYAGE_API_KEY, OPENROUTER_API_KEY, OPENAI_API_KEY, JINA_API_KEY, GOOGLE_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Octocode's toolset — semantic_search, view_signatures, graphrag and 4 more — is a fair guide to whether it matches your workflow. It is maintained by Muvon; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Octocode's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
semantic_searchFind code by meaning — "authentication flow", "error handling", "database queries"
view_signaturesView file structure — function signatures, class definitions, imports
graphragQuery relationships — "what calls this function?", "what does this module import?"
structural_searchAST pattern matching — find .unwrap() calls, new instantiations, specific patterns
lsp_goto_definitionJump to a symbol's definition (requires --with-lsp)
lsp_find_referencesFind all usages of a symbol across the workspace (requires --with-lsp)
lsp_hoverType info and documentation for a symbol (requires --with-lsp)

How to install the Octocode MCP server

// Add to your AI assistant config
{
  "mcpServers": {
    "octocode": {
      "command": "octocode",
      "args": ["mcp", "--path", "/your/project"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
VOYAGE_API_KEYCredential the server authenticates with.Yes
OPENROUTER_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
JINA_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Octocode to semantic search.
  • Use Octocode to view signatures.
  • Use Octocode to graphrag.

Frequently asked questions

It connects Octocode to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (semantic_search, view_signatures, graphrag, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Octocode directly.