MCP toolsCursor

Cursor

With the MCP server registered, Cursor’s agent can store decisions and conventions about a codebase and recall them in later sessions.

You need a running Mnemosyne server and an API key. The quickstart starts one.

Install

export MNEMO_URL=http://localhost:3939
export MNEMO_KEY=mns_live_...
npx -y @mnemo-ai/cli install

The command acts on Cursor when ~/.cursor exists. It writes three things there:

  • mcp.json: adds a mnemosyne entry under mcpServers and keeps the servers already listed.
  • hooks.json: merges two hooks and keeps the hooks of other tools. One injects memory context when a session starts, the other closes the session when it ends.
  • AGENTS.md: usage instructions for the agent. An existing ~/.cursor/AGENTS.md that is not Mnemosyne’s is kept as it is, and so is a symlink.

Whole-conversation capture (--capture) is not available for Cursor. It exists for Claude Code, Codex and OpenCode only.

Or configure by hand

Save this as ~/.cursor/mcp.json:

mcp.json
{
  "mcpServers": {
    "mnemosyne": {
      "command": "npx",
      "args": ["-y", "@mnemo-ai/mcp"],
      "env": {
        "MNEMO_URL": "http://localhost:3939",
        "MNEMO_KEY": "mns_live_..."
      }
    }
  }
}

MNEMO_URL and MNEMO_KEY are required. The optional variables are listed in the MCP overview.

Verify

In an agent chat, ask:

“What MCP tools do you have available?”

The answer lists the Mnemosyne tools, 37 in total, including memory_recall and memory_remember. If it does not, restart Cursor.

One workspace per repo

A workspace API key is bound to one workspace. To keep each codebase in its own workspace, give each repo its own MNEMO_KEY in a project-level .cursor/mcp.json.

With a user token, the MCP server picks the workspace from MNEMO_WORKSPACE_ID, or from the workspaceId field of the nearest .mnemo.json between the working directory and the Git root.

💡

The local Docker stack is for trying Mnemosyne out. It connects to Postgres as the database owner, which bypasses row-level security, so workspaces are not isolated from each other there. The production overlay turns the isolation on.