codememory
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codememoryfind all callers of the login function"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š§ CodeMemory
The Persistent Intelligence Layer for Codebases
Local-first, privacy-obsessed CLI tool and Model Context Protocol (MCP) server for AI agents.
š Official Website & Docs: https://codemem.vercel.app/
ā” Key Highlights
š 100% Local & Private: Zero telemetry, zero external network calls. All intelligence stored locally in SQLite WAL mode.
š Interactive Web Architecture Explorer: Local visual flowchart & memory dashboard with timeline scrubbing and real-time live updates.
ā” Token Efficiency: Minimizes AI prompt token consumption by providing targeted context slices and caller graphs instead of raw file dumps.
š Multi-Language AST Analysis: Extracts functions, classes, interfaces, structs, and imports across TypeScript/JavaScript, Python, Rust, Go, SQL, and more.
š Real-time Live Watcher: Detects code changes instantly with 100ms debouncing and
.gitignoreintegration.š¤ Native MCP Server: Ready to connect with Antigravity, Claude Desktop, Cursor, Copilot, and custom AI agents.
š Architecture Visualizer: Generates live Mermaid diagrams, Markdown documentation, and JSON maps.
Related MCP server: Graft
š Quick Start
1. Installation
# Clone the repository
git clone https://github.com/EldrexDelosReyesBula/CodeMemory.git
cd CodeMemory
# Install dependencies
npm install
# Build TypeScript
npm run build2. Basic Commands
# 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
# Launch the interactive local Web Explorer (auto-opens browser)
npm run dev -- web
# or with explicit launch mode
npm run dev -- web --mode auto
npm run dev -- web --mode manual
# Start in background daemon mode
npm run dev -- web --daemon
# Start the live background file watcher (quiet mode available)
npm run dev -- watch
npm run dev -- watch --quiet
# Export Mermaid architecture diagram
npm run dev -- export --format mermaid
# Check repository health and statistics
npm run dev -- statusš¤ Connecting to AI Agents via MCP
CodeMemory provides a full Model Context Protocol (MCP) stdio server.
Available MCP Tools
Tool | Description |
| Search code symbols, signatures, and functions |
| Token-budgeted context with dependencies & callers |
| Upstream imports and downstream dependents |
| Recent file modifications and Git commit logs |
| Generate real-time Mermaid architecture diagrams |
| Overall codebase stats and language breakdowns |
Antigravity & Claude Desktop Configuration
Add the following to your MCP configuration (mcp_config.json or claude_desktop_config.json):
{
"mcpServers": {
"codememory": {
"command": "npx",
"args": ["-y", "@eldrex/codememory", "mcp"],
"env": {}
}
}
}šļø Architecture
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š Optional Integrations
CodeMemory works 100% standalone out-of-the-box. When used alongside DevDiff, you can leverage optional integration commands:
# Verify synchronization between Git-tracked files and CodeMemory index
codememory devdiff sync
# Check for untracked or unindexed files in workspace
codememory devdiff compare
# Analyze direct and indirect caller dependencies for specific files
codememory devdiff impact src/cli.ts
# View file change records and AST symbols
codememory devdiff explain src/cli.ts
# Start Unified MCP Server (combines CodeMemory and DevDiff tools)
codememory mcp --unifiedš License
MIT License - Copyright (c) 2026 Eldrex Delos Reyes Bula.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
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.
251Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenancePersistent codebase knowledge layer for AI agents. Pre-digests codebases into structured knowledge (symbols, dependency graphs, co-change patterns, architectural decisions) and serves via MCP. 28 languages, 14 tools, ~85% token reduction.127MIT
- 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.5271MIT
- 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.36MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/EldrexDelosReyesBula/CodeMemory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server