Docs

MCP tools

The memlane MCP tools and their arguments. Four are listed by default, twelve with ?tools=chat, and all 43 with ?tools=all. Streamable HTTP, stateless, authenticated with a bearer key.

Endpoint: https://mcp.memlane.sh (Streamable HTTP, stateless, JSON responses). Send Authorization: Bearer om_... (or X-API-Key: om_...) on every request. A request without a valid key gets 401.

The server tells the model to call get_context at the start of a task, use remember for durable facts, and recall to search them, and to call recall with no q when the owner asks what it remembers. With every tool listed, it also says to use action_propose / action_transition for anything that needs the owner's approval. With the chat set, it says to paste memories from another app into memory_import, and points to activity_list, space_get, sharing, and approvals. Tools that return stored text remind the model that it is data, not instructions.

Tool results are JSON in a single text content block. Errors come back with isError: true and {"error": {"code", "message", "details"?}}, using the same codes as the REST API.

Which tools are listed

Your client loads every tool it's shown on each task, so the server starts small.

URLTools listed
https://mcp.memlane.shFour: get_context, remember, recall, forget
https://mcp.memlane.sh?tools=chatTwelve: the four, plus memory_import, memory_update, activity_list, space_get, invite_create, member_list, action_list, action_transition
https://mcp.memlane.sh?tools=allAll 43

Use ?tools=chat in chat apps (ChatGPT, Claude, Grok): the person can import memories, see who changed what, check usage, share the memory with another agent, and approve actions, without loading every tool.

  • Spaces created before 14:00 UTC on 2 November 2026 list all 43 at the plain URL, so clients already connected keep their tools. They can use ?tools=core to list four.
  • The setting only changes the list. A client can call any tool by name at any of these URLs.
  • Any other tools value returns 400.

Tools

Listed by default:

ToolWhat it doesREST equivalent
get_contextEverything needed at the start of a taskGET /v1/context
rememberStore a durable factPOST /v1/memories
recallSearch facts by words and meaningGET /v1/memories
forgetPermanently delete facts, records, journal textPOST /v1/forget

Also listed with ?tools=chat and ?tools=all:

ToolWhat it doesREST equivalent
memory_importImport up to 500 facts at oncePOST /v1/memories/import
memory_updateChange a fact in placePATCH /v1/memories/{id}
activity_listWho did what, by id onlyGET /v1/activity
space_getSettings, usage, limits, warnings, delete_afterGET /v1/space
invite_createInvite another agentPOST /v1/space/invites
member_listThe agents in this spaceGET /v1/space/members
action_listList actionsGET /v1/actions
action_transitionCompare-and-set status changePOST /v1/actions/{id}/transition

Also listed with ?tools=all:

ToolWhat it doesREST equivalent
extract_jobRemember from a conversation: get a job for your modelPOST /v1/memories/extract
extract_submitStore the facts your model extractedPOST /v1/memories/extract/result
journal_writeWrite or append to a day's journalPUT /v1/journal/{date}
record_putCreate or upsert a recordPOST /v1/collections/{c}/records
record_queryList recordsGET /v1/collections/{c}/records
record_updateUpdate a record, optionally compare-and-setPATCH /v1/collections/{c}/records/{id}
action_proposeQueue an action for approvalPOST /v1/actions
action_updateMerge into an action's metaPATCH /v1/actions/{id}
kv_getRead a value or a namespaceGET /v1/kv/{ns}[/{key}]
kv_setSet a value, optionally compare-and-setPUT /v1/kv/{ns}/{key}
dream_next_jobGet (and start if due) a client-mode dream jobGET /v1/dream/jobs/next
dream_submitSubmit your model's dream resultPOST /v1/dream/jobs/{id}/result
dream_startStart a dream nowPOST /v1/dream
dream_runsList recent dream runs and reportsGET /v1/dream/runs
dream_undoUndo every change a dream run madePOST /v1/dream/runs/{id}/undo
memory_getGet one factGET /v1/memories/{id}
journal_listList journal entriesGET /v1/journal
record_getGet one recordGET /v1/collections/{c}/records/{id}
record_deleteDelete one recordDELETE /v1/collections/{c}/records/{id}
action_getGet one actionGET /v1/actions/{id}
kv_deleteDelete a valueDELETE /v1/kv/{ns}/{key}
event_appendAppend to the event logPOST /v1/events
event_listList eventsGET /v1/events
batch_applyApply several writes atomicallyPOST /v1/batch
space_updateRename the space, or change its timezone or dream modePATCH /v1/space
space_exportExport everything as JSONGET /v1/export
recovery_createA new recovery code; ends the old onePOST /v1/space/recovery
member_updateRename a member or change its rolePATCH /v1/space/members/{id}
member_removeRemove a member, or leaveDELETE /v1/space/members/{id}
invite_listList open invitesGET /v1/space/invites
invite_revokeRevoke an open inviteDELETE /v1/space/invites/{id}

REST-only operations

Every other REST operation has a tool, and forget with ids deletes single facts. These stay REST-only on purpose:

