codememory
🧠 CodeMemory
Die persistente Intelligenzschicht für Codebasen
Lokal-first, datenschutzorientiertes CLI-Tool und Model Context Protocol (MCP)-Server für KI-Agenten.
🌐 Offizielle Website & Dokumentation: https://codemem.vercel.app/
⚡ Wichtigste Highlights
🔒 100 % lokal & privat: Null Telemetrie, keine externen Netzwerkaufrufe. Die gesamte Intelligenz wird lokal im SQLite-WAL-Modus gespeichert.
🌐 Interaktiver Web-Architektur-Explorer: Lokales visuelles Flussdiagramm & Memory-Dashboard mit Zeitleisten-Scrubbing und Live-Updates in Echtzeit.
⚡ Token-Effizienz: Minimiert den Token-Verbrauch von KI-Prompts, indem gezielte Kontextausschnitte und Aufrufergraphen statt roher Dateidumps bereitgestellt werden.
🔍 Mehrsprachige AST-Analyse: Extrahiert Funktionen, Klassen, Interfaces, Strukturen und Importe in TypeScript/JavaScript, Python, Rust, Go, SQL und mehr.
👀 Echtzeit-Live-Watcher: Erkennt Codeänderungen sofort mit 100 ms Entprellung und .gitignore-Integration.
🤖 Natiiver MCP-Server: Bereit für die Verbindung mit Antigravity, Claude Desktop, Cursor, Copilot und benutzerdefinierten KI-Agenten.
📊 Architektur-Visualisierer: Erzeugt Live-Mermaid-Diagramme, Markdown-Dokumentation und JSON-Karten.
Related MCP server: ContextAtlas
🚀 Schnellstart
1. Installation
# Clone the repository
git clone https://github.com/EldrexDelosReyesBula/CodeMemory.git
cd CodeMemory
# Install dependencies
npm install
# Build TypeScript
npm run build2. Grundlegende Befehle
# Initialize CodeMemory in your repository
npm run dev -- init
# Scan the current codebase and index all symbols
npm run dev -- scan
# Search for any function, class, or symbol
npm run dev -- query authenticateUser
# Extract token-budgeted AI context
npm run dev -- context AuthService --budget 2000
# Start the live background file watcher
npm run dev -- watch
# Export Mermaid architecture diagram
npm run dev -- export --format mermaid
# Check repository health and statistics
npm run dev -- status🤖 Verbindung mit KI-Agenten über MCP
CodeMemory bietet einen vollständigen Model Context Protocol (MCP)-stdio-Server.
Verfügbare MCP-Tools
Tool | Beschreibung |
| Codesymbole, Signaturen und Funktionen durchsuchen |
| Token-budgetierter Kontext mit Abhängigkeiten & Aufrufern |
| Upstream-Importe und Downstream-Abhängige |
| Letzte Dateiänderungen und Git-Commit-Protokolle |
| Echtzeit-Mermaid-Architekturdiagramme erzeugen |
| Gesamtstatistiken der Codebasis und Sprachaufschlüsselungen |
Antigravity- & Claude-Desktop-Konfiguration
Fügen Sie Folgendes zu Ihrer MCP-Konfiguration hinzu (mcp_config.json oder claude_desktop_config.json):
{
"mcpServers": {
"codememory": {
"command": "node",
"args": ["c:/Users/Eldrex/Downloads/classhost/Needs/CodeMemory/dist/cli.js", "mcp"],
"env": {}
}
}
}🏗️ Architektur
CodeMemory/
├── src/
│ ├── types/ # Domain data types & contracts
│ ├── db/ # SQLite engine with WAL mode & indexes
│ ├── parser/ # Multi-language AST symbol & dependency extractor
│ ├── watcher/ # Real-time debounced file watcher with .gitignore
│ ├── git/ # Git commit and diff history monitor
│ ├── generator/ # Mermaid diagram & Markdown/JSON exporters
│ ├── context/ # Token-budgeted context assembly & symbol ranker
│ ├── mcp/ # Model Context Protocol stdio server
│ └── cli.ts # CLI commands router
└── tests/ # Complete Vitest test suite📜 Lizenz
MIT-Lizenz – Copyright (c) 2026 Eldrex Delos Reyes Bula.
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
shared AI-context layer for teams — persistent memory your agents search and update over MCP
Search GitHub, npm, PyPI, StackOverflow, ArXiv from one MCP — built for coding agents.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceLocal-first codebase context engine that parses code into a ranked dependency graph and serves it to AI tools via MCP for deep structural understanding.54 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding agents to retrieve and manage code context with hybrid search, project memory, and observability via MCP tools.29MIT
- AlicenseNot gradedqualityDmaintenanceServes structured code context via MCP, enabling AI agents to understand codebases with dependency graphs and significantly reduce token usage.14 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to query a codebase as a knowledge graph, providing token-budgeted context, search, and impact analysis via MCP tools.MIT