Back to Home
e11hzn icon

codebase-agent-mcp-server

Verified Safe

by e11hzn

Overview

The Codebase MCP Server acts as an AI expert to index, search, and analyze Git repositories, assisting developers in understanding, reviewing, and querying code with deep codebase context.

Installation

Run Command
npm start

Environment Variables

  • TRANSPORT
  • PORT
  • OPENAI_API_KEY
  • ANTHROPIC_API_KEY

Security Notes

The codebase leverages `simple-git` for Git operations, which typically handles command argument escaping to prevent injection vulnerabilities. Input validation is performed using Zod schemas. Regex patterns are constructed with an `escapeRegex` helper to prevent regex injection. File system operations are confined to a designated `/tmp/mcp-repos` directory, mitigating arbitrary file access. No hardcoded secrets or direct `eval` usage are present. The primary security consideration is the lack of built-in authentication/authorization for the MCP HTTP endpoint; if deployed publicly, it would require an external security layer to prevent unauthorized access.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassHigh
Avg Tokens2000
Stars0
Forks0
Last Update2025-11-27

Tags

code-analysisgitai-agentdeveloper-toolsmcp-server