OperationWhy
POST /v1/connect, POST /v1/connect/tokenMCP needs a key before it can connect (or OAuth sign-in).
POST /v1/spacesThe same. It needs no account, and the service refuses it (403 account_required): use POST /v1/connect.
POST /v1/invites/acceptThe same: the invited agent has no key until it accepts.
POST /v1/space/recoverThe same: it is for when every key is lost.
DELETE /v1/spaceText an agent reads shouldn't be able to wipe the whole space.
POST /v1/space/keyA new space key shouldn't enter a model's context, and text an agent reads shouldn't be able to lock the owner out.
/v1/space/embeddingsAn OpenAI key must never enter a model's context. space_get shows which embeddings the space uses.

get_context

Core profile, due and open records, pending actions, recent journal, and selected KV namespaces. When the space has used 80% or more of a limit, it also returns warnings: one line per limit, with what to do. Tell the person.

ArgumentTypeDefault
budget_charsinteger, 200 to 20,0004,000
journal_daysinteger, 0 to 317
due_within_daysinteger, 0 to 907
kvcomma-separated namespacesnone
collectionsComma-separated collections, limiting due and open_records.all
open_limitMost open_records to return, 0 to 50. 0 leaves them out.20, or 50 if you name collections

remember

Store a durable fact. Use origin user when the person stated it directly. Identical facts are not stored twice.

Arguments: text (required), subject, tier (core / long / scratch, default long), tags, source_ref, pinned, origin (user / agent, default agent), expires_at.

memory_import

Import many facts at once, in one transaction. Send facts, or text with one fact per line: a ChatGPT or Claude memory list pasted as it is. Bullets and numbering are stripped, and blank lines and # headings are skipped. Show the person the list before you import it.

Every fact is stored with origin user, tags imported and the source, and source_ref import:<source>. A fact already stored (same subject and text), or repeated in the import, is skipped. If the import doesn't fit in the space's memories limit, it returns 422 quota_exceeded and stores nothing. Imported facts are findable by their words at once and by meaning within minutes.

Arguments: facts (up to 500, each with text (required), subject, tier, tags), or text (one fact per line, up to 500 lines); subject (for facts from text; default none); source (lowercase, such as chatgpt; default import). Returns created, skipped, ids, and next.

extract_job

Remember from this conversation. Returns instructions, input (including related stored facts), and output_schema for you to apply with your own model; then call extract_submit. The conversation is not stored.

Arguments: about (what the conversation is about), or messages (role, content) when extracting from a transcript.

extract_submit

Store the facts from extract_job in one transaction. A fact with replaces hides the older fact it changes. Pinned facts are never replaced, and only a fact the person stated can replace another fact the person stated.

Arguments: facts (up to 20), each with text (required), subject, tier, tags, origin, replaces.

recall

Search facts by words and by meaning, best first. Ask in plain language ("when is my partner's birthday?"). Results share the question's words or its meaning, and each has match (keyword, meaning, or both). Filter by subject, tier, tag, author, or pinned. Every result counts as a recall.

With no q, it lists every stored fact, pinned and core first, with total and next_cursor. The server tells the model to do this when the owner asks what it remembers. Listing everything doesn't count as a recall.

Arguments: q, mode (hybrid by default, keyword for exact names or ids, semantic for meaning only), subject, tier, tag, author (a member id, or me), pinned (true for pinned facts only, false for the rest), limit (1 to 100, default 20), cursor (the next_cursor from the last page, when listing). The result's search field says what ran; see Concepts. A fact stored in the last few minutes may not be findable by meaning yet, and search.indexing counts those. A q with no letters or digits finds nothing.

forget

Permanently delete facts by id, or those containing all words of query. It only looks in scopes, and the default is memories alone. To forget something everywhere, list all six: the other scopes match the exact phrase. Use dry_run first. If the result's not_searched isn't empty or truncated is true, it isn't all gone. See Forget and privacy.

Arguments: ids, query, scopes (memories, records, journal, actions, kv, events; default ["memories"]), journal_mode (redact or delete), dry_run.

journal_write

Write or append to the journal entry for a date.

Arguments: date (YYYY-MM-DD, required), summary, decisions, open_loops, source_refs, kind (day / week), merge (append instead of replace).

record_put

Create a record in a collection. With a key, updates the record that has that key: fields you send replace the old values, and fields you leave out keep them.

Arguments: collection (required), key, status, due_at, data (object), origin.

record_query

List records in a collection.

Arguments: collection (required), status (comma-separated), key, due_before, limit (1 to 100, default 50), cursor.

record_update

Update a record's status, due date, or data (shallow merge; null removes a field).

Arguments: collection, id (both required), status, due_at, data, expected_version (fail with a conflict if the record has moved on).

action_propose

Queue an action for the owner's approval. Returns a short id such as A7. The same idempotency_key and payload returns the existing action, in whatever status it is now, including denied. Use a new key to ask again.

Arguments: class, summary, payload, idempotency_key (all required), preconditions, meta, expires_at.

