codebase-mcp-server
Verified Safeby upandacross
Overview
Provides intelligent search and navigation capabilities for Python, SQL, and Markdown codebases to help LLMs and AI assistants understand and explore large codebases efficiently.
Installation
python server.py --codebase <path-to-your-codebase>Security Notes
The server uses `ast.parse` for Python code, which safely generates an Abstract Syntax Tree without executing the code. SQL parsing relies on regular expressions for metadata extraction, not direct SQL execution. User input for tool calls (e.g., query, filepaths, component types) is used for string matching and filtering, not direct command execution. There are no obvious `eval()` or `exec()` calls, nor direct `subprocess` calls. No hardcoded secrets were found. The primary security model relies on the underlying MCP framework for IPC, assuming it's secure. The server does not expose network ports directly; it communicates via standard I/O.
Similar Servers
context7
Provides up-to-date, version-specific documentation and code examples to Large Language Models (LLMs) and AI coding assistants to improve code generation accuracy and relevance, preventing outdated or hallucinated information.
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
code-index-mcp
Intelligent code indexing and analysis for Large Language Models, enabling tasks such as code review, refactoring, documentation generation, debugging assistance, and architectural analysis.
CodeGraphContext
This MCP Server acts as an expert AI pair programmer's backend, providing real-time, accurate code analysis, indexing, and relationship information from a local codebase to assist with understanding, writing, and refactoring code.