Octocode MCP Server

AI-powered code indexer with semantic search and knowledge graphs

Local serverstdioPython

What is the Octocode MCP Server?

AI-powered code indexer with semantic search and knowledge graphs

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
semantic_searchFind code by meaning — "authentication flow", "error handling", "database queries"
view_signaturesView file structure — function signatures, class definitions, imports
graphragAlways-on file/symbol graph — search nodes, inspect relationships, and find paths without indexing
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

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

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

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

Frequently asked questions

AI-powered code indexer with semantic search and knowledge graphs Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.