remember, recall, and forget against your Cognee Cloud tenant. For automatic capture and recall instead of on-request tool calls, use the Cognee memory plugin.
1. Add Cognee to your MCP config
Cursor reads MCP servers from~/.cursor/mcp.json. Add a cognee entry that points at your tenant, using your API Base URL and a key from the API Keys page:
This is the stdio form the in-product Integrations page generates. Cognee runs via
uvx (requires uv) — no separate install of Cognee itself. You can also open the config from Settings → Tools & MCP → + Add MCP Server.If you already use other MCP servers in Cursor, merge the
cognee entry into your existing mcpServers block instead of replacing the file.2. Verify
In Settings → Tools & MCP, restart Cursor (or use the toggle to refresh the connection). You should see Cognee’s tools (remember, recall, forget) listed, confirming the server is connected.
3. Use it
- Open the Chat panel and make sure Agent mode is selected.
- Issue prompts that use Cognee tools:
- “Remember this file in Cognee”
- “Recall authentication logic from Cognee”
- “What do you know from cognee?”
Prefer a dedicated in-editor memory UI with citations? Cursor is built on VS Code, so the Cognee VS Code extension also runs in Cursor.
Alternative: the Cognee memory plugin
Thecognee-memory Cursor plugin (version 0.1.2) works through Cursor hooks instead of MCP. It captures your prompts, tool traces, and answers into session memory, injects relevant memory at session start and on each turn, and syncs the session into your knowledge graph when the conversation ends. It also ships the memory, codebase, setup, cognee-forget, cognee-switch-datasets, and local-ui skills. The hooks need Python 3.9+ on PATH as python3 (or python). In cloud mode the plugin installs no local Cognee runtime.
1
Install the plugin
The cognee-integrations repository is a Cursor marketplace that lists
cognee-memory. Open Customize in the Cursor sidebar, add https://github.com/topoteretes/cognee-integrations as a marketplace, and install cognee-memory from it. This works on a personal account. On Teams/Enterprise, an admin can add it for the whole team instead under Dashboard → Plugins & MCPs → Add Marketplace → Import from Repo. To install it locally instead, copy the plugin folder into ~/.cursor/plugins/local/. Cursor ignores symlinks there.2
Turn on third-party hooks
Cursor runs a plugin’s hooks only when Settings → Agents → Third-Party Imports → “Include Third-Party Plugins, Skills, and Other Configs” is on. With it off, the skills still work but nothing is captured or recalled automatically. Turn it on, then run Developer: Reload Window.
3
Point it at Cognee Cloud
Add your tenant URL and an API key to Setting
~/.cognee/.env. This file is shared with the Claude Code and Codex plugins. Cursor’s hooks inherit the Cursor app’s environment, not your terminal’s, so put the values in this file instead of exporting them in a shell:COGNEE_BASE_URL selects cloud mode. COGNEE_BACKEND=local|cloud pins the mode for every Cognee plugin, and COGNEE_CURSOR_BACKEND pins it for this plugin only. Memory is saved to the agent_sessions dataset unless COGNEE_PLUGIN_DATASET names another one. That setting only chooses where saves go, not where recall looks.Graph recall is auto by default. The plugin names no dataset, and the server picks the readable dataset(s) most likely to hold the answer. If it can’t narrow them down, or the picked datasets return nothing, it searches every readable dataset. Routing needs a cognee 1.6.6 server; an older server always searches every readable dataset. To restrict recall to the session’s dataset, set COGNEE_PLUGIN_RECALL_MODE=pinned in the same file. Within a session, the cognee-switch-datasets skill can pin recall to the active dataset or set it back to auto, and switching to another dataset restricts recall to that one.Text inside <private>…</private> is replaced with [private] before the plugin logs, stores, or sends it. This applies to both automatic capture and explicit remember, and no setting turns it off. A file saved with cognee-remember.sh --file is uploaded unchanged.4
Verify
Open a new agent conversation and have it run a tool. Then check
~/.cognee-plugin/cursor/hook.log, which should show trace_stored after tool calls and stop_stored after an answer.Full MCP guide
Local and Docker transports, and troubleshooting
Cloud MCP
How MCP clients connect to Cognee Cloud
Sessions
Inspect what Cursor stored in your live Sessions