AI-powered developer assistant that enables advanced research, analysis and discovery across GitHub and NPM realms in realtime.
Add to Claude Desktop config.json
{
"mcpServers": {
"bgauryy-octocode-mcp": {
"command": "node",
"args": [
"~/.mcp/octocode-mcp/index.js"
]
}
}
} Get the source and run locally
git clone https://github.com/bgauryy/octocode-mcp.git ~/.mcp/octocode-mcp
cd ~/.mcp/octocode-mcp Stop guessing. Octocode researches code locally and externally: your own workspace (ripgrep + LSP-level go-to-definition, references, call hierarchy) and the world's (GitHub repos, PRs, npm/PyPI packages), turning it into verifiable evidence your AI can search, read, and trace.
Use it as an MCP server inside your AI assistant, or as a terminal CLI.
octocode.ai · MCP Server · CLI · Skills
| 🔌 As an MCP Server | 💻 As a CLI | |
|---|---|---|
| For | Your AI assistant (Claude Code, Cursor, Claude Desktop, +13 more) | Your terminal & scripts |
| Install | npx octocode-cli install | brew install bgauryy/octocode/octocode |
| You get | 14 research tools wired into your agent | The same 14 tools, runnable from the shell |
| Best for | Deep agent research, planning, PR review | Quick scripted lookups, CI, piping to other tools |
Same engine, same tools, two surfaces. Pick one or use both.
Prerequisites: GitHub authentication for the GitHub-backed tools. Run
octocode login, or see Authentication Setup.
Wire Octocode’s tools into your AI assistant. The interactive installer handles GitHub OAuth, MCP server config, and the skills marketplace:
npx octocode-cli install
Pass --ide <client> for a non-interactive install (e.g. octocode install --ide cursor), and -m direct only to point a client at a locally installed MCP binary.
Add to your MCP configuration file:
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"]
}
}
}
npx add-skill https://github.com/bgauryy/octocode-mcp/tree/main/skills/octocode-research
The Octocode MCP Server connects your AI assistant to code:
The Octocode MCP Server connects your AI assistant to code:
Hermetic evals: 212/212 passing. For agent research, Octocode MCP is the best default: it wins the combined benchmark with 99/105 quality and 17,274 output tokens on the full 60-query remote sweep (89% less than raw gh).
Token benchmark (lower is better)
| Method | Token load | Tokens | Result |
|---|---|---|---|
raw gh | ████████████████████ | 153,042 | baseline |
| Octocode CLI | ████░░░░░░░░░░░░░░░░ | 29,365 | 81% less than gh |
| Octocode MCP | ██░░░░░░░░░░░░░░░░░░ | 17,274 | 89% less than gh |
Quality benchmark (higher is better)
| Method | Quality bar | Score | Best use |
|---|---|---|---|
| Octocode MCP | ███████████████████░ | 99/105 · 94% | Deep agent research + local/LSP flow |
| Octocode CLI | ███████████████░░░░░ | 79/105 · 75% | Short scripted research |
raw gh | not scored | baseline | Writes and direct GitHub API access |
Token × Quality visual axis
X-axis = token savings vs raw gh (right is better). Y-axis = research quality score (up is better). Best overall is the upper-right quadrant.
Quality ↑
100 | ● Octocode MCP
90 | 99/105 quality
80 | ● Octocode CLI 89% token savings
70 | 79/105 quality
60 |
50 |
40 |
30 |
20 |
10 |
0 | ● raw gh
+--------------------------------------------------------------→ Token savings
0% 40% 80% 90%+
baseline CLI 81% MCP 89%
| Point | X: token benchmark | Y: quality benchmark | Interpretation |
|---|---|---|---|
| Octocode MCP | 89% less than gh | 99/105 | Best combined token + quality result |
| Octocode CLI | 81% less than gh | 79/105 | Best short/scripted structured runner |
raw gh | baseline | not scored | Direct API/writes; verbose reads |
Best-by-scenario matrix
| Scenario | Best tokens | Best quality | Recommendation |
|---|---|---|---|
| Full remote research sweep | Octocode MCP | Octocode MCP | Default for agent research |
| Short one-off scripted run | Octocode CLI | Octocode CLI / MCP | Use CLI when MCP init is not amortized |
| Shallow PR listing | Octocode MCP | Octocode MCP | MCP for triage |
| PR triage with diff stats | Octocode MCP | Octocode MCP | MCP avoids 1 + N follow-up calls |
| Remote directory browsing | Octocode MCP | Octocode MCP | Raw gh api /contents is very verbose |
| Local shallow grep/find | Octocode local tools | Octocode local tools | Octocode for evidence |
| Local targeted code read | Octocode local tools | Octocode local tools | Use matchString / line ranges |
| Local semantic flow | Octocode MCP LSP | Octocode MCP LSP | Definitions, references, call hierarchy |
| GitHub writes | raw gh | raw gh | Octocode is read-only |
Local note: Octocode local tools win for structured evidence, metadata, targeted reads, PCRE2, and LSP (definition, references, call hierarchy). Octocode verbosity:"concise" is available for lossy broad probes; use compact/default for evidence. Details: Benchmark Suite.
https://github.com/user-attachments/assets/de8d14c0-2ead-46ed-895e-09144c9b5071
Install the octocode command globally with Homebrew and run all 14 tools straight from your terminal, no MCP wiring required:
brew install bgauryy/octocode/octocode # → octocode v1.5.0
Or
brew tap bgauryy/octocode && brew install octocode(short form), or run on demand withnpx octocode-cli. Node is pulled in automatically. Runoctocode loginfirst for the GitHub-backed tools.
The CLI is both a setup wizard (install the MCP server + skills, manage GitHub auth, sync configs across editors) and a standalone tool runner (call any Octocode tool, pipe the JSON anywhere).
Commands
| Command | What it does |
|---|---|
octocode install | Configure octocode-mcp for an IDE/agent (--ide <client>, -m npx|direct, --force, --json) |
octocode auth | Manage GitHub authentication (interactive menu) |
octocode login / logout | Sign in / out of GitHub via OAuth device flow (--hostname for Enterprise) |
octocode status | Octocode health: auth + installed MCPs + cache (--sync, --json) |
octocode token | Print the GitHub token using the MCP server’s resolution order (--source, --validate) |
octocode skills | Search / install / remove / sync Agent Skills (--targets, --mode copy|symlink) |
octocode mcp | MCP marketplace: list / install / remove / status (--id, --client, --env) |
octocode sync | Sync MCP configs across all installed IDE clients (--dry-run, --status) |
octocode cache | Inspect / clean cloned repos, skills, logs, and tool caches |
octocode tools | List tools, show a tool’s schema, or run one with --queries '<json>' |
octocode instructions | Print MCP instructions + every tool schema |
Top-level flags: --version/-v, --help/-h, --json/-j.
The 14 tools. Run any directly with octocode tools <name> --queries '<json>':
| Group | Tools |
|---|---|
| GitHub | githubSearchCode · githubSearchRepositories · githubSearchPullRequests · githubGetFileContent · githubViewRepoStructure · githubCloneRepo |
| Local | localSearchCode (ripgrep) · localFindFiles · localGetFileContent · localViewStructure |
| LSP | lspGotoDefinition · lspFindReferences · lspCallHierarchy |
| Package | packageSearch (npm / PyPI → source repo) |
Quick start
octocode login # GitHub OAuth
octocode install --ide cursor # wire MCP into an editor
octocode skills install --targets claude-code # add Agent Skills
octocode tools # list every tool
octocode tools localSearchCode --queries '{"path":".","pattern":"fn"}'
Install targets include Cursor, Claude Code, Claude Desktop, Windsurf, Zed, Trae, Antigravity, Kiro, Codex, Opencode, Gemini CLI, Goose, and the VS Code extensions Cline / Roo / Continue. Full details: CLI Reference.
This is a yarn-workspaces monorepo. Each package has its own README.md; all setup/reference docs live in docs/, and all AI agent guidance lives in the root AGENTS.md.
| Package | Purpose |
|---|---|
octocode-mcp | MCP server: 14 tools across GitHub, local FS, LSP |
octocode-cli | CLI: installer, tool runner, skills marketplace |
octocode-vscode | VS Code extension: GitHub OAuth + multi-editor MCP install |
octocode-shared | Shared utilities: credentials, session, platform |
octocode-security-utils | Standalone security utilities |
Agent Skills are a lightweight, open format for extending AI agent capabilities. Skills index: skills/README.md
Research & Code Analysis
| Skill | What it does |
|---|---|
| Researcher | Code search & exploration: local LSP + external (GitHub, npm/PyPI) |
| Research | Multi-phase research with sessions, checkpoints, state persistence |
| Engineer | Understand, write, analyze, audit code: AST + LSP + dependency graph |
| Brainstorming | Idea validation grounded in evidence: GitHub, npm/PyPI, web in parallel |
| News | What’s new in AI, dev tools, web platform, security, notable repos |
Planning & Writing
| Skill | What it does |
|---|---|
| Plan | Evidence-based planning: Understand > Research > Plan > Implement |
| RFC Generator | Formal technical decisions with alternatives, trade-offs, and recommendations |
| Doc Writer | 6-phase pipeline producing 16+ validated docs |
| Prompt Optimizer | Turn weak prompts into enforceable agent protocols |
| Agentic Flow | Thinking framework for designing/reviewing MCP & multi-agent workflows |
Review & Critique
| Skill | What it does |
|---|---|
| PR Reviewer | PR & local code review across 7 domains with LSP flow tracing |
| Roast | Brutal code critique with file:line citations and severity levels |
Build & Output
| Skill | What it does |
|---|---|
| Slides | Polished multi-file HTML presentations via 6-phase design flow |
| Design | Dynamic DESIGN.md generator covering visual language, components, a11y |
| Chrome DevTools | CDP-level browser debugging: network, console, perf, DOM, screenshots |
Tooling & Setup
| Skill | What it does |
|---|---|
| Install | Interactive step-by-step Octocode installer for macOS and Windows |
| CLI | Run Octocode MCP tools from the terminal without wiring MCP |
| Search Skill | Find, evaluate, install, refactor Agent Skills (SKILL.md format) |
| Stats | Local HTML dashboard from Octocode MCP usage stats |
https://github.com/user-attachments/assets/5b630763-2dee-4c2d-b5c1-6335396723ec
Full index: docs/README.md. All monorepo documentation lives in docs/ (no per-package docs/).
Docs map
docs/configuration/: install, auth providers, MCP clients, env/config, troubleshootingdocs/dev/: tool/API references, workflows, architecture, contributing, skillsdocs/specs/: design specs and RFCsSetup
Tool References
CLI & Skills
Shared Internals
Operations
“Code is Truth, but Context is the Map.” Read the Manifest for Research Driven Development to understand the philosophy behind Octocode.
See the Development Guide for monorepo setup, testing, and contribution guidelines.
AI-powered task management system for AI-driven development. Features PRD parsing, task expansion, multi-provider support (Claude, OpenAI, Gemini, Perplexity, xAI), and selective tool loading for optimized context usage.
Provide coding agents direct access to Figma data to help them one-shot design implementation.
gitmcp.io is a generic remote MCP server to connect to ANY GitHub repository or project for documentation
MCP Server for Android/iOS application and device automation, development and app scraping. Simulator/Emulator/Physical devices like iPhone, Google Pixel, Samsung supported.
Create crafted UI components inspired by the best 21st.dev design engineers.
An Excel manipulation server providing workbook creation, data operations, formatting, and advanced features (charts, pivot tables, formulae).