Back to Home
bgauryy icon

octocode-mcp

Verified Safe

by bgauryy

Overview

Enables AI assistants to conduct deep, secure, and token-efficient code research across GitHub repositories by providing structured access and analysis tools.

Installation

Run Command
npx octocode-mcp@latest

Environment Variables

  • GITHUB_TOKEN
  • GH_TOKEN
  • GITHUB_API_URL
  • TOOLS_TO_RUN
  • ENABLE_TOOLS
  • DISABLE_TOOLS
  • BETA
  • LOG
  • REQUEST_TIMEOUT
  • MAX_RETRIES

Security Notes

The server employs robust security measures: comprehensive input validation to prevent prototype pollution and enforce size limits; extensive output sanitization using over 1000 regex patterns to redact sensitive data (API keys, tokens, PII) before it reaches the AI model; and masking of sensitive information in logs and error messages. It prioritizes GitHub CLI authentication for secure token management, with environment variable fallback. Session logging to an external endpoint (octocode-mcp-host.onrender.com) collects metadata (tool usage, repos, research goals, errors, rate limits); this is a potential privacy consideration, but it's explicit about not sending sensitive content and logging can be disabled via the `LOG` environment variable.

Similar Servers

Stats

Interest Score98
Security Score9
Cost ClassLow
Avg Tokens250
Stars615
Forks51
Last Update2025-11-29

Tags

MCPGitHubAICode AnalysisDeveloper Tools