
Octocode MCP Server
by bgauryyio.github.bgauryy/octocode-mcpv7.0.9
AI-powered developer assistant that enables advanced research, analysis and discovery and code generation across GitHub and NPM realms in realtime.
context tax
~5,738 tok/turn5 tools
security
100/100
cold start
92 ms
freshness
Maintained3mo ago
Our reading of Octocode, from the data
Octocode is a version control MCP server from bgauryy, listed in the official MCP Registry.
Its 5 tools add about 5,738 tokens to every model turn, heavier than the version control median of 1,256 tokens across 54 measured servers (measured 2026-10-23).
Maintenance is maintained: the last public signal was 3 months ago (2026-08-25). For comparison, 65% of version control servers are active or maintained.
With 950 GitHub stars it ranks #15 of 725 version control servers we index.
It runs locally on your machine over stdio and needs one secret (GITHUB_TOKEN); use a scoped, least-privilege key.
Install Octocode MCP server
Install in Claude Code
claude mcp add octocode -e GITHUB_TOKEN='<github-token>' -- npx -y octocode-mcpInstall in Cursor
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": [
"-y",
"octocode-mcp"
],
"env": {
"GITHUB_TOKEN": "<github-token>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": [
"-y",
"octocode-mcp"
],
"env": {
"GITHUB_TOKEN": "<github-token>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"octocode": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"octocode-mcp"
],
"env": {
"GITHUB_TOKEN": "<github-token>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": [
"-y",
"octocode-mcp"
],
"env": {
"GITHUB_TOKEN": "<github-token>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test octocode-mcp
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GITHUB_TOKEN | — | yes | GitHub Personal Access Token. Optional - authenticate via GitHub CLI (gh auth login) for automatic token management, or set this token manually for CI/CD environments. |
Context tax
Connecting this server adds ~5,738 tokens of tool definitions to every model turn (heavy, 5 tools). Measured 2026-10-23 via a sandboxed run; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $22.95 | $1.15 |
| Claude Sonnet 5.5 | $11.48 | $1.15 |
| Claude Haiku 5.5 | $0.574 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (5)
githubSearchPullRequests1,501 tokPR SEARCH - Search or fetch PRs PARAMS: See schema for parameter details PURPOSE: Get PRs with metadata, discussions, and diffs USE_WHEN: PR context | Implementation research | Review merged changes AVOID: Current code → githubGetFileContent | Code patterns → githubSearchCode WORKFLOW: Step 1: Discover (prNumber or filters) Step 2: Analyze (withComments/withContent) Step 3: Compare (githubGetFileContent for current) STRATEGY: - prNumber: Direct fetch [fastest] when you know PR number - Search: Filter by state/author/labels/dates for discovery - withContent/withComments: Start
githubSearchRepositories1,087 tokREPOSITORY SEARCH - Search repos by keywords/topics PARAMS: See schema for parameter details PURPOSE: Discover GitHub repositories. Gateway for codebase exploration. USE_WHEN: Starting research | Finding projects/libraries AVOID: Know repo name - go to githubViewRepoStructure | Need code patterns - use githubSearchCode WORKFLOW: Step 1: Discover (topicsToSearch or keywordsToSearch) Step 2: Explore (githubViewRepoStructure) Step 3: Search (githubSearchCode) Step 4: Read (githubGetFileContent) STRATEGY: - topicsToSearch: Most precise for curated topic tags - keywordsToSearch: Fl
githubSearchCode1,056 tokCODE SEARCH - Search file content or filenames/paths PARAMS: See schema for parameter details PURPOSE: Search file contents for code patterns or search file/directory names USE_WHEN: Know patterns | Need discovery AVOID: Broad terms | No owner/repo (rate limits) WORKFLOW: Step 1: Discovery (match="path") - Find files [fastest, most token efficient] Step 2: (Optional) Use githubViewRepoStructure to understand structure when exploring unfamiliar repos Step 3: Detailed (match="file", limit=5) - Get matches with context Step 4: Read (githubGetFileContent matchString) - Full content ST
githubGetFileContent934 tokFILE READER - Read file contents with smart extraction PARAMS: See schema for parameter details PURPOSE: Read file contents using patterns, line ranges, or full file mode USE_WHEN: Have file path | After githubSearchCode/githubViewRepoStructure discovery AVOID: Unknown location - search first WORKFLOW: Step 1: Discovery (githubSearchCode/githubViewRepoStructure) Step 2: Read (matchString or line range) Step 3: Explore related patterns STRATEGY (choose based on what you know): - matchString: Know function/class/pattern name → start here [most efficient] - startLine + endLine: Kno
githubViewRepoStructure862 tokDIRECTORY EXPLORER - Understand codebase organization PARAMS: See schema for parameter details PURPOSE: Display directory structure with file sizes USE_WHEN: New codebase | Need structure overview AVOID: Know filename - use githubSearchCode | Need content - use githubGetFileContent WORKFLOW: Step 1: Overview (depth=1, path="") Step 2: Drill down (depth=2, path="src") Step 3: Search (githubSearchCode) Step 4: Read (githubGetFileContent) STRATEGY: - depth=1: Fast overview, see immediate files/folders - depth=2: Deeper view, includes subdirectories (slower) - path="": Start at
Security signals
100/100 — no known issues found as of 2026-10-23, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
No findings from the checks that ran.
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Maintained — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-25 · 3mo ago · GitHub
Latest release
2025-12-15 · 11mo ago · GitHub · 9.1.1
Package published
no data · npm/PyPI
Registry entry updated
2025-11-10 · 12mo ago · official registry · v7.0.9
How it compares in Version Control
Against the most-starred version control servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| Octocode (this) | 950 | 5 | 5,738 | Maintained | local |
| Git | 91,356 | 12 | 1,139 | Active | local |
| PostHog | 40,338 | — | not measured | Active | local + hosted |
| GitHub | 33,740 | 46 | 11,509 | Active | local + hosted |
| GitDiagram | 18,313 | 3 | 864 | Active | hosted |
| Skill Seekers | 15,180 | — | not measured | Active | — |
FAQ
›How do I install the Octocode MCP server in Claude Code?
Run: claude mcp add octocode -e GITHUB_TOKEN='<github-token>' -- npx -y octocode-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Octocode require an API key?
Yes. It expects GITHUB_TOKEN, of which 1 is a secret.
›Can I use Octocode as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Octocode in the official MCP registry?
Yes, as io.github.bgauryy/octocode-mcp.
›How many tokens does Octocode add to my context?
Its tool definitions total about 5,738 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2025-11-10
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-23
- Security signals, computed by us
- 2026-10-23
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to Octocode
Other version control MCP servers.