MCP server for semantic code research and context generation on real-time using LLM patterns | Search naturally across public & private repos based on your permissions | Transform any accessible codebase/s into AI-optimized knowledge on simple and complex flows | Find real implementations and live docs from anywhere
# Octocode: Research Driven Development for AI
<div align="center">
<img src="https://github.com/bgauryy/octocode-mcp/raw/main/packages/octocode-mcp/assets/logo_white.png" width="400px" alt="Octocode Logo">
<h3>Stop Guessing. Start Knowing.</h3>
<p><strong>Empower your AI assistant with the skills of a Senior Staff Engineer.</strong></p>
<p>
<a href="https://octocode.ai"><strong>octocode.ai</strong></a>
</p>
</div>
---
## Installation
> **Prerequisites**: GitHub authentication required. See [Authentication Setup](https://github.com/bgauryy/octocode-mcp/blob/main/packages/octocode-mcp/docs/AUTHENTICATION_SETUP.md).
### Recommended: Octocode CLI
```bash
npx octocode-cli
```
Interactive setup wizard with GitHub OAuth, MCP server installation, and skills marketplace.
### Alternative Methods
<details>
<summary><strong>One-Click Install (Cursor)</strong></summary>
[<img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Install in Cursor">](https://cursor.com/en/install-mcp?name=octocode&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJvY3RvY29kZS1tY3BAbGF0ZXN0Il19)
</details>
<details>
<summary><strong>Manual MCP Configuration</strong></summary>
Add to your MCP configuration file:
```json
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"]
}
}
}
```
</details>
<details>
<summary><strong>Research Skill (Direct Install)</strong></summary>
```bash
npx add-skill https://github.com/bgauryy/octocode-mcp/tree/main/skills/octocode-research
```
</details>
---
## MCP Server
The [Octocode MCP Server](https://github.com/bgauryy/octocode-mcp/tree/main/packages/octocode-mcp) connects your AI assistant to code:
- **GitHub & GitLab**: Search repositories, find usage patterns, read implementations, explore PRs
- **Local Tools**: Search code, browse directories, find files in your local codebase
- **LSP Intelligence**: Go to Definition, Find References, Call Hierarchy -- compiler-level undersAgent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.