from humandb import HumanDB
db = HumanDB("memory.db") # one file. that's the database.
# remember across a whole conversation
db.add([
{"role": "user",
"content": "I'm Rayyan. My wife Zainab loves gardening."},
])
# recall, deterministically, with provenance
hits = db.recall("what does my wife enjoy?")
# -> [{ fact: "Zainab enjoys gardening",
# source: "msg_4f2a", score: 0.91 }]
# the whole API is one route shape: /db/{space}/{op}
curl https://api.humandb.dev/db/rayyan/recall \
-H "Authorization: Bearer $HUMANDB_KEY" \
-d '{ "query": "what does my wife enjoy?" }'
# {
# "memories": [
# { "fact": "Zainab enjoys gardening",
# "subject": "Zainab",
# "source": "msg_4f2a",
# "score": 0.91 }
# ]
# }
// drop HumanDB into any MCP client
{
"mcpServers": {
"humandb": {
"command": "npx",
"args": ["-y", "humandb-mcp"]
}
}
}
// tools your agent gets, out of the box:
// humandb_recall humandb_query
// humandb_push_event humandb_schedule