Frequently Asked Questions

Everything you need to know about codebase-memory-mcp - the high-performance code intelligence MCP server

Common Questions

Getting Started

▼
What is codebase-memory-mcp?
codebase-memory-mcp is a high-performance code intelligence MCP server that indexes codebases into a persistent knowledge graph. It supports 158 languages, processes queries in under 1ms, and reduces token usage by 99% compared to file-by-file exploration. It ships as a single static binary with zero dependencies.
How do I install it?
Installation is simple with our one-line installers:
# macOS/Linux
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash

# Windows
Invoke-WebRequest -Uri https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.ps1 -OutFile install.ps1
.\install.ps1
You can also use package managers like Homebrew, npm, or PyPI.
What coding agents does it support?
codebase-memory-mcp auto-detects and configures 11 coding agents: Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode, Antigravity, Aider, KiloCode, VS Code, OpenClaw, and Kiro. The install command automatically sets up MCP entries, instruction files, and pre-tool hooks for each.

Technical Details

▼
What languages does it support?
codebase-memory-mcp supports 158 programming languages through vendored tree-sitter grammars. This includes Python, TypeScript, Go, Rust, Java, C/C++, PHP, C#, Kotlin, and many others. All grammars are compiled directly into the binary for maximum performance.
How does Hybrid LSP work?
Hybrid LSP is a lightweight C implementation of language type-resolution algorithms that enhances tree-sitter parsing with semantic understanding. It resolves imports, generics, inheritance, and type information without requiring separate language server processes. This enables accurate call graph resolution across packages and modules.
What is the graph data model?
The knowledge graph uses node labels like Project, Package, Class, Function, and Route. Edge types include CALLS, IMPORTS, DEFINES, HTTP_CALLS, and others. You can query this graph using Cypher-like syntax or through our 14 MCP tools for structural analysis, search, and impact mapping.

Performance

▼
How fast is indexing?
Indexing is extremely fast:
  • Linux kernel (28M LOC, 75K files) in 3 minutes
  • Django project in ~6 seconds
  • RAM-first pipeline with LZ4 compression
  • Memory released after indexing completes
What about query performance?
Structural queries execute in under 1ms, name searches in <10ms, and dead code detection in ~150ms. Our benchmarked performance on Apple M3 Pro shows sub-millisecond response times for relationship traversals and efficient memory usage.
How does it compare to file-by-file search?
codebase-memory-mcp uses 99% fewer tokens than file-by-file exploration. Five structural queries consume ~3,400 tokens versus ~412,000 tokens via grep/read cycles. One graph query replaces dozens of traditional search operations.

Security & Trust

▼
Is my code secure?
Absolutely. All processing happens 100% locally - your code never leaves your machine. We use multiple security layers:
  • VirusTotal scanning (70+ antivirus engines)
  • SLSA Level 3 build provenance
  • Sigstore cosign signatures
  • SHA-256 checksum verification
  • CodeQL SAST analysis
Can I audit the source code?
Yes! The full source code is available on GitHub. Every release binary is signed, checksummed, and publicly scanned. We prioritize security and welcome responsible disclosure through our SECURITY.md process.
What permissions does it need?
codebase-memory-mcp needs read access to your codebase to build the knowledge graph. It writes configuration files to your agent setup directory. No internet access is required after installation, and no API keys are needed.

Advanced Features

▼
What is the graph visualization UI?
The graph visualization UI is an optional variant that provides a 3D interactive interface to explore your knowledge graph at localhost:9749. It shows node relationships, clusters, and architecture overview visually. Download the UI binary variant and run with --ui=true.
How does infrastructure-as-code indexing work?
Dockerfiles, Kubernetes manifests, and Kustomize overlays are indexed as first-class graph nodes. Resource nodes represent K8s kinds with IMPORTS edges to referenced resources. This enables cross-referencing infrastructure code with application code.
Can I use it without MCP?
Yes! You can use codebase-memory-mcp in CLI mode with commands like:
codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*"}'
codebase-memory-mcp cli trace_path '{"function_name": "ProcessOrder", "direction": "both"}'
codebase-memory-mcp cli query_graph '{"query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'

Troubleshooting

▼
Why isn't my agent showing the MCP server?
Check these common issues:
  • Ensure the install completed successfully
  • Verify absolute paths in your MCP config
  • Restart your agent after installation
  • Test with: echo '{}' | /path/to/binary (should output JSON)
How do I fix slow indexing?
For large codebases:
  • Enable auto-indexing: codebase-memory-mcp config set auto_index true
  • Set file limits: codebase-memory-mcp config set auto_index_limit 50000
  • Use fast indexing mode for initial scan
  • Ensure sufficient RAM available
What if I get Windows SmartScreen warnings?
Windows SmartScreen may show warnings for unsigned software. Click "More info" → "Run anyway". Verify integrity using the provided checksums.txt file included in every release.