MemWal exposes a Model Context Protocol (MCP) server so MCP-aware clients can read from and write to your encrypted memory. Use it when you want Cursor, Claude Desktop, Claude Code, Codex, Antigravity, or any other MCP client to call MemWal directly from an agent workflow — without writing custom integration code.Documentation Index
Fetch the complete documentation index at: https://docs.memwal.ai/llms.txt
Use this file to discover all available pages before exploring further.
Features
Six Built-In Tools
memwal_remember, memwal_recall, memwal_analyze, memwal_restore, memwal_login, memwal_logoutInline Browser Login
Agents call
memwal_login to open a browser sign-in — no separate CLI step, no client restartTwo Transports
Streamable HTTP for remote MCP clients, or stdio package (
npx) for local-command clientsEncrypted & User-Owned
SEAL-encrypted, stored on Walrus, tied to your delegate key — you own the data
Cross-Client Memory
Memories saved from Cursor surface in Claude Desktop, Codex, and vice versa — one MemWal account, every client
Environment Presets
--prod / --staging / --dev / --local flags switch networks without editing client configsWhen to use this
- You want an AI client to call MemWal directly — no custom SDK integration code in your app
- You need the agent to remember across conversations and sessions
- You’re running multiple MCP clients and want all of them to share one memory store
- You need encrypted, user-owned memory instead of platform-managed storage
Supported clients
The package is designed first for MCP hosts that run local commands:- Cursor
- Claude Desktop
- Claude Code
- Codex
- Antigravity
Get started
Quick Start
Install the package, sign in with your wallet, wire your client, and run your first tool call
How It Works
Auth-required mode, inline browser login, local credential storage, and the stdio bridge
Reference
All six tools, CLI flags, environment presets, transport routes, and self-hosting notes
Changelog
Release history for the
@mysten-incubation/memwal-mcp packageSource Code
Browse the
@mysten-incubation/memwal-mcp package on GitHubMemWal Dashboard
Manage delegate keys, view storage, and revoke connected clients
What happens on the client machine
The MCP package is not just a thin HTTP wrapper.- It checks for
~/.memwal/credentials.json. - If the file is missing, it starts in an auth-required mode instead of crashing the MCP host.
- In that mode the agent can still call
memwal_logininline. - After wallet approval, the package writes credentials locally and future MemWal tool calls succeed without reconfiguring the client.
- Once signed in, the package bridges local stdio MCP traffic to the relayer and keeps
memwal_loginandmemwal_logoutlocal-only.
Why use the package instead of raw HTTP
- Most MCP hosts support local
command + argsservers before they support remote auth UX cleanly. - The package can open the browser flow, save credentials, and recover from missing auth inline.
- It keeps bearer credentials out of the MCP client config in the common stdio path.
Default memory namespace
Memory tools take an optionalnamespace so you can keep, say, work and
personal memories separate. Instead of having the agent pass it on every
call, pin a default once in your client config — the package fills it in
whenever the agent omits one.
Cursor (~/.cursor/mcp.json):
claude_desktop_config.json) — via env var:
namespace from the agent always wins over the
configured default. If neither a flag/env default nor a per-call value is
set, the relayer applies its own "default" namespace. See
Reference for the full precedence rules
and memwal_restore behavior.
What the MCP package adds
Compared with wiring a raw HTTP MCP endpoint by hand, the package adds a few important runtime behaviors:- First-run recovery: when credentials are missing, the MCP host still gets a healthy server plus
memwal_login - Local session tools:
memwal_loginandmemwal_logoutare handled on the client machine instead of forwarded upstream - Automatic tool surfacing: the package injects local session tools alongside the relayer-backed memory tools
- Session resilience: the stdio bridge reconnects to the relayer if the underlying SSE session is dropped
- Safer defaults: the common
npxpath avoids pasting long-lived bearer credentials into client config files