CodeAtlas AI logo

CodeAtlas AI

Community
giauphan

AI-powered codebase intelligence platform — MCP Server, AST analysis, Knowledge Graph, and semantic memory with SQLite + sqlite-vec. Analyze any codebase in minutes.

Publishergiauphan
Repositorycodeatlas-platform
LanguageTypeScript
Forks
1
Stars
12
Available tools
23
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    CodeAtlas AI exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 23 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 1 forks from the linked repository.

CodeAtlas Platform

CI Node.js License: MIT npm version GitHub release

AI-powered codebase intelligence platform — MCP Server, AST analysis, Knowledge Graph, and semantic memory with SQLite + sqlite-vec as the default database.

Ship a secure, multi-tenant codebase intelligence backend without rebuilding authentication, MCP tooling, semantic memory, and knowledge graph infrastructure from scratch. CodeAtlas Platform is an open-source foundation for developers who want a clear starting point for AI-native code analysis services.

[!IMPORTANT] This repository is a foundation, not a substitute for a threat model. Review Known limitations and adapt the defaults to your infrastructure before serving production traffic.

Why this platform?

ConcernIncluded foundation
MCP Server30+ tools via stdio or SSE transport (Claude, Cursor, VSCode)
Semantic memoryDream memory store with SQLite + sqlite-vec vector search
Knowledge graphGenome DNA + immune system patterns, consolidation engine
Multi-tenantTenant isolation via authStorage.run + Firebase auth
AST analysisTypeScript/Python/JS parsing via @typescript-eslint/typescript-estree and py-ast
DeepWikiMulti-provider LLM (Anthropic/OpenAI/Ollama) automated architecture documentation with Q&A
Security scannerEnterprise vulnerability scanning built-in
A2A protocolAgent-to-agent orchestration with registry
DashboardReact + Vite management UI for API keys and projects

Architecture

AI IDE (Claude/Cursor) → MCP (stdio/SSE) → Platform :3381 → SQLite + sqlite-vec + Firebase + NVIDIA
LayerComponents
PresentationExpress HTTP, MCP SSE, A2A Agent Protocol, REST API
ServicesDream Memory, Genome DNA, Second Brain, Consolidation Engine, Security Scanner
DataSQLite + sqlite-vec (PostgreSQL optional), Firebase Firestore, NVIDIA NIM embeddings

Architecture diagrams

DiagramFile
System architecturediagrams/system.mmd
Second Brain flowdiagrams/second-brain.mmd
Dream lifecyclediagrams/dreams.mmd
Genome + Immune systemdiagrams/genome.mmd
MCP architecturearchitecture/mcp.md
Deploymentdiagrams/deployment.mmd
A2A + Syncdiagrams/a2a-sync.mmd

Quick start

Requirements

  • Node.js 20+
  • pnpm 9+ (corepack enable && corepack prepare pnpm@9 --activate)
  • SQLite + sqlite-vec (bundled — no external database server required)
  • Firebase service account (for multi-tenant auth)
  • NVIDIA NIM API key (for embeddings)

1. Clone and install

bash
git clone https://github.com/giauphan/codeatlas-platform.git
cd codeatlas-platform
pnpm install

2. Configure environment

bash
cp .env.example .env
# Edit .env with your Firebase and NVIDIA credentials

See docs/CONFIGURATION.md or docs/DEVELOPMENT.md for the full env var reference.

3. Build

bash
pnpm run build

4. Initialize database

bash
pnpm run db-init

5. Start the server

bash
# Production mode (SSE on :3381)
PORT=3381 pnpm start

# Development mode (hot reload)
pnpm run dev

# Stdio mode (for Claude Desktop — leave PORT unset)
pnpm start

Server runs at http://localhost:3381. Health check: GET /health.

MCP integration

Claude Desktop (stdio)

Add to claude_desktop_config.json:

