Memcloud Documentation
Everything you need to integrate with Memcloud — hybrid memory orchestrator for AI agents.
Quick Start
Memcloud is a hybrid memory orchestrator for AI agents. It combines auto-recall (structured context injection), async auto-capture, a dynamic memory profile endpoint, and shared memory pools — all through a simple REST API. Currently at v1.0.0.
Store a memory
curl -X POST https://api.memcloud.dev/v1/memories/ \
-H "Authorization: Bearer mc_xxx" \
-H "Content-Type: application/json" \
-d '{
"text": "User prefers dark mode and vim keybindings",
"user_id": "seiji",
"agent_id": "lyn"
}'Search it back
curl -X POST https://api.memcloud.dev/v1/memories/search/ \
-H "Authorization: Bearer mc_xxx" \
-H "Content-Type: application/json" \
-d '{
"query": "user preferences",
"user_id": "seiji",
"top_k": 15
}'OpenClaw Integration
Add persistent memory to any OpenClaw agent in three steps.
1. Copy the plugin
scp -r root@api.memcloud.dev:/opt/memcloud/openclaw-plugin/ \\\n /usr/lib/node_modules/openclaw/dist/extensions/openclaw-memcloud/2. Add to openclaw.json
{
"plugins": {
"slots": {
"memory": "openclaw-memcloud"
},
"entries": {
"openclaw-memcloud": {
"enabled": true,
"config": {
"apiUrl": "https://api.memcloud.dev/v1",
"apiKey": "mc_your_api_key",
"userId": "your_user_id",
"agentId": "your_agent_id",
"orgId": "your_org_id",
"autoRecall": true,
"autoCapture": true,
"topK": 15,
"sharedPools": ["shared:team"],
"compactionFlush": true
}
}
}
}
}Key fields: slots.memory tells OpenClaw to use Memcloud as the primary memory plugin. sharedPools enables cross-agent memory sharing. compactionFlush saves context before it gets trimmed.
3. Restart the gateway
openclaw gateway restartAvailable Tools
Agent Best Practices
How to get the most out of Memcloud as an OpenClaw agent. This guide covers what gets captured automatically, what you should store manually, and how to avoid common pitfalls.
Claude Code / MCP Integration
Use Memcloud as an MCP server for Claude Code, Cursor, or any MCP-compatible client.
MCP Server
Located at memcloud/mcp/mcp_server.py
Configuration
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"memcloud": {
"command": "python3",
"args": [
"/path/to/mcp_server.py",
"--api-url", "https://api.memcloud.dev/v1",
"--api-key", "YOUR_KEY",
"--user-id", "seiji"
]
}
}
}MCP Tools
memory_storeStore a memory with automatic enrichmentmemory_searchSemantic search with optional agentic reasoningmemory_answerSearch and synthesize an answer from memoriesmemory_listList memories with filtersmemory_deleteDelete a specific memory by IDREST API Reference
Memories
Answer
Memory Profile
Projects
Agent Context
Pools & Access
Events & Subscriptions
Admin
Bulk Operations
Note: This performs a soft delete (archive). Memories can be recovered. Maximum 100 IDs per request.
Sessions
Webhooks
Schemas
Instructions
Activity & Audit
Other
Concepts
SDKs
from memcloud import MemcloudClient
mc = MemcloudClient(
api_key="mc_xxx",
api_url="https://api.memcloud.dev/v1",
user_id="seiji",
agent_id="lyn"
)
# Store a memory
mc.add("User prefers dark mode")
# Search
results = mc.search("preferences")
for r in results:
print(r)
# Get an answer from memory
answer = mc.answer("What theme does the user prefer?")
# List all
memories = mc.list(memory_type="triple", limit=20)
# Delete
mc.delete(memory_id="abc-123")
# Bulk operations
mc.bulk_import([
{"content": "fact 1", "memory_type": "raw"},
{"content": "fact 2", "memory_type": "triple"},
])
data = mc.bulk_export(memory_type="triple")