MCP Integration
MemoClaw provides an MCP (Model Context Protocol) server for seamless integration with Claude Desktop, Cursor, Windsurf, and any MCP-compatible application.Installation
Configure your wallet
Set your EVM private key with USDC on Base:
Use a dedicated wallet with USDC for API payments. The free tier includes 100 calls per wallet.
Client Configuration
Claude Desktop
Add to~/Library/Application Support/Claude/claude_desktop_config.json:
Cursor
Add to MCP settings in Cursor preferences:OpenClaw (via mcporter)
If you’re running OpenClaw, use mcporter to add MemoClaw:Other MCP Clients
Any MCP-compatible client can use the server:Available Tools
Core
| Tool | Description | Key Parameters |
|---|---|---|
memoclaw_init | Check configuration and connection status | (none) |
memoclaw_store | Store a memory with semantic embeddings | content, importance, tags, namespace, memory_type, pinned |
memoclaw_recall | Semantic search — find memories by meaning | query, limit, min_similarity, tags, namespace |
memoclaw_search | Keyword search — find memories by exact text match | query, limit, namespace, tags, memory_type |
memoclaw_get | Retrieve a single memory by ID | id |
memoclaw_list | List stored memories with pagination | limit, offset, tags, namespace, memory_type |
memoclaw_update | Update a memory by ID (partial update) | id, content, importance, tags, memory_type, pinned |
memoclaw_delete | Delete a memory by ID | id |
memoclaw_status | Check free tier remaining calls | (none) |
memoclaw_count | Count memories with optional filters | namespace, tags, agent_id, memory_type |
Bulk Operations
| Tool | Description | Key Parameters |
|---|---|---|
memoclaw_bulk_store | Store multiple memories in one call (max 100) | memories[], session_id, agent_id |
memoclaw_bulk_delete | Delete multiple memories by IDs (max 100) | ids[] |
Intelligence
| Tool | Description | Key Parameters |
|---|---|---|
memoclaw_ingest | Bulk-ingest conversations/text — auto-extracts facts with dedup & relations | messages, text, namespace, auto_relate |
memoclaw_extract | Extract structured facts from conversation via LLM (no auto-relations) | messages, namespace |
memoclaw_consolidate | Merge similar/duplicate memories by clustering | namespace, min_similarity, mode, dry_run |
memoclaw_suggested | Get proactive memory suggestions (stale, fresh, hot, decaying) | limit, namespace, category |
Relations & Graph
| Tool | Description | Key Parameters |
|---|---|---|
memoclaw_create_relation | Create a relationship between two memories | memory_id, target_id, relation_type |
memoclaw_list_relations | List all relationships for a memory | memory_id |
memoclaw_delete_relation | Delete a relationship | memory_id, relation_id |
memoclaw_graph | Traverse the memory graph from a starting memory | memory_id, depth (max 3), relation_type |
Import & Export
| Tool | Description | Key Parameters |
|---|---|---|
memoclaw_export | Export all memories as JSON | namespace, agent_id, format |
memoclaw_import | Import memories from a JSON array (max 100) | memories[], session_id, agent_id |
memoclaw_migrate | Migrate markdown files into MemoClaw | path, files[], namespace, dry_run |
Namespace Management
| Tool | Description | Key Parameters |
|---|---|---|
memoclaw_delete_namespace | Delete ALL memories in a namespace (destructive) | namespace, agent_id |
Tool Details
memoclaw_init
Check if MemoClaw is properly configured. Call this first to verify the connection, wallet address, and free tier status.memoclaw_store
Store a new memory with semantic embeddings.memoclaw_recall
Semantic search — find memories by meaning, not exact words.memoclaw_search
Keyword search — find memories containing exact text (case-insensitive).memoclaw_get
Retrieve a single memory by its exact ID.memoclaw_list
List all stored memories with pagination.memoclaw_update
Update an existing memory. Only provided fields are changed.memoclaw_delete
Remove a memory by its ID.memoclaw_bulk_store
Store multiple memories in a single call (max 100).memoclaw_bulk_delete
Delete multiple memories at once (max 100 IDs).memoclaw_count
Get a count of memories with optional filters. Faster thanmemoclaw_list when you only need the total.
memoclaw_status
Check your free tier usage.memoclaw_ingest
Bulk-ingest a conversation or raw text. The server extracts facts, deduplicates, and optionally creates relations.memoclaw_extract
Extract structured facts from a conversation via LLM, without auto-relating them.memoclaw_consolidate
Merge similar/duplicate memories by clustering. Usedry_run: true first to preview.
memoclaw_suggested
Get proactive memory suggestions: stale, fresh, hot, or decaying memories.memoclaw_create_relation
Create a directed relationship between two memories.related_to, derived_from, contradicts, supersedes, supports.
memoclaw_list_relations
List all relationships for a memory (both incoming and outgoing).memoclaw_delete_relation
Delete a specific relationship.memoclaw_graph
Traverse the memory graph from a starting point.memoclaw_export
Export all memories as JSON for backup or analysis.memoclaw_import
Import memories from a JSON array (max 100 per call).memoclaw_migrate
Migrate markdown files into MemoClaw. Usedry_run: true to preview.
memoclaw_delete_namespace
Delete ALL memories in a namespace. This is destructive and cannot be undone. Usememoclaw_count first.
Example Prompts
Once configured, you can ask Claude:- “Remember that I prefer TypeScript over JavaScript”
- “What did I say about my coding preferences?”
- “List all memories tagged with ‘project’”
- “Delete the memory about the old API key”
Free Tier
The MCP server includes a free tier of 100 calls per wallet. After exhausting the free tier, calls are paid via x402 protocol (USDC on Base).Environment Variables
| Variable | Description |
|---|---|
MEMOCLAW_PRIVATE_KEY | EVM private key for authentication and payments |
MEMOCLAW_URL | API URL (defaults to https://api.memoclaw.com) |