Guides
Use the same private memory across AI tools with MCP: verify two clients
Verify an MCP memory server across two AI clients by saving in one, retrieving in a fresh second session, and comparing the ID and Source Receipt.
To use the same private memory across AI tools with MCP, save a harmless Memory in client A, retrieve it in a fresh client B session, and compare its ID, wording and Source Receipt. Connect both to the same store, account and scope. Cairn.ink Memory's Cloud installer provides automatic sharing for Claude Code and Codex.
How can I verify an MCP memory server works across two AI clients?
Test a real write followed by a real read. Choose a distinctive fictional subject, such as the Harbor demo's review-summary preference. Keep the answer outside client B's conversation, and record the original tool result yourself. This makes the test about retrieving saved context rather than repeating text already present in a chat.
The official MCP architecture, accessed 2026-11-12, describes clients connecting to servers that expose tools. For this workflow, the shared server stores private Memory and each client asks it for context. Your existing conversation history stays with the application where you created it.
Use personal scope for the first test. It follows the intended account across projects, so you can establish the shared storage path before testing project matching. After personal retrieval works, repeat with project-private context using the identity connected by the installer. Write down the mode and the clients tested alongside the result.
How do I connect the two clients to the same store?
For Claude Code and Codex, begin with the released installer:
npx @cairn-ink/memory setup
Choose Cloud. Approve the detected tools, fully close both clients and wait for background work to finish before confirming shared memory. Complete the displayed browser authorization. One browser grant connects a first paired installation, and a memory ID links the same project across tools. Setup retains existing IDs and asks you to choose if two independent identities already exist.
Reopen the clients after setup. In Codex, review and allow the four Cairn hooks in /hooks. Cloud integrates automatic capture and prompt recall with both clients. An explicit tool test still gives you a useful, repeatable baseline for checking the shared store.
Cursor and other supported MCP apps use their client-specific connection flow and explicit hosted tools. Connect each to the same Cairn account. The release README documents hosted connection alternatives. For Cursor, use the hosted MCP connection to https://cairn.ink/api/mcp and complete its browser sign-in. Keep the chosen account visible in your own test notes so an account mismatch is easy to spot later.
What should client A save?
In a new conversation in A, ask for an explicit save:
Use remember_memory to save this privately in personal scope:
For the fictional Harbor demo, I prefer review summaries to begin with the focused test result.
Show the saved Memory ID and Source Receipt from the tool response.
Inspect the actual remember_memory response. A successful save provides an identifier and Source Receipt, the source excerpt and client metadata explaining why the Memory exists. Keep those fields and the saved wording in a temporary comparison note. Use the response's actual identifier rather than inventing a sample ID in the next step.
Wait for the save result before moving to B. If saving fails, investigate the failure in A first. Testing retrieval of an unconfirmed save makes it hard to distinguish a write problem from a read problem. Use one synthetic preference at a time so you can recognize a result even if several similar personal preferences already exist.
What should client B retrieve in a fresh session?
Start a new conversation in B under the intended account. Ask a narrow question that names the subject, without including the preference itself:
Use recall_memory to find my review-summary preference for the fictional Harbor demo.
Show the Memory ID, wording and Source Receipt returned by the tool.
If there is no matching result, say so.
Compare B's result with your saved record from A. Check all three parts: identifier, content and source. A useful result points back to the same saved Memory and explains the preference's origin. Keep the raw tool outcome distinct from the assistant's prose summary when judging the test.
If both clients will save context in normal work, repeat in the other direction with a different synthetic subject. Then repeat for project-private context in the same project, using the setup-linked opaque project identity. Matching project names are descriptive labels; use the configured identity to establish the scope.
How do I check automatic behavior separately?
After the explicit test succeeds, mention a new harmless preference in ordinary conversation in A. Let its turn and background work complete, then ask about that subject in a fresh B session. Inspect the actual captured and recalled context. Record whether each side used automatic integration or an explicit tool call.
For a Claude Code and Codex cloud pair, this checks the hooks as well as the shared store. For Cursor or another explicit MCP client, ask it to use the recall tool. Use a simple result table for your own observations:
| Save path | Read path | Evidence to keep |
|---|---|---|
| A explicit save | B explicit recall | Saved and returned ID, wording, receipt |
| B explicit save | A explicit recall | A second synthetic record and its responses |
| A ordinary conversation | B supported automatic recall | Actual captured context and returned source |
| Project-private save | Other client, same project | Linked identity and matching returned Memory |
Can I run this check on one computer without an account?
Choose Local in setup, or use the direct command:
npx @cairn-ink/memory setup --local
npx @cairn-ink/memory status
Local registers cairn-local for Claude Code and Codex with a shared database and owner. The normal database path is ~/.cairn-memory/data/memory.sqlite. Local is free and needs no account: it automatically saves Claude Code conversations on Linux/WSL/macOS and Codex conversations on Linux/WSL as plaintext on this computer, without cross-computer sync; memory saves and recall are on request. Capture can be disabled. Save a synthetic record in A and inspect it from B with inspect_memory for an initial persistence check. Semantic recall needs a configured model key. If the local server can see an OPENAI_API_KEY, memories and search text go to OpenAI.
What should I check if the comparison fails?
Recall can miss a saved Memory; check server, account, query and scope before repeating the test. status reports local setup state rather than proving a live service or working hooks. Local has no cross-computer sync, and a manual hosted MCP connection provides explicit tools. A Source Receipt explains origin, so compare remembered technical claims with maintained project sources before using them.
Private Memory remains owned by the person who saved it. Team decisions belong in the intended collection's reviewed Knowledge Cards, with publication handled separately. Read the privacy controls before testing automatic capture with real work.
Use the connection guide to connect your chosen clients.
Frequently asked questions
- How do I verify an MCP memory server across two clients?
- Save a harmless, distinctive Memory in client A. In a fresh client B session, call recall_memory without pasting the answer. Compare the returned ID, wording and Source Receipt with A’s save result.
- Does Cairn.ink Memory automatically connect Claude Code and Codex?
- Run the installer and choose Cloud. Approve both detected tools, close them and complete the browser grant. The paired setup provides automatic capture and prompt recall with a linked project identity.
- Can Cursor take part in this check?
- Yes. Connect Cursor to the same Cairn account through the documented hosted MCP path, then explicitly call the save and recall tools.
- Is the result team knowledge?
- The saved Memory remains private to its owner. A Knowledge Card has a separate contribution, review and publication lifecycle.