Persistent memory for AI coding agents β past bugs, decisions, and your corrections, in your repo.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A small, local MCP server that gives AI agents (Claude Code, Cursor, VS Code / GitHub Copilot, β¦) a shared, persistent memory of the projects in a code folder β what each project is, decisions made, and every bug/issue faced during development.
It is stateless: every tool reads/writes plain files on disk, so multiple clients (and multiple machines) share one source of truth.
| Layer | Lives in | Auto-loaded into context? | For |
|---|---|---|---|
| Project memory | <project>/AGENTS.md | β
yes (via CLAUDE.md β @AGENTS.md) | identity, stack, run cmds, concise decisions/learnings β keep lean |
| Issue log | <project>/issues.jsonl | β no | high-volume bug/issue history β fetched on demand |
Design rule: durable, low-volume facts go in AGENTS.md (auto-loaded). High-volume
history (bugs) goes in issues.jsonl (queried via search_issues). This keeps the
always-loaded context small while keeping everything searchable.
Some orgs disable third-party MCP servers via policy (e.g. GitHub Copilot's MCP allowlist enforcement). Because the memory is plain files, not a service, the core value survives that:
AGENTS.md is auto-loaded by the editor reading it β
no MCP call involved β so a project's identity, decisions, learnings, and preferences still
land in the agent's context.io.github.kaaustubh/project-memory-mcp).Only the interactive tools (log_issue, search_issues, β¦) go over the MCP channel; the
file-based memory keeps working without it.
list_projects, get_project, search_memory β read project memoryappend_decision, append_learning β append a dated bullet to AGENTS.mdremember_preference β turn a correction / stated habit into a remembered pattern (## Preferences in the root AGENTS.md for a global habit, or a project's for a local one); rides the auto-load, so it comes back next sessionlog_issue β record a bug/problem β issues.jsonlsearch_issues β "have we hit this before?" across all projects (field-scoped; optional tags filter)list_open_issues, resolve_issue β track / close bugssync_registry β reconcile the root AGENTS.md projects table with what's on disk (adds rows for new projects, flags stale ones)find_by_file β given a file path, surface the issues + decisions/learnings that touch it ("why is this code like this?")start_initiative, get_initiative, list_initiatives, update_initiative β track a named, multi-session effort (a codename, a plan, an evolving todo list) so it's resumable from any future session by name, not just within the one that started it; see Initiatives belowcheck_in, check_out β stamp the start/end of the working day and record a standup summary composed from evidence harvested off disk (git commits across every repo, uncommitted WIP, memory writes, initiative progress); the next morning's check_in hands the summary back β that's your standup. Print it any time, no agent needed: npx -y @kaaustubh/project-memory-mcp standupYou don't call these directly β you talk to your agent in natural language and it picks the tool. See Using it day to day below for what to actually say.
Most of it runs itself: opening a project auto-loads its AGENTS.md (the agent already
knows the project), and capture is proactive (plus the optional Stop hook). Your job is
mainly to pull memory at the right moments. Just talk to your agent:
| When | Say something like | What fires |
|---|---|---|
| Before debugging anything | "Have we hit this before? <paste error>" | search_issues across all projects |
| Starting something you've done elsewhere | "How did I do Stripe webhook verification in any project?" | search_memory (cross-project) |
| Landing on confusing code | "Why is index.js like this? Check the memory." | find_by_file |
| You made a real decision / fixed a real bug | (nothing β it logs on its own and tells you) | append_decision / log_issue |
| You correct how the agent works | "No, always run the typecheck before committing β remember that." | remember_preference (global or per-project) |
| Triage | "What's still open across my projects?" | list_open_issues |
| A bug is fixed | "Resolve pulse_stripe-004 β fixed by β¦" | resolve_issue |
| Added a new project | "Sync the registry." | sync_registry |
The one habit that matters: make "have we hit this before?" reflexive before every debugging session. That's where a memory tool earns its keep; the rest the system handles.
Capture is confirming, not silent β when the agent logs something it tells you in one line. Correct it freely: "don't log that", or "actually, log this too."
Escape hatches: PROJECT_MEMORY_HOOK=off silences the Stop hook for one session;
uninstall-hook removes it entirely.
From your code/projects folder, run:
That registers the server, using the current directory as your projects root, with every client that has an MCP config location on this machine:
| Client | Config written |
|---|---|
| Claude Code | user scope, via claude mcp add |
| Cursor | ~/.cursor/mcp.json |
| VS Code / GitHub Copilot Chat | user-profile mcp.json (applies to every workspace) |
| GitHub Copilot CLI | ~/.copilot/mcp-config.json (or $COPILOT_HOME) |
| JetBrains Copilot plugin (IntelliJ, PyCharm, WebStorm, β¦) | ~/.config/github-copilot/intellij/mcp.json |
| Visual Studio (Windows) | %USERPROFILE%\.mcp.json β global, all solutions |
| Kimi Code CLI | ~/.kimi-code/mcp.json (or $KIMI_CODE_HOME) |
| Gemini CLI | ~/.gemini/settings.json |
| OpenAI Codex CLI | ~/.codex/config.toml (the only non-JSON client β merged as TOML) |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
Each write merges into the existing file (other MCP servers you've already configured are
left alone) and is independently best-effort β a client that isn't installed on this
machine is silently skipped, the rest still get registered. Restart whichever app(s) you
use, then ask your agent "set up project memory for this folder" to scaffold AGENTS.md
for each project.
Copilot surfaces (VS Code, CLI, JetBrains, Visual Studio): tools only run in Agent mode, and config changes need a restart to take effect.
No clone, no global install β the MCP config just runs
npx, which fetches and runs the latest version on demand.
Team memory (beta signup): want this memory shared across your team instead of just your machine? Register your interest: https://github.com/kaaustubh/project-memory-mcp/issues/1
A common question: "once I install it, does it just start doing things?" Not quite β the server is passive. Here's the actual flow:
AGENTS.md (via CLAUDE.md β @AGENTS.md) into the model's context for you. This is
why the agent "just knows" what your project is β it's a built-in editor feature.Day one is empty. A fresh setup has no
AGENTS.mdfiles yet, so the auto-load has nothing to load andlog_issuewill refuse until a project's memory exists. Bootstrap once by asking your agent: "set up project memory for this folder" β it creates theAGENTS.mdfiles. After that, everything works.
In short: a convention (auto-loaded files) + a tool the agent chooses to use + a one-time setup. No magic, no daemon.
The server ships a standing capture policy (sent to the client on connect, plus directive tool descriptions), so the agent records things on its own instead of waiting for you to ask:
search_issues for a prior fix.log_issue.append_decision / append_learning.remember_preference, so the one-time correction becomes a pattern it brings back next session.It's proactive but not silent: the agent tells you in one line what it recorded, asks when unsure rather than logging noise, and skips trivia and secrets. You can always override β "log this", or "don't bother". The standing policy is best-effort (it depends on the model following it); for a hard guarantee, add the opt-in Stop hook below.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/project-memory-mcp)<a href="https://allmcps.com/mcp/project-memory-mcp"><img src="https://allmcps.com/api/badge/project-memory-mcp?style=directory" alt="Project Memory MCP on AllMCPs" /></a>