repo-memory-mcp
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., "@repo-memory-mcpload context for current repo"
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.
repo-memory-mcp
Local-first, repo-scoped memory for engineering agents.
repo-memory-mcp is an early MCP prototype for sharing source-backed engineering memory across AI coding clients like Cursor, VS Code, Claude Code, Gemini CLI, Codex CLI, and other MCP-capable tools.
Engineering memory should follow the repo across AI clients, not be trapped inside one application.
This is not a generic personal-memory bot. It is a project memory layer for software work: decisions, gotchas, commands, artifacts, task checkpoints, and stale warnings tied back to repo evidence.
Contents
Why this exists
AI coding tools are useful, but each one tends to start from a blank slate. Repo docs get stale, prior debugging context disappears, and decisions are scattered across chats, commits, and terminal output.
Repo memory is designed to answer questions like:
What did we do last time in this repo?
What did we decide about this subsystem?
What test command worked?
What failure did we already investigate?
Which memories might be stale after a
git pull?What should the agent know before touching this code?
Quick start
Clone, install, build, and test:
git clone https://github.com/pinchworth-ops/repo-memory-mcp.git
cd repo-memory-mcp
npm install
npm run build
npm test
npm run demoRun the MCP server directly:
node /absolute/path/to/repo-memory-mcp/dist/server.jsRun the CLI directly:
node /absolute/path/to/repo-memory-mcp/dist/cli.js --helpOptional local link for nicer CLI usage:
npm link
repo-memory --helpSee Installation for tarball/npm install and MCP client config.
Initialize a test repo:
cd /path/to/test-repo
repo-memory init --update-gitignore
repo-memory context --task "understand this repo"Recommended MCP server config shape:
{
"mcpServers": {
"repo-memory": {
"command": "node",
"args": ["/absolute/path/to/repo-memory-mcp/dist/server.js"],
"env": {
"REPO_MEMORY_ALLOWED_ROOT": "/absolute/path/to/test-repo"
}
}
}
}See MCP and CLI reference for per-client setup.
Core workflow
Typical agent loop:
load_project_context
→ search_project_memory / get_memory if needed
→ store_artifact for important raw evidence
→ checkpoint_task after meaningful progress on multi-step work
→ run tests / validation
→ finish_task with summary and optional proposedMemoriesThe important distinction:
Context at task start — load relevant memories, active checkpoints, commands, gotchas, and stale warnings.
Checkpoints during work — preserve temporary work-in-progress state for long tasks, crashes, or context-window overflow.
Memories at task end — propose durable lessons only when they will help future agents.
Read the full workflow in Agent workflow.
Docs
Doc | What it covers |
Local clone, npm/tarball install, MCP config, smoke test | |
Design principles, features, roadmap, MVP snapshot | |
CLI commands, MCP tools, client configuration, cross-client test plan | |
Context loading, checkpoints, | |
Repo initialization, hooks, env vars, path mismatch, SQLite busy | |
Alternating Claude/Cursor suite, checkpoint recovery dogfood, checklists |
Development
npm install
npm run build
npm test
npm run demoAdditional checks:
npm run stress
scripts/run-memory-dogfood-suite.sh /path/to/memory-test
scripts/run-checkpoint-dogfood.sh /path/to/memory-checkpoint-testThe smoke test creates a fake git repo and verifies storage/search, artifact paging, command capture, context packs, git revalidation, listing/deletion, audit trail, deduplication, and lifecycle operations.
Dashboard
Start the local dashboard to review memories, audit history, and useful project stats:
repo-memory dashboardThe dashboard includes a Needs attention review queue for proposed, needs-revalidation, and stale memories. It supports the same audited review actions as the CLI: accept/verify, reject, mark stale/historical, or delete.
Safety notes
Do not point early versions at sensitive work repos until tested on disposable repos.
Use
REPO_MEMORY_ALLOWED_ROOTduring early dogfooding.Do not store secrets, credentials, tokens, personal data, or trivial churn.
Treat memories as claims with provenance, not absolute truth.
Re-check code before acting on stale or probably-active memories.
Current status
Prototype. Useful enough to test, not production-ready.
Current implementation is intentionally boring:
TypeScript / Node
SQLite via
better-sqlite3SQLite FTS5 search
local files only
no cloud calls
no embeddings yet
no LLM dependency
The deterministic storage/retrieval/staleness layer comes first. LLM-assisted extraction or summarization can come later.
License
MIT. See LICENSE.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/andyast/repo-memory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server