Local-first MCP server for AI-powered codebase intelligence — AST analysis, dependency graphs, and semantic search. Your source code never leaves your machine.
A Model Context Protocol (MCP) server that provides:
- AST Analysis: Parse TypeScript, Python, PHP, and more.
- Dependency Graphs: Visualize call chains and module relationships.
- Semantic Search: Find code by meaning, not just syntax.
- Local-First: Your code stays on your machine; no telemetry by default.
- Cloud Optional: Connect to codeatlas-platform for dream memory, genome immune system, and skills sync.
| Use Case | Benefit |
|---|---|
| AI IDE Integration | Claude Desktop, Cursor, VSCode — get context-aware code intelligence. |
| Codebase Audits | Automate dependency analysis, security scans, and refactoring insights. |
| Semantic Search | Find functions, classes, or modules by intent, not just name. |
| Multi-Language Support | Works with TypeScript, Python, PHP, and more via AST parsers. |
AI IDE → MCP stdio/SSE → Parser (AST) → Dependency Graph → Code Search
│
codeatlas-platform (HTTP) → Dreams + Genome
| Layer | Components |
|---|---|
| Parser | TypeScript, Python, PHP AST analysis |
| Graph | Dependency graph with chunked force layout |
| Search | Semantic code search with regex safety |
| Cloud | Optional: connect to codeatlas-platform for dreams/genome |
# Clone the repo
git clone https://github.com/giauphan/codeatlas-mcp-server.git
cd codeatlas-mcp-server
# Install dependencies (requires Node.js 20+)
pnpm install# Copy env template
cp .env.example .env
# Edit .env (Oracle DB optional for persistent memory)
# Set CODEATLAS_API_URL and CODEATLAS_API_KEY if using cloudpnpm run build# Local-only mode (no cloud)
pnpm start
# With cloud connection (requires codeatlas-platform running)
CODEATLAS_API_URL=http://localhost:8080 CODEATLAS_API_KEY=your_api_key_here pnpm start| Category | Tools |
|---|---|
| Code Analysis | analyze_project, code_search, file_info |
| AST | parse_file, find_symbol, get_dependencies |
| Graphs | dependency_graph, call_graph |
| Security | scan_vulnerabilities |
| Cloud | save_dream_memory, query_dream_memories, sync_dreams |
| Skills | search_skills, get_skill, install_skill |
Add to claude-desktop-config.json:
{
"mcpServers": {
"codeatlas": {
"command": "npx",
"args": [
"-y",
"codeatlas-mcp-server"
]
}
}
}Add to settings.json:
{
"mcp.sse": {
"codeatlas": "npx codeatlas-mcp-server"
}
}| Guide | Description |
|---|---|
| Development Guide | Full environment setup, commands, and troubleshooting. |
| Deployment Guide | PM2, systemd, Nginx TLS, and healthchecks. |
| API Examples | Auth, dream memory, and MCP config examples. |
See CONTRIBUTING.md for guidelines.
MIT © Giau Phan
- codeatlas-platform — HTTP server for dream memory and genome.
- codeatlas-mcp — npm package for easy installation.
- Oracle DB Required for Persistent Memory: Local-only mode works without Oracle, but dream memory persistence requires it.
- Cloud Dream Query Filters: When querying memories with
scope,tags, ormemory_typefilters, the backend performs vector hybrid search on the query text plus SQL filtering on the other parameters. Thetagsparameter is passed as a JSON string to the upstream API. Therelated_idsparameter is also supported for filtering by related memory IDs. - Multi-Tenant Not Supported: Only single-tenant mode available.
- Security: No built-in rate limiting; use a reverse proxy (Nginx) in production.
- Report bugs or request features: GitHub Issues
- For questions: Discussions