> Connect Cursor to Bilinc Cloud for hosted agent memory: recall before editing, commit verified outcomes and keep a history you can review.

Canonical page: https://bilinc.space/for/cursor

- [Connect](https://bilinc.space/mcp)
- Cursor

# Make Cursor sessions remember what matters.

Bilinc gives Cursor's agent project memory that survives tab and branch changes: it recalls the decisions you already made before it edits, and keeps what each session settled, with its history.

[Start free](https://bilinc.space/signup) [Cursor guide](https://bilinc.space/docs/cursor) [MCP tools](https://bilinc.space/docs/mcp-tools)

## Set it up.

Cursor runs the Bilinc MCP adapter from the `bilinc` Python package, which reads the key `bilinc login` saved.

- **Install the package and sign in.** One package gives you the Python SDK, the bilinc command and the MCP adapter. `bilinc login` opens your browser and saves the key on this machine.Terminal

```
pip install -U bilinc
bilinc login
```

- **Add Bilinc to Cursor.** In `~/.cursor/mcp.json`, or `.cursor/mcp.json` for one project. `bilinc mcp install` prints this block with the absolute path of the Python that has Bilinc, and the adapter reads the key saved by `bilinc login`, so the config carries no key. On a machine without a saved key, add `BILINC_API_KEY` to the server's environment.mcp.json

```
{
  "mcpServers": {
    "bilinc": {
      "command": "python3",
      "args": ["-m", "bilinc.cloud_mcp"]
    }
  }
}
```

- **Give the agent the memory contract.** Paste the contract below into your Cursor rules, so the agent recalls before editing and commits outcomes at the end.

## What it changes for Cursor.

Cursor's agent works from the files it can see and the chat in front of it. Switch branch or open a new tab and the reasons behind the code are gone: which library was ruled out, which endpoint is deprecated, what the last refactor deliberately left alone. With Bilinc connected, the agent recalls those decisions before it edits.
When a task is done, it commits a short outcome with how it was verified and what is still open. Each write keeps its source and its earlier versions, so you can read back how a decision changed instead of finding it overwritten.
The same memory is available from Python, the CLI and every other client you connect, so work started in Cursor can be picked up somewhere else.

## Things to ask.

Ask in your own words; the agent picks the Bilinc tool that fits.

- “Recall Bilinc for decisions about this module before you change it.”
- “Snapshot Bilinc before this migration so we can go back.”
- “List what changed in Bilinc since yesterday's snapshot.”
- “Commit a short outcome for this task with how you verified it and any caveats.”

### The memory contract

Paste this into the instructions Cursor reads, so it recalls before it acts and keeps only what is worth keeping.

Instructions for your agent

```
Before editing, recall Bilinc for relevant project decisions.
After completing the task, commit a short session outcome with verification and caveats.
Never store secrets in memory.
```

## The tools it gets.

The tools of the local adapter, as the tool reference lists them.

The tools of the Bilinc MCP adapter| Tool | What it does |
| `commit_mem` | Writes durable memory with key, value, memory type, importance, and provenance metadata. Returns an entry version you can reuse for optimistic concurrency. |
| `recall` | Retrieves prior state with query, profile, and limit. Smart retrieval is the profile argument, not a separate tool. |
| `revise` | Deliberately replaces a memory you already have. Returns memory_not_found rather than creating, so a correction stays distinguishable from an accidental overwrite. |
| `forget` | Destructive. Removes a memory from active recall. A reason is required and is written to the audit trail; the deleted value is never returned. |
| `status` | Reports the authenticated workspace, plan, limits, supported capabilities, and recall profiles. Read-only and never billed. |
| `snapshot` | Creates or lists project checkpoints. Create is metered; list is free. Neither returns the checkpoint contents. |
| `diff` | Compares a checkpoint against another checkpoint or current state. Free, and values are redacted unless explicitly requested. |
| `history` | Read-only and free. Returns one memory’s recorded changes, newest first, with the value before and after each change. Values from before the memory was forgotten are never returned. |
| `list_memories` | Read-only and free. Returns a page of stored memories ordered by key, with prefix, type, and updated-time filters and a cursor for the next page. |
| `confirm` | Records that an existing memory is still accurate without resending its value. The value stays as stored, its last-updated time moves to now, and history shows a confirmation. One write operation. |
| `rollback` | Destructive in execute mode. Preview is free and returns a short-lived confirmation token; execute needs that token and permanently discards everything changed since the checkpoint. |
| `dream_start` | Starts a dream pass and returns the candidate entries for your agent to review: up to 200 entries changed since the last finished dream, or in the last 7 days. Also on the hosted connector. |
| `dream_apply` | Destructive. Applies the agent's actions: revise to merge true duplicates, forget to retire stale entries, confirm to keep an entry, flag to leave an unclear case for a person. A dream forgets at most 30% of its candidates and at most 20 entries. Also on the hosted connector. |
| `dream_undo` | Undoes a dream's own changes in one step, for 7 days after it. An entry another writer changed since is reported as a conflict and kept. Also on the hosted connector. |
| `export_wiki` | Writes your memory as Obsidian-compatible Markdown into an absolute folder on your machine, the same export as bilinc wiki. Local adapter only; it refuses the home folder, system folders and hidden folders. Reads are not billed. |

[The tool reference](https://bilinc.space/docs/mcp-tools)

## Questions.

### Where does the Cursor config go?

In `~/.cursor/mcp.json` for every project, or `.cursor/mcp.json` inside one project. `bilinc mcp install` prints the block with the right Python path.

### Does the config need an API key?

No. The adapter reads the key that `bilinc login` saved on your machine. Only a machine without a saved key, such as CI, needs `BILINC_API_KEY` in the server's environment; keep the real key in a secret manager.

### Can I see what a memory said before?

Yes. history returns one memory's recorded changes, newest first, with the value before and after each change. revise deliberately replaces a memory you already have, and returns `memory_not_found` rather than creating one.

### How do I undo a bad session?

Take a snapshot before risky work. diff compares it with the current state, and rollback restores it: a free preview first, then an explicit execute. Rollback works on checkpoints, not on single keys.

### What should the agent never store?

Secrets, API keys, cookies and raw tokens. The contract says so, and memory should hold decisions and outcomes, not credentials.

## Bilinc connects the same way everywhere.

One workspace, every client. The memory guides and comparisons answer the questions underneath.

[Claude CodeThe connector or the local adapter, from the terminal](https://bilinc.space/for/claude-code) [CodexThe hosted server with codex mcp add, or config.toml](https://bilinc.space/for/codex) [ChatGPTA custom MCP server with one URL](https://bilinc.space/for/chatgpt) [Claude DesktopA custom connector, also on claude.ai and mobile](https://bilinc.space/for/claude-desktop) [VS CodeThe local adapter in .vscode/mcp.json](https://bilinc.space/for/vscode) [Gemini CLIThe local adapter in settings.json](https://bilinc.space/for/gemini-cli) [Devin DesktopThe local adapter in mcp_config.json, or devin mcp add](https://bilinc.space/for/devin-desktop) [opencodeThe local adapter in its MCP settings](https://bilinc.space/for/opencode) [Hermes-AgentThe local adapter over stdio](https://bilinc.space/for/hermes-agent) [Any MCP clientThe generic MCP server setup](https://bilinc.space/for/mcp) [Coding agentsThe memory contract for repo-aware agents](https://bilinc.space/for/coding-agents) [Agent memory guidesWhat agent memory is, and where vector search stops](https://bilinc.space/answers) [CompareBilinc next to other memory layers](https://bilinc.space/compare)
