context_searchLABSCO SUMMARY
The context that usually dies with the chat window.
A CLAUDE.md or .cursorrules is a static file that goes stale. This is a directory the agent can search and write back into, so what was learned in one session is there at the start of the next one.
What it is
An MCP server over a .context/ directory in your repository. That directory holds facts, decisions, regressions, preferences, session summaries and monthly changelog syncs; the server lets an MCP client search it and orient itself in it without you pasting anything.
What you get
- The context library searched, so an agent looks something up instead of rediscovering it
- Automatic orientation at the start of a session, from the index that loads every time
- Facts about architecture, database and deployment kept in files rather than in a chat
- Decisions recorded with their reasoning, so a settled argument is not reopened
- Regressions recorded, so a bug that was already fixed is not reintroduced
- Coding preferences that follow you across every repository, not just this one
Requirements
Node and npx. npx repomemory go sets up the global profile, creates .context/, configures Claude Code and Cursor and runs the initial analysis — that path needs one provider key: ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY or GROK_API_KEY. npx repomemory setup cursor needs no API key: it installs the MCP server into ~/.cursor/mcp.json, adds the rules file, and lets Cursor's own model do the analysis when you run /repomemory-analyze.
Setup effort
One command plus a key — npx repomemory go, then supply credentials
USE CASES
Starting a session without re-explaining the project
Let the agent orient itself from the index before it touches any code.
Answering 'why is it built this way'
Search the recorded decisions rather than re-litigating them in the chat.
Stopping a bug from coming back
Search the regressions before accepting a fix that looks familiar.
Onboarding a second AI tool to the same repo
Point it at the same context directory and let it orient from the index the first one used.
Checking how deployment actually works here
Search the facts for architecture and deployment instead of reading the pipeline config again.
7 tools
Listed in project docs. Your client may show a different list.
context_auto_orientcontext_writecontext_readcontext_listcontext_riskcontext_deleteBEFORE YOU INSTALL
What to know first
Tools you get
7 tools named in the project's documentation.
Requires
- npx on PATH
- One LLM provider key for the analysis npx repomemory go runs: ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY or GROK_API_KEY (the Cursor route, npx repomemory setup cursor, needs none)
Where it runs
Both documented clients run the server on your machine.
INSTALLATION
Connect your client
Server setup
npx repomemory goMCP Clients
Claude Code
{
"mcpServers": {
"repomemory": {
"command": "npx",
"args": [
"-y",
"repomemory",
"serve"
]
}
}
}Cursor
No API key needed on this route: run npx repomemory setup cursor and it writes this entry into ~/.cursor/mcp.json for you, with the rules file and six slash commands. Or add it by hand:
{
"mcpServers": {
"repomemory": {
"command": "npx",
"args": [
"-y",
"repomemory",
"serve"
]
}
}
}Then type /repomemory-analyze in Cursor chat — Cursor's own model fills .context/ through the MCP tools.