Integrations

Overview

Connecting Spectron to your stack – SDKs, MCP server, AI SDKs, agent frameworks, voice tools, and automation.

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

spectron mcp

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

Call Spectron directly from application code.

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

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

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

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

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

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

Vercel AI SDK · TanStack AI · Cloudflare Workers AI

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

FrameworkPackageLanguage
LangChain / LangGraph@surrealdb/langchain, @surrealdb/langgraphTypeScript
CrewAIspectron-integration-crewaiPython
OpenAI Agents SDKspectron-openai-agentsPython
Pydantic AIspectron-pydantic-aiPython
Google ADKspectron-google-adkPython
Strands Agentsspectron-strandsPython
Mastra@surrealdb/mastra-aiTypeScript
Hermes Agentspectron-integration-hermes-agentPython
OpenClaw@surrealdb/spectron-openclawTypeScript
Eve@surrealdb/spectron-eveTypeScript

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

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

Give voice agents memory that persists across calls.

LiveKit · ElevenLabs

  • n8n: the @surrealdb/n8n-nodes-surrealdb community node, plus Spectron memory over the REST API.

  • Zo Computer: a Zo skill that calls the Spectron SDK for recall and storage.

n8n · Zo Computer

Run Spectron for memory while an observability platform traces and evaluates the agent.

Respan · AgentOps

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?