
[](https://github.com/modelcontextprotocol/servers)
[](https://deepwiki.com/bgauryy/octocode)
[](https://glama.ai/mcp/servers/bgauryy/octocode)
[](https://octocode.ai)
[](https://www.youtube.com/@Octocode-ai)
**Evidence-first code research for AI agents and developers.**
Octocode researches **your local code and external code alike** (GitHub repositories, PRs, npm) with one toolset: ripgrep + AST search, trees, precise reads, and LSP. Use it as a **CLI** or **MCP server**, backed by a **Rust engine** for fast, token-efficient results across single files or mega-repos.
---
## Table of contents
- [Quick start](#quick-start)
- [Why Octocode](#why-octocode)
- [Built for research (benchmarks)](#built-for-research-benchmarks)
- [Tools](#tools)
- [MCP](#mcp)
- [CLI](#cli)
- [Configuration](#configuration)
- [Authentication methods](#authentication-methods)
- [Security](#security)
- [Language support](#language-support)
- [Skills](#skills)
- [Architecture](#architecture)
- [Documentation](#documentation)
- [Troubleshooting](#troubleshooting)
- [Agent workflows](#agent-workflows)
---
## Quick start
**Prerequisites:** Node.js 20.12+
**1. Run the Octocode CLI with `npx`**
```bash
npx octocode --help
```
**2. Authenticate with GitHub** - optional, but unlocks private repositories and higher API rate limits:
```bash
npx octocode auth login
npx octocode status # verify the active token source
```
**3. Choose your interface.** Same tools and Rust engine on both. (Clone is on by
default in the CLI, opt-in for MCP.)
**🖥️ CLI** - research straight from your terminal:
```bash
npx octocode
```
**🤖 MCP** - one-click install:
- [