Octocode

Octocode

MCP server enabling AI assistants to search, analyze, and extract insights from GitHub repositories.

601
Stars
50
Forks
9
Releases

Overview

Octocode MCP is an agentic code research server that empowers AI assistants to search, analyze, and extract actionable insights from millions of GitHub repositories with enterprise-grade security and token efficiency. It exposes five integrated research tools for broad and precise discovery—githubSearchCode, githubSearchRepositories, githubViewRepoStructure, githubGetFileContent, and githubSearchPullRequests—and orchestrates multi-stage workflows (Discover → Explore → Analyze) with transparent reasoning and cross-repo validation. Core capabilities include fast code discovery, contextual content extraction with pattern matching and line-range targeting, token-minimization through content minification, automated secret detection and sanitization, and robust access control for public and private repositories. The MCP supports GitHub authentication via GitHub CLI or Personal Access Tokens and can target GitHub Enterprise deployments via GITHUB_API_URL, enabling enterprise usage. It emphasizes cross-repo pattern analysis, Mermaid-diagram synthesis, and cited references for traceability. Installation is via standard npm/pnpm commands (npx octocode-mcp@latest) with environment configuration options. The server is designed to integrate with various clients (Claude, Cursor, VS Code, etc.) and aligns with the Model Context Protocol community.

Details

Owner
bgauryy
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Code Discovery

Multi-dimensional search across repositories, code, and pull requests to locate relevant implementations quickly.

Context Extraction

Smart retrieval with pattern matching and line-range targeting to fetch precise content with context.

Token Optimization

Advanced content minification with 50+ language support, reducing token usage by 30-70%.

Security and Secrets Detection

Automatic secrets detection and content sanitization to protect sensitive data.

Progressive Research Workflow

Workflow-driven exploration from discovery to analysis with transparent reasoning and cross-repo validation.

Access Control

GitHub permission-based access to public and private repositories for controlled research.

Tool Orchestration

Orchestrates multiple MCP tools to deliver cohesive, end-to-end research results.

Transparent Reasoning and Synthesis

Shows step-by-step reasoning and provides synthesis with diagrams and cited references.

Tags

GitHubMCPAI-assisted researchcode discoverycontext extractiontoken optimizationsecurityaccess controlGitHub EnterprisePR analysisprivate repositoriescode analysis