json
{
  "mcpServers": {
    "codeatlas": {
      "command": "npx",
      "args": ["-y", "codeatlas-ai"],
      "env": {
        "CODEATLAS_API_KEY": "your_api_key"
      }
    }
  }
}

Cursor / VSCode (SSE)

json
{
  "mcpServers": {
    "codeatlas": {
      "url": "http://localhost:3381/sse"
    }
  }
}

See docs/API_EXAMPLES.md for full curl flows and transport modes.

MCP tools (30+)

CategoryTools
Dreamssave_dream_memory, query_dream_memories, sync_dreams
Genomesearch_genome, save_genome, scan_immune
Skillssearch_skills, get_skill, install_skill
Scannerscan_enterprise_vulnerabilities
Codecode_search, search_files, read_file
Projectslist_projects, get_project_structure, get_dependencies
Architecturegenerate_system_flow, generate_feature_flow_diagram, trace_feature_flow
DeepWikideepwiki_generate, deepwiki_get_tree, deepwiki_get_page, deepwiki_query

Full tool reference: docs/architecture/mcp.md.

Documentation

GuidePurpose
DevelopmentLocal dev setup, env vars, troubleshooting
DeploymentPM2, systemd, Nginx TLS reverse proxy
DeepWikiLLM config, Markdown docs, architecture generation
API examplescurl flows, MCP configs, REST endpoints
Architecture overviewLayers, services, integrations
MCP architectureTool registration, transports, request flow
Quick setupLegacy condensed guide

Known limitations

  • SQLite dependency: Data lives in a local SQLite file (default ./data/codeatlas.db) with sqlite-vec for vector search. Postgres is available as an opt-in backend.
  • Firebase auth: Multi-tenant mode requires Firebase Admin SDK + service account. API-key-only mode supported for single-tenant.
  • NVIDIA embeddings: Vector search depends on NVIDIA NIM API. Without NVIDIA_API_KEY, queries fall back to date-ordered results.
  • Local indexing: Pure cloud deployments cannot index local code — run the codeatlas-ai client locally to sync AST data.
  • Dashboard: Management UI ships separately in dashboard/ — build and deploy independently.

See CHANGELOG.md for release history.

Contributing

Bug reports, documentation fixes, tests, and focused feature contributions are welcome. Start with CONTRIBUTING.md, then look for issues labeled good first issue or help wanted.

For security vulnerabilities, follow SECURITY.md instead of opening a public issue.

License

Distributed under the MIT License. Maintained by @giauphan.

Installation

TypingMind
{
  "mcpServers": {
    "codeatlas-platform": {
      "command": "npx",
      "args": [
        "codeatlas-enterprise"
      ]
    }
  }
}