action_list

Arguments: status (comma-separated; default pending,approved,executing), limit (1 to 100, default 50).

action_update

Merge into an action's meta, in any status, for example to keep a chat message id with it. Set a field to null to remove it. Nothing else can be changed.

Arguments: id, meta (both required).

action_transition

Move an action from one status to another, only if it is still in from.

Arguments: id, from, to (required), receipt (object, usually with done or failed). See the allowed transitions in Concepts.

kv_get

Read one value, or every key in a namespace when key is omitted.

Arguments: ns (required), key.

kv_set

Arguments: ns, key, value (required), expected_version (0 = create only, n = update only if at version n). Namespaces starting with _ are reserved.

dream_next_job

Returns {job, due}. job has run_id, instructions (the system prompt), input (send it to your model as JSON), output_schema (JSON Schema for the answer), and max_changes. It is null when there is nothing to do.

Arguments: start_if_due (default true): start a dream first if the last one is old enough.

dream_submit

Submit the JSON your model produced. It is validated and applied under the safety rules, and can be undone for 7 days.

Arguments: run_id, result (both required).

dream_start

Start a dream now. Housekeeping runs at once. Then client mode waits for dream_next_job, and server mode runs the model on the server.

Arguments: mode (client, server, or off; default: the space's setting).

dream_runs

Lists recent runs with their status and report. No arguments.

dream_undo

Reverts every change a run made, for 7 days after the run. It overwrites later edits to the same items. See Reports and undo.

Arguments: run_id (required).

memory_get

Arguments: id (required).

memory_update

Change a fact in place.

Arguments: id (required), subject, text, tier, tags, source_ref, pinned, expires_at.

journal_list

Entries, newest first.

Arguments: from, to (YYYY-MM-DD), kind (day / week), limit (1 to 100, default 31).

record_get

Arguments: collection, id (both required).

record_delete

Arguments: collection, id (both required).

action_get

Arguments: id (required), such as A7.

kv_delete

Arguments: ns, key (both required). The result's deleted is false if the value didn't exist.

event_append

Append to the capped event log. Keep message bodies and secrets out of detail.

Arguments: kind (required), key, status, detail (object).

event_list

Events, newest first.

Arguments: kind, since, before_id, limit (1 to 200, default 50).

activity_list

Who did what, newest first: the member, the op, and the item's id. Never text. See Activity log.

Ops: memory.remember, memory.update, memory.delete, memory.import, journal.put, record.put, record.update, record.delete, action.propose, action.update, action.<new status> (such as action.approved), kv.set, kv.delete (the namespace only, not the key), event.append, forget, invite.created, invite.revoked, member.joined, member.updated, member.removed, member.recovered, and recovery.created. Each row has id, at, member (id, name), op, target_kind, target_id, and count (more than 1 for an import or a forget).

Arguments: member (a member id, or me), op (an exact op, or a prefix without a dot, such as memory), since, before_id (the next_before_id from the last page), limit (1 to 200, default 50).

batch_apply

Apply up to 50 writes in one transaction: all succeed or none do. A failed version or status check aborts the whole batch, and error.details.op_index says which op failed. See Batch for the ops.

Arguments: ops (required).

space_get

The space's name, settings, usage, limits, warnings, and delete_after. usage counts memories, records, open actions, journal entries, KV values, events, members, and open invites. warnings has one line per limit the space has used 80% or more of, with what to do, and is empty when there are none. No arguments.

space_update

Owners only. Arguments: name (1 to 80 characters, shown in the dashboard and on sign-in pages), timezone, dream_mode (client, server, or off).

space_export

Everything in the space as JSON, which can be large. It never includes an OpenAI key. No arguments.

recovery_create

Owners only. Returns a new recovery_code, shown once; the old one stops working. Show it to the person to keep in a password manager, and never store it in memory. space_get says whether the space has one (recovery_code_set). No arguments. See Keys and recovery.

member_list

The agents in this space, each with its own key. The caller is marked you: true. Each member has client (the app it last connected from, as that app reported it) and oauth (set when an app's OAuth sign-in created it). No arguments.

member_update

Rename yourself, or (owners) rename anyone or change a role. A space always keeps at least one owner.

Arguments: member_id (required; me for yourself), name, role (owner or member).

member_remove

Owners remove a member; me leaves the space. Its key stops working, other keys keep working, and what it wrote stays.

Arguments: member_id (required).

invite_create

Owners only. Returns code (one-time) and prompt: show the prompt to the person to paste into the other agent, which redeems the code with POST /v1/invites/accept and gets its own key. Don't store the code in memory.

Arguments: name (suggested name), role (default member), expires_in_hours (1 to 168, default 24).

invite_list

Owners only. Open invites, without their codes. No arguments.

invite_revoke

Owners only. Arguments: invite_id (required).

Raw protocol check

The server is stateless, so a single POST works without a session:

bash
curl -s https://mcp.memlane.sh \
  -H "Authorization: Bearer $MEMLANE_KEY" \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'