talira

SurrealDB

A multi-model database built in Rust that unifies document, graph, relational, time-series, geospatial and key-value data

source availableBUSL-1.1self-hostablefreeMCP

SurrealDB is a multi-model database written in Rust: one engine stores documents, graph edges, relational tables (schemaful or schemaless), time-series, geospatial and key-value data, with full-text, vector and hybrid search, queried through SurrealQL, a SQL-like language, or GraphQL. It doubles as an API backend, with record- and field-level permissions, live queries that push changes to clients over WebSockets, and ACID transactions across rows and tables. It runs embedded in an app (in memory or on SurrealKV), as a single server, or as a distributed multi-node cluster, and has official SDKs for Rust, JavaScript, Python, Go, Java, .NET, Kotlin, PHP, Swift and Mojo, plus an MCP server. The core is source-available under the Business Source License 1.1, which allows any use except offering it as a database service to third parties and turns each version into Apache-2.0 after four years. SurrealDB Ltd also sells SurrealDB Cloud (Earth, serverless on Cloudflare, and Cloud, node-based on AWS or Azure) and a self-hosted Enterprise edition.

Ways to install

Hosted for you

Problems it solves

  • we run Postgres, MongoDB and Neo4j side by side and spend our time keeping them in sync
  • store documents and graph relationships in one database instead of two
  • query relationships between records without writing chains of JOINs
  • push database changes to the browser in real time without building a separate websocket server
  • let the frontend query the database directly with per-record permissions instead of writing an API layer
  • one database for vector search, full-text search and the application data behind our AI agent
  • give our AI agent long-term memory stored as a knowledge graph with sources
  • an embedded database for a Rust or edge app that can later grow into a cluster
  • a database for a knowledge graph that also handles normal app tables
  • a serverless database that scales to zero for lots of small apps
  • store time-series and geospatial data in the same database as everything else
  • enforce row- and field-level access rules inside the database itself
  • a managed graph-and-document database on AWS or Azure in a region we choose
  • a database our security team can approve with SOC 2 Type 2 and ISO 27001 on the hosted service
  • let Claude or Cursor query and manage our database over MCP

View all 18 problems

Features

  • document, graph, relational, time-series, geospatial and key-value data in one engine
  • SurrealQL, a SQL-like query language, plus GraphQL, ISO GQL and the PostgreSQL and MySQL dialects over their wire protocols
  • full-text, vector and hybrid search indexes
  • record links and directed, typed graph edges without JOINs
  • multi-row, multi-table ACID transactions
  • live queries that stream changes to clients
  • row-, table- and field-level permissions and custom access methods
  • embedded mode (in memory or SurrealKV), single node or distributed cluster
  • incrementally computed views
  • embedded JavaScript functions
View 7 more
  • MCP server, hosted at mcp.surrealdb.com and embedded in SurrealDB 3.1 and later
  • official SDKs for Rust, JavaScript, Python, Go, Java, .NET, Kotlin, PHP, Swift and Mojo
  • Studio: query, explore and design the schema in the browser
  • Agent Memory: stores what an agent learns with its source and time
  • SurrealDB Earth: serverless on Cloudflare, scales to zero
  • SurrealDB Cloud: single-node or clustered on AWS or Azure with daily backups
  • Enterprise: audit logging, FIPS-compliant cryptography and priority security patching

Ways to run it

SurrealDB (self-hosted)

You run it, BUSL-1.1 (source-available)

free234

Only in this edition

  • the full database: embedded, single-node or multi-node cluster
  • production use, except offering it as a database service to third parties

Not included

  • audit logging, FIPS-compliant cryptography and priority security patching, which are Enterprise features5

You arrange

  • servers, Docker or Kubernetes
  • storage on SurrealKV or in memory with persistence
  • backups and monitoring
  • a commercial licence to offer SurrealDB as a database service

Self-hosting docs

SurrealDB Earth

Hosted by SurrealDB

Free $0; Pro $15/month launch price plus usage5

Only in this edition

  • serverless on Cloudflare's network in 330+ regions
  • scales to zero when idle
  • pay per request

Pricing

SurrealDB Cloud

Hosted by SurrealDB

from $0.021 per node hour5

Only in this edition

  • always-on nodes on AWS or Azure in the region you choose
  • single node or highly available clusters of up to hundreds of nodes
  • automated daily backups

Pricing

SurrealDB Enterprise

You run it, under a commercial licence

custom, through sales5

Only in this edition

  • clustered fault-tolerant deployments with distributed storage
  • audit logging and FIPS-compliant cryptography
  • priority security patching
  • enterprise SSO and HIPAA
  • enterprise support and custom SLAs

You arrange

  • your own infrastructure

Pricing

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known
Has official SDKsplan not known
Has single sign-onSurrealDB Earth: every plan, free; SurrealDB Cloud: every plan, $0.021/node_hour; SurrealDB Enterprise; add-on: Enterprise single sign-on, priced by sales; add-on: Enterprise single sign-on, priced by sales5

Alternatives

The same job

These do what SurrealDB does.

  1. ArangoDB A scalable multi-model database for graphs, documents, key-values and search
  2. ArcadeDB Open source multi-model database for graphs, documents, key/value, search, vectors and time series, with a built-in MCP server
  3. Neo4j The knowledge layer that makes AI accurate
  4. MongoDB The free, source-available version of MongoDB
  5. PostgreSQL A powerful, open source object-relational database system
  6. Supabase The Postgres development platform

Compare SurrealDB with the top 3