Available Tools

  • analyze

    Perform deep code analysis on a local project directory. Generates AST analysis in memory and syncs to CodeAtlas Cloud.

  • list_projects

    List all projects that have been analyzed by CodeAtlas. Returns project names, paths, and last analysis time.

  • get_project_structure

    Get all modules, classes, functions, and variables in the analyzed project. Returns entity type, name, file path, and line number.

  • get_dependencies

    Get import/call/containment/implements relationships between entities. Shows how modules, classes, and functions are connected.

  • get_insights

    Get AI-generated code insights including refactoring suggestions, security issues, and maintainability analysis.

  • search_entities

    Search for functions, classes, modules, or variables by name. Supports fuzzy matching.

  • get_file_entities

    Get all entities (classes, functions, variables) defined in a specific file.

  • generate_system_flow

    Auto-generate a Mermaid flowchart diagram showing how modules, classes, and functions connect in the system. Returns a Mermaid diagram string that AI can read to understand the full system flow without reading every file.

  • sync_system_memory

    Create or update the .agents/memory/ folder with auto-generated system documentation. This folder serves as AI's 'long-term memory' — it persists between conversations. After calling this, AI in any future conversation can read these files to understand the full system flow without re-analyzing. Call this after completing any code changes.

  • get_system_memory

    Retrieve the auto-generated system documentation and episodic memories (business rules and change logs) for a project from CodeAtlas Cloud / Oracle 26ai.

  • save_dream_memory

    Save a dream memory (mistake, preference, knowledge, or pattern) to CodeAtlas Cloud for long-term AI recall. The AI uses this to persist learnings across conversations.

  • query_dream_memories

    Query previously saved dream memories from CodeAtlas Cloud. Uses semantic search to find relevant memories based on the query text. Returns memories with relevance scores.

  • trace_feature_flow

    Trace the complete flow of a feature through the codebase. Given a keyword (e.g. 'login', 'payment', 'crawl'), finds all related files, classes, and functions, then orders them by dependency chain to show the execution flow. This helps AI understand which files to read when working on a feature.

  • generate_feature_flow_diagram

    Generate a Mermaid diagram showing the EXECUTION FLOW of a feature. Unlike generate_system_flow (which shows module imports), this traces the actual call chain: entry point → controller → service → model → database. Given a keyword, it finds all related functions and classes, then builds a flowchart or sequence diagram showing how they call each other at runtime. This is the best tool for understanding HOW a feature works step-by-step.

  • detect_architectural_smells

    Knowledge Graph Reasoning: Use Oracle 26ai Graph features to automatically detect architectural weaknesses, circular dependencies, God objects, and dead code.

  • scan_enterprise_vulnerabilities

    Enterprise Scanner: Automatically scan all analyzed projects for bugs, security vulnerabilities (hardcoded secrets, unsafe functions), and architectural problems. Features Admin Insights and Security Scoring.

  • code_search

    Search source FILE CONTENTS across the entire project for any text string. Unlike 'search_entities' (which only searches entity names), this searches the actual code — comments, strings, variable names, function bodies, etc.

  • get_callers

    Find ALL functions, methods, or classes that call or reference a specific symbol. The 'reverse dependency' view — given a function/class name, trace everything that depends on it. Use before refactoring or deleting code.

  • get_callees

    Find everything a function, method, or class calls or depends on. The 'forward dependency' view — given a function name, trace what it imports and calls. Use to understand function dependencies before modifying.

  • impact_analysis

    Full BLAST RADIUS analysis for changing a symbol. Traces BOTH callers (what depends on this) AND callees (what this depends on) in one view. Also finds related test files. Use BEFORE any significant code change.

  • project_context

    Get a comprehensive overview of a project in ONE call: package.json (name, version, scripts, deps, devDeps), config files detected, README summary, test framework, git branch. Saves 5-10 individual read_file calls when starting work.

  • run_script

    Run an npm/pnpm/yarn script from package.json. Returns exit code, stdout/stderr, and duration. Handles cd to project dir automatically.

  • git_changes

    Get recent git changes: last N commits (hash, author, date, message, files changed), uncommitted changes (modified/added/deleted), branch status (ahead/behind). Saves multiple git commands.

Use CodeAtlas AI MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once CodeAtlas AI is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add CodeAtlas AI as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the CodeAtlas AI MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "codeatlas-platform": {
      "command": "npx",
      "args": [
        "-y",
        "codeatlas-ai"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the CodeAtlas AI MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the CodeAtlas AI MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use CodeAtlas AI to help me with this task?
CodeAtlas AI
Sure. I read it.
Here is what I found using CodeAtlas AI.

Frequently asked questions

What is the CodeAtlas AI MCP server used for?

CodeAtlas AI is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use CodeAtlas AI MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use CodeAtlas AI with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use CodeAtlas AI MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With CodeAtlas AI connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect CodeAtlas AI MCP to TypingMind?

CodeAtlas AI runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does CodeAtlas AI MCP provide in TypingMind?

CodeAtlas AI exposes 23 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use CodeAtlas AI MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If CodeAtlas AI requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