AgentVault

AgentVault is shared long-term memory for AI agents. Claude, GPT, Gemini, open models, Claude Code, Cursor and custom agents read and write one memory over MCP (Streamable HTTP), REST or SDKs. Every memory records which agent, model and app wrote it, and new facts supersede old ones with history kept.

Hosted MCP Server

npx add-mcp 'https://api.useagentvault.com/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

How it works

The API serves MCP over Streamable HTTP at /mcp. Authenticate with an API key; the client’s name (for example claude-code) is recorded as the writer of every memory it saves.

Tools

remember · recall · search · list_memories · get_memory · update_memory · forget · list_spaces · create_space · import_memories · facts · briefing · learn_rule. The server also tells the agent to recall at the start of a task and to remember durable facts, never secrets.

Knowledge graph

remember takes optional facts as subject, predicate and object, for example repo:acme · deploys_to · Cloud Run. When a new value replaces an old one, AgentVault retires the old fact and tells the agent what changed, so nothing stale gets recalled. Use many: true for relations with several values, and confidence: "inferred" for an agent’s own guesses, which always rank below stated facts. The facts tool answers “what is true now”, “what uses X” and, with as_of, “what was true then”. See them all in the console under Knowledge.

Coding agents: rules and briefings

learn_rule saves how code is written in a repo, scoped to paths, for example payments/ · “Never retry a charge without an idempotency key”. Saving the same rule again makes it stronger. Before changing code, an agent calls briefing with the repo and the files it will touch, and gets only the rules for those files, must-follow first, plus related team knowledge. The GitHub Action in the API repo (integrations/github-action) learns rules from PR review comments automatically.

Claude app (claude.ai and Claude Desktop)

Settings → Connectors → Add custom connector. Name it AgentVault and paste your connector URL. It carries your API key, so treat it like a password; revoke the key in the console to cut access.

https://api.useagentvault.com/mcp/$AGENTVAULT_API_KEY

Claude Code

claude mcp add --transport http agentvault https://api.useagentvault.com/mcp \
  --header "Authorization: Bearer $AGENTVAULT_API_KEY"

Claude Desktop

Settings → Developer → Edit config (claude_desktop_config.json):

{
  "mcpServers": {
    "agentvault": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://api.useagentvault.com/mcp", "--header", "Authorization: Bearer $AGENTVAULT_API_KEY"]
    }
  }
}

Cursor and Windsurf

~/.cursor/mcp.json or ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "agentvault": {
      "url": "https://api.useagentvault.com/mcp",
      "headers": { "Authorization": "Bearer $AGENTVAULT_API_KEY" }
    }
  }
}

VS Code / GitHub Copilot

{
  "servers": {
    "agentvault": {
      "type": "http",
      "url": "https://api.useagentvault.com/mcp",
      "headers": { "Authorization": "Bearer $AGENTVAULT_API_KEY" }
    }
  }
}

Step-by-step guides: Give Claude Code long-term memory, and share memory between Claude and Cursor.