← Back to Leaderboard
Obgauryy

bgauryy/octocode

MCP server and CLI for tracing code across local workspaces and GitHub

Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated yesterday
Latest Release
9.1.1
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption16/25
Release Cadence11/20
License Clarity20/20
MCPCLI
Total Stars
★ 974
24h Growth
+2
7d Growth
+6
Forks
80

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

bgauryy/octocode Star History (2025-06-05 - 2026-12-03) ALL-TIME STAR HISTORY (2025-06 – 2026-12) +973 in 546d · avg +2/day 1k 514 0 2025-06-05: ★ 12025-07-12: ★ 782025-08-16: ★ 3692025-09-20: ★ 4362025-10-25: ★ 5152025-11-29: ★ 6002026-01-03: ★ 6472026-02-07: ★ 6982026-03-14: ★ 7352026-04-18: ★ 7822026-05-23: ★ 8362026-06-27: ★ 8652026-08-01: ★ 8972026-09-05: ★ 9212026-10-10: ★ 9492026-11-13: ★ 9622026-12-03: ★ 974 ★ 974 2025-06 2026-03 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

Octocode packages a stdio MCP server and a CLI in the same octocode-mcp npm distribution. The interfaces share tool names and JSON inputs. Both use user settings under ~/.octocode/ by default and read project settings from .octocode/ in the launch directory. The monorepo includes Yarn configuration and a lockfile, and its root manifest requires Node.js 24.15 or later for the npm path; standalone binaries provide a separate runtime option.

The tool set lets an agent narrow a search before retrieving evidence: find a file or symbol, then fetch the relevant lines, or resolve a GitHub ref before fetching source. Paged responses can carry a next call for the remaining results. Graph analysis lives in a separate package: its CLI builds and queries snapshots, and its MCP server exposes build_graph and query_graph. To use Graph over MCP, enable local tools and add that server separately.

Key Capabilities & Differentiators

Octocode lists 17 tools overall, with 7 available by default over MCP and 14 in the CLI. Locally, structureSearch locates files, localSearch matches text, astSearch matches syntax, and lspSearch finds definitions, references, and callers. localFetch retrieves line ranges so the agent can verify a call site without pulling in the entire file.

On GitHub, code search targets the default branch, while tree browsing and file reads can target a specific ref. History tools connect code to commits, pull requests, issues, patches, and discussions. artifactSearch resolves a version to registry metadata, dependencies, and upstream source when available; securityCheck reports advisory ranges and known fixes. Graph snapshots can reveal importers, cycles, and potentially affected files. Optional clasify adds provider-backed analysis of selected text, images, or web pages.

Trade-offs & Limitations

For a one-off text search in one checkout, ripgrep is simpler. GitHub’s web UI is often enough when you already know the repository or pull request. Octocode earns its place when an agent repeatedly needs to connect a local finding to a locked package version, source at a specific ref, and the patch behind a change. The extra integration work is real: MCP and CLI expose different defaults, presets override individual switches, and anonymous GitHub access excludes code search and private repositories.

Local installation does not make every path offline. GitHub and registry queries contact their respective services, and clasify sends selected evidence, including image pixels when supplied, to the configured provider. Fresh evaluations can incur charges. Workspace path rules and redaction of recognized secrets are useful controls, not guarantees that all sensitive material is removed. The repository is MIT-licensed; that license does not govern access to private repositories or third-party services.

Hardware & Deployment Guide

For npm, use Node.js 24.15 or later. A standalone binary avoids that prerequisite; builds are available for macOS on Apple Silicon and Intel, Linux on x64 and ARM64 with glibc or musl, and Windows on x64 and ARM64. Run npx -y octocode-mcp install --enable-local true to configure a client with workspace tools, and npx -y octocode-mcp auth login if you need GitHub code search or private repositories. Use config list to inspect effective settings and restart the MCP client after changes.

For local-only MCP use, select the local preset rather than just adding local tools to the default set. Graph-based workflows require the additional Graph server, while clone-based workflows need Git and persistent storage. Release 8.0.0 introduced local filesystem research, 9.1.0 added standalone distribution, and 9.1.1 added a release workflow. There is no specified GPU requirement for core code research; measure disk use for retained checkouts and profile graph builds on representative repositories.

Interface: octocode-mcp provides both a stdio MCP server and a CLI with shared tool names and JSON inputs.
Tool exposure: 17 tools overall; defaults expose 7 over MCP and 14 in the CLI. full, local, and github presets override individual tool settings.
Local evidence: astSearch matches syntax, lspSearch finds definitions, references, and callers, and localFetch retrieves exact line ranges.
Upstream provenance: artifactSearch starts from a package version; GitHub tools inspect a specific ref and retrieve patches or discussions.
Dependency graph: The separate Graph package builds snapshots and queries importers, cycles, and potentially affected files.
Data boundary: Local tools enforce workspace path rules and redact recognized secrets; optional clasify sends selected evidence to an external provider.
Best For

Engineering teams whose coding agents routinely need line-level evidence from local code, upstream versions, and pull requests to investigate debugging or dependency questions.

Skip If

Most work is one-off search in a single checkout, or policy requires GitHub and provider-backed classification features to work without any external requests.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

MCPCLI
npx -y octocode-mcp localFetch '{"queries":[{"path":"README.md","ranges":[{"startLine":1,"endLine":1}]}]}'

Comparison vs. Top Coding, Skills & MCP Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
octocode ★974+6RustMITMCP server and CLI for tracing code across local workspaces and GitHub
graphify156.8k+2.4kPythonApache-2.0Local AST graphs for dependency tracing, with CLI and MCP access.
codebase-memory-mcp49.6k+335CMITA local code graph for tracing code, docs, and infrastructure via MCP.
taste-skill125.3k+2.9kJavaScriptMITAn agent skill for directing company website design and checking builds in a bro

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/bgauryy/octocode.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

bgauryy/octocode Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about octocode

Do the CLI and MCP server require separate installations?

The npm package octocode-mcp serves both roles. An MCP client launches it as a stdio server; in a shell, append a CLI subcommand. The core interfaces share tool names, JSON inputs, and user settings, but expose different tools by default. Dependency graph queries use the separate Graph package, whose MCP server exposes build_graph and query_graph.

What runtime and hardware should I budget for?

The npm path requires Node.js 24.15 or later; a matching standalone binary avoids the Node.js dependency. No GPU or local model is specified for core code research. Size for the repositories and retained checkouts you work with, then measure memory and disk use for representative graph builds. Classification uses a configured external provider rather than local VRAM.

Can we use it commercially or distribute it in an internal toolchain?

The repository is listed as MIT-licensed, which permits commercial use and redistribution subject to preserving the required notices. Before bundling a specific release, verify its LICENSE and third-party notices. Running Octocode locally does not make GitHub, registry, or classification requests local; review the applicable service terms, credential scopes, and data-handling policies separately.

When is Octocode worth adding alongside ripgrep and GitHub’s web interface?

For a known checkout and a text match, rg is the simpler choice. If you already know the repository or PR, GitHub’s web interface may be enough. Octocode adds value when a coding agent needs to move from local call sites to a locked dependency version, upstream source, and the patch behind a change without switching interfaces.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining bgauryy/octocode? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature bgauryy/octocode on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare