Repomemory MCP Server

Your codebase never forgets. Persistent, structured memory for AI coding agents.

Local serverstdioGo

What is the Repomemory MCP server?

Your codebase never forgets. Persistent, structured memory for AI coding agents. Exposed over MCP by the repomemory mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

AI agents lose context every session. repomemory fixes that — one command creates a persistent, searchable knowledge base that any AI tool can read, search, and write to.

Its toolset

Everything the assistant can do here goes through one of these:

  • Cursor — MCP server + rules + 6 slash commands
  • Windsurf — .windsurfrules
  • Cline — .clinerules
  • Aider — .aider.conf.yml
  • Continue — .continue/rules/

Adding it to your client

repomemory on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration

You will need 6 environment variables: ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY, GROK_API_KEY, XAI_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

When to reach for it

Plenty of knowledge and memory servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Repomemory's toolset — Cursor, Windsurf, Cline and 2 more — is a fair guide to whether it matches your workflow. It is maintained by danielguru; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the repomemory mcp server does with a few real requests.

Available tools

ToolWhat it does
CursorMCP server + rules + 6 slash commands
Windsurf.windsurfrules
Cline.clinerules
Aider.aider.conf.yml
Continue.continue/rules/

How to install the Repomemory MCP server

{
  "mcpServers": {
    "repomemory": {
      "command": "npx",
      "args": ["-y", "repomemory"],
      "env": {
        "ANTHROPIC_API_KEY": "your-value",
        "OPENAI_API_KEY": "your-value",
        "GEMINI_API_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value",
        "GROK_API_KEY": "your-value",
        "XAI_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
GEMINI_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes
GROK_API_KEYCredential the server authenticates with.Yes
XAI_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Repomemory to Cursor.
  • Use Repomemory to Windsurf.
  • Use Repomemory to Cline.

Frequently asked questions

It connects Repomemory to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Cursor, Windsurf, Cline, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Repomemory directly.