Code Memory MCP Server
A deterministic, high-precision code intelligence layer exposed as a Model Context Protocol (MCP) server. Its 4 documented tools cluster into read & search, index. It runs locally over stdio via the published package.
People connecting database tools to Claude, Cursor, VS Code, or another MCP client. The project is written in Python.
VERIFIED ACTIVE
LAST COMMIT 2026-05-20 · ★ 47 · #83 OF 151 MAINTAINED DATABASE · VERIFIED 2026-08-25
MIT · Python servers · how we verify → /methodology
01 · Install Code Memory
before you install - you'll need
Set EMBEDDING_MODEL, CODE_MEMORY_LOG_LEVEL before connecting.
Claude Code
claude mcp add kapillamba4-code-memory -- uvx code-memory Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"kapillamba4-code-memory": {
"command": "uvx",
"args": [
"code-memory"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license MIT - declared in the repository
pypi package code-memory - check the name against the project README before installing (PyPI has no namespace ownership)
registry namespace io.github.kapillamba4 is GitHub-verified and matches the repo owner
03 · What Code Memory can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
An agent gets 4 documented tools across read & search, index, including index_codebase, search_code, search_docs, search_history.
Capability map
Tools grouped from the project's README - what Code Memory lets an agent do.
read & search
3 tools - e.g. Perform semantic search and find structural code definitions, locate where functions/classes are defined, or map out dependency references (call graphs). Uses h; Understand the codebase conceptually - how…
search_code · search_docs · search_history
Index
1 tool - e.g. Indexes or re-indexes source files and documentation in the given directory. Run this before using search_code or search_docs to ensure the database is up to da
index_codebase
Latest releases
v1.0.33 · 2026-05-20
threading crash, duplicate symbols, logging, and embedding insert (4 bugs) · New Contributors · @jimdawdy-hub made their first contribution in
v1.0.32 · 2026-05-11
Remove dead code surfaced by find_dead_code · Restructure as code_memory package and bump to 1.0.32
v1.0.31 · 2026-05-10
04 · Who maintains Code Memory
code-memory is maintained by kapillamba4. We track 2 MCP servers from kapillamba4 - 2 actively maintained, 49 combined GitHub stars, oldest repo from Feb 2026. Full record: all servers from kapillamba4.
05 · Facts
- repository
- github.com/kapillamba4/code-memory
- category
- database - ranked #83 of 151 actively-maintained database servers as of 2026-08-25.
- registry
- io.github.kapillamba4/code-memory (active, first published 2026-02-28 · 6 versions)
- packages
- pypi:code-memory
06 · Code Memory FAQ
Is Code Memory still maintained?
Yes - as of 2026-08-25, its last commit was 2026-05-20. We re-verify nightly.
What can Code Memory do?
An agent gets 4 documented tools across read & search, index, including index_codebase, search_code, search_docs, search_history.
How do I install Code Memory?
Run `uvx code-memory`. The README documents 2 environment variables (EMBEDDING_MODEL, CODE_MEMORY_LOG_LEVEL) to set first. Set EMBEDDING_MODEL, CODE_MEMORY_LOG_LEVEL before connecting. You can also paste the ready-made client config above.
Does Code Memory run locally?
Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to Code Memory
Alternatives to Code Memory
Maintained database servers if Code Memory isn't the fit.
- Dbx Query databases from AI agents using connections configured in DBX. ★ 16,462 · 2026-08-25
- Toolbox for Databases MCP Toolbox for Databases enables your agent to connect to your database. ★ 16,249 · 2026-08-25
- Dbhub Minimal, token-efficient Database MCP Server for PostgreSQL, MySQL, SQL Server, SQLite, MariaDB ★ 3,395 · 2026-08-21
- Butterbase Ai MCP Server Butterbase MCP server - manage your backend: schemas, auth, functions, storage, RAG, deploys. ★ 3,225 · 2026-08-24
- Supabase MCP server for interacting with the Supabase platform ★ 2,871 · 2026-08-22
- MongoDB MCP Server MongoDB Model Context Protocol Server ★ 1,106 · 2026-08-24
Pairs well with
Servers that cover what Code Memory doesn't - only shown when the pairing reason fits the companion.
- Server Chart → data & analytics companion data & analytics · ★ 4,337
- Keboola MCP Server → data & analytics companion data & analytics · ★ 86
- Server Filesystem → filesystem companion filesystem · ★ 38,704
- X402 List MCP → filesystem companion filesystem · ★ 58
- Telnyx → API integration companion API integration · ★ 197
- Microsoft 365 MCP Server → API integration companion API integration · ★ 932
More database MCP servers · Agent Discover · Flashcards Open Source App · Vector DB MCP · Run402 · Share HTML
More Python MCP servers · Meta Prompt MCP · Kapruka MCP · Foehn · edumints SCORM MCP · see all