This page gets you from zero to a working MemWal MCP server inside Cursor, Claude Desktop, Claude Code, or Codex.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.
Prerequisites
- Node.js 20 or newer (
node -vto check) - A Sui wallet with the MemWal app authorized — Sui Wallet, Suiet, Phantom, or any Sui-compatible wallet
- An MCP-aware client: Cursor, Claude Desktop, Claude Code, Codex, Antigravity, or another MCP host
npx fetches the @mysten-incubation/memwal-mcp package on demand.
Choose your login path
You have two valid ways to get credentials onto the machine:- Inline from the MCP client: add the package to the client config first, then let the agent call
memwal_login - Manual from a terminal: run
npx -y @mysten-incubation/memwal-mcp login --prodyourself before wiring the client
~/.memwal/credentials.json.
For most teams, the best default is:
- use the stdio package for local MCP clients
- use Streamable HTTP only when the client clearly supports remote MCP headers cleanly
Installation
Sign in with your Sui wallet
Run the login flow once from your terminal. Your browser opens tohttps://memwal.ai/connect/mcp — approve the connection in your Sui wallet.~/.memwal/credentials.json. For other environments use --staging, --dev, or --local.Add MemWal to your MCP client
Pick the snippet for your client. Drop it into the client’s MCP config file.- Cursor
- Claude Desktop
- Claude Code
- Codex
Restart the client
MCP servers load at client startup. Quit and reopen your MCP client (Cmd+Q on macOS — closing the window is not enough). On first start, npx fetches the package — expect a 5–10 second delay the first time.Common config locations
- Cursor:
~/.cursor/mcp.json - Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json - Codex:
~/.codex/config.toml - Claude Code: managed through
claude mcp add/claude mcp list
What first run should look like
If you skip the manual terminal login and go straight to the MCP client, that is fine.- The package does not crash when credentials are missing.
- Instead it starts in an auth-required mode that still exposes
memwal_login. - Ask the agent to run
memwal_login, approve the browser flow, then retry the original memory action.
Verify
Check connectivity
Ask the agent in any conversation:What MCP tools do you have available?You should see six tools:
memwal_remembermemwal_recallmemwal_analyzememwal_restorememwal_loginmemwal_logout
memwal_login — credentials are missing. This is the expected first-run state in many MCP clients. Run the login command from step 1 again or ask the agent to call memwal_login.
If you do not see any MemWal tools at all, the MCP host likely never loaded the package. Double-check the config file path, restart the client fully, and confirm you are on Node 20+.
Save and recall a memory
Extract multiple facts from a passage
memwal_recall to verify any one of them came back.
Direct HTTP setup
If your MCP client supports remote servers with custom headers, you can connect directly to the hosted relayer instead of runningnpx locally.
Use:
- URL:
https://relayer.memwal.ai/api/mcp - Header:
Authorization: Bearer <delegatePrivateKey> - Header:
x-memwal-account-id: <accountId>
~/.memwal/credentials.json after a successful login. See Reference for the full config shape and security notes.
Switching environments
Need to hop between prod, staging, dev, or a local relayer without re-editing your client config?~/.memwal/credentials.json on each run. See Environment presets for all four shortcuts.
Local development
To point the package at a local dashboard + relayer during development:- relayer:
http://127.0.0.1:8000 - dashboard:
http://localhost:5173
Signing out
Ask the agent to callmemwal_logout, or run from your terminal:
Next steps
Reference
All six tools with parameters, CLI flags, and transport routes
How It Works
Auth-required mode, local credentials, and bridge behavior
Streamable HTTP transport
Skip
npx — point your client at the relayer URL directlySelf-Hosting
Run your own relayer and route MCP traffic through it
Environment Variables
Full list of relayer + sidecar settings (SEAL, Walrus, sessions)