SurrealDB Agent Memory runs as a horizontally scalable HTTP service in front of SurrealDB. Application code integrates through:
| Surface | Description |
|---|---|
| REST | /api/v1/{context_id}/... |
| MCP | /mcp on the same port |
| SDKs | surrealdb, @surrealdb/memory |
| Harness adapters | LangChain, Vercel AI SDK, OpenAI Agents, n8n, Claude Code hook |
There is no supported in-process library that runs extraction and recall inside your binary without the SurrealDB Agent Memory server.
Rust agents
Deploy the SurrealDB Agent Memory server and call the HTTP API or generated client.