cursor-agent CLI. The connect path wires MCP only; capture is then tool-driven, steered by a project rule the connect command installs.
Full plugin
1
Start agentmemory
2
Install the plugin
From the Cursor Marketplace once the listing is live, or point Cursor at a checkout today: clone the repo, then Cursor Settings → Plugins → install from the local directory. The manifest lives at
.cursor-plugin/plugin.json.3
Configure variables (optional)
AGENTMEMORY_URL and AGENTMEMORY_SECRET are declared as plugin variables and managed in Cursor’s plugin dashboard (Plugins → Configure). Leave them unset for a keyless localhost daemon.4
Verify
Run any agent turn, then check the viewer at
http://localhost:3113 — the session, your prompt, and each tool call should appear as observations.What the plugin registers
preCompact is deliberately not wired: Cursor’s output contract for that event cannot carry injected context, so the hook would only log failures.
Cursor’s CLI print mode (
cursor-agent -p) never fires the prompt-submit event, so the plugin backfills user prompts from the session transcript when the session ends. Content dedup drops the re-post in GUI sessions where the live hook already captured the prompt — capture behaves the same on both surfaces.MCP only
1
Wire MCP
~/.cursor/, backs up mcp.json, merges the entry, and verifies it after writing.2
Restart Cursor
Restart Cursor, then check Settings, MCP: agentmemory should list its tools.
memory_recall and memory_save itself, steered by the guideline rule connect installs. Prefer the plugin.
What connect writes
~/.cursor/mcp.json