Skip to content
AddHunt
MCP servers

Octocode

Code research tools for AI agents over MCP or CLI

Open source

  • Open source

In short

Octocode is an open-source set of code research tools that lets AI assistants and developers search GitHub, npm and local code and get answers with citations. It is for developers working in Cursor, Claude Code, VS Code and other MCP hosts, or in the terminal.

What you get

  • 13 research tools for GitHub, npm and local code
  • Answers returned with citations
  • No indexing or vector database required
  • AST matching and LSP navigation
  • PR history lookup
  • MCP server, CLI, skill and Pi extension

The details

Octocode gives AI coding assistants a way to study real code before they answer. Its 13 research tools search GitHub repositories, npm packages and code on the local machine, and results come back with citations so plans and reviews can point to their sources. Nothing has to be indexed first: there is no vector database or embeddings step.

Ways to run it

  • MCP server (octocode-mcp) for Cursor, Claude Code, VS Code, Windsurf, Zed and other MCP hosts, with one-click install for Cursor and VS Code
  • CLI through npx octocode, with 12 commands, JSON output and raw tool calls, no AI host needed
  • Skill: a SKILL.md protocol that chains the tools into a research loop
  • Pi extension that bundles the tools with persistent memory and subagent coordination for the Pi harness

How it works

After a one-time GitHub sign-in (gh auth login also works), Octocode reads public and private repositories in read-only mode, and secrets are stripped from what goes in and out. Agents can move from a GitHub or npm lookup to the source repository, then pull code locally for repeated search, AST pattern matching and LSP navigation of definitions, references, callers and callees. PR history helps explain why a piece of code changed.

Octocode is free and open source under the MIT license and needs Node.js 20 or newer.

Alternatives to Octocode

All alternatives

Questions

Does Octocode need to index code first?

No. It searches code as it exists, without a vector database, embeddings or a project ingestion step.

Which AI tools can use Octocode?

Any MCP host, including Cursor, Claude Code, VS Code, Windsurf and Zed. The same tools are also available from the terminal through npx octocode.

Can Octocode change repositories?

No. It works in read-only mode on public and private GitHub repositories, and it strips secrets from its inputs and outputs.

More like this