Spectron runs as a horizontally scalable service in front of SurrealDB. Integrate through:
HTTP —
/api/v1/{context_id}/...(REST API)MCP —
/mcpon the same portGenerated SDKs — Python (
surrealdb-spectron) and TypeScript (@surrealdb/spectron)Harness adapters — LangChain, Vercel AI SDK, OpenAI Agents, n8n, Claude Code hook (Integrations)
In-process library
There is no supported in-process API that runs extraction and recall inside your application binary without the Spectron server. Rust, Python, and TypeScript agents call the HTTP API or SDK against a deployed Spectron instance.
What to use
| Goal | Use |
|---|---|
| Python / TypeScript agent | Python or JavaScript SDK |
| Coding assistant | MCP install |
| LangChain / Vercel AI / OpenAI Agents | Framework adapters |
| Self-hosted stack | Self-hosted quickstart or Docker |
See also Embedded library for Rust-specific notes.