Skip to main content

MCP Integration

MemoClaw provides an MCP (Model Context Protocol) server for seamless integration with Claude Desktop, Cursor, Windsurf, and any MCP-compatible application.

Installation

1

Install via npm

2

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.
3

Configure your MCP client

Add MemoClaw to your MCP configuration file.

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:
Or use the auto-setup script from the MemoClaw skill on ClawHub:
Once configured, your agent can call MemoClaw directly:

Other MCP Clients

Any MCP-compatible client can use the server:

Available Tools

Core

Bulk Operations

Intelligence

Relations & Graph

Import & Export

Namespace Management


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.
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 than memoclaw_list when you only need the total.

memoclaw_status

Check your free tier usage.
Response:

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. Use dry_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.
Relation types: 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. Use dry_run: true to preview.

memoclaw_delete_namespace

Delete ALL memories in a namespace. This is destructive and cannot be undone. Use memoclaw_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

Troubleshooting

”MEMOCLAW_PRIVATE_KEY environment variable required”

Make sure the environment variable is set in your MCP configuration or shell profile.

”Wallet authentication failed”

Ensure your wallet has USDC on Base for paid calls, or check your free tier status.

Connection issues

Restart your MCP client after changing configuration.

Learn More