Integrations

Overview

Connecting SurrealDB Agent Memory to your stack - SDKs, MCP server, AI SDKs, agent frameworks, voice tools, and automation.

SurrealDB Agent Memory connects to agents through HTTP, MCP, official SDKs, and harness adapters that mirror conversation turns into POST /api/v1/{context_id}/facts/batch, using the same provenance and trust model as the server.

The REST surface is described by an OpenAPI specification. The Python, TypeScript, Swift, and Kotlin clients track that spec so request and response shapes stay aligned with the server.

Native MCP at /mcp on the api port, with the same Authorization: Bearer auth as REST. Prefer this when the client already speaks MCP. Point the client at your instance's /mcp endpoint, or install it with install-mcp:

npx install-mcp https://<your-context-host>/mcp \
  --client cursor \
  --header "Authorization: Bearer <your-api-key>" --oauth no

MCP server install · Per-client guides: Claude · Cursor · VS Code · JetBrains · Zed · Windsurf · Codex · Antigravity · OpenCode

Call SurrealDB Agent Memory directly from application code.

LanguagePackage
Dartsurrealdb (import spectron.dart)
Elixir:surrealdb (SurrealDB.Spectron)
Gospectron package in surrealdb.go
Haskellsurrealdb-spectron
JavaScript / TypeScript@surrealdb/spectron
Kotlinbundled in com.surrealdb:kotlin
Pythonsurrealdb (SurrealDB Agent Memory ships inside it)
SwiftSpectron product in surrealdb.swift

Dart · Elixir · Go · Haskell · JavaScript & TypeScript · Kotlin · Python · Swift

Drop-in memory for the popular TypeScript AI SDKs, with recall and storage wrapped around your model calls.

  • Cloudflare Workers AI: the client inside a Worker, alongside Workers AI models.

  • TanStack AI: the @surrealdb/spectron client in TanStack Start server routes.

  • Vercel AI SDK: @surrealdb/spectron-vercel-ai, via wrapLanguageModel middleware and a tool set.

Cloudflare Workers AI · TanStack AI · Vercel AI SDK

Harness adapters expose SurrealDB Agent Memory as agent tools and add automatic per-turn memory, without changing your prompts.

FrameworkPackageLanguage
CrewAIspectron-crew-aiPython
Eve@surrealdb/spectron-eveTypeScript
Google ADKspectron-google-adkPython
Hermes Agentspectron-hermesPython
LangChain / LangGraph@surrealdb/langchain, @surrealdb/langgraphTypeScript
Mastra@surrealdb/mastra-aiTypeScript
OpenAI Agents SDKspectron-openai-agents-sdkPython
OpenClaw@surrealdb/spectron-openclawTypeScript
Pydantic AIspectron-pydantic-aiPython
Strands Agentsspectron-strands-agentsPython

CrewAI · Eve · Google ADK · Hermes Agent · LangChain · Mastra · OpenAI Agents SDK · OpenClaw · Pydantic AI · Strands Agents

Frameworks without a dedicated package integrate directly through the SDK: Agno · AutoGen · Camel AI · LlamaIndex

Give voice agents memory that persists across calls.

ElevenLabs · LiveKit

  • n8n: the @surrealdb/n8n-nodes-surrealdb community node, plus SurrealDB Agent Memory over the REST API.

  • Zo Computer: a Zo skill that calls the SurrealDB Agent Memory SDK for recall and storage.

n8n · Zo Computer

Run SurrealDB Agent Memory for memory while an observability platform traces and evaluates the agent.

AgentOps · Respan

Direct HTTP from any language. End-user routes: /api/v1/{context_id}/…. Management: /api/v1/contexts/….

REST integration guide · Full reference

  • Embedded in-process library: use REST or an SDK against a deployed instance (Embedded quickstart).

Was this page helpful?