Surreal MCP MCP Server

MCP server for SurrealDB database

Local serverstdioPython

What is the Surreal MCP MCP server?

Most database access work still happens through a UI a human drives. Surreal MCP MCP server moves it into the conversation instead. MCP server for SurrealDB database.

The short version

The SurrealDB MCP Server bridges the gap between AI assistants and SurrealDB, providing a standardized interface for database operations through the Model Context Protocol. This enables LLMs to:

  • Full SurrealQL Support — Execute any SurrealQL query directly
  • Comprehensive CRUD Operations — Create, read, update, delete with ease
  • Graph Database Operations — Create and traverse relationships between records
  • Bulk Operations — Efficient multi-record inserts
  • Smart Updates — Full updates, merges, and patches
  • Type-Safe — Proper handling of SurrealDB's RecordIDs

The tools it exposes

The server publishes 1 tool. What each one is for:

  • Prerequisites — The Prerequisites tool exposed by this server

Getting it running

Installation goes through your MCP client rather than a global install: point it at surreal-mcp on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

Configuration is passed through the environment: SURREAL_URL, SURREAL_USER, SURREAL_PASSWORD, SURREAL_NAMESPACE, SURREAL_DATABASE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • SurrealDB instance running locally - Test database access (uses temporary test databases)

How it compares

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Surreal MCP's toolset — Prerequisites — is a fair guide to whether it matches your workflow. It is maintained by lfnovo; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Surreal MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Surreal MCP MCP server

{
  "mcpServers": {
    "surrealdb": {
      "command": "uvx",
      "args": ["surreal-mcp"],
      "env": {
        "SURREAL_URL": "ws://localhost:8000/rpc",
        "SURREAL_USER": "root",
        "SURREAL_PASSWORD": "root",
        "SURREAL_NAMESPACE": "test",
        "SURREAL_DATABASE": "test"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • SurrealDB instance running locally - Test database access (uses temporary test databases)
VariableDescriptionRequired
SURREAL_URLEndpoint or connection string the server talks to.Yes
SURREAL_USERConfiguration value read at startup.Optional
SURREAL_PASSWORDConfiguration value read at startup.Optional
SURREAL_NAMESPACEConfiguration value read at startup.Optional
SURREAL_DATABASEConfiguration value read at startup.Optional

Example prompts to try

  • Use Surreal MCP to Prerequisites.

Frequently asked questions

Python 3.10 or higher, a running SurrealDB instance (local or remote), and an MCP-compatible client (e.g., Claude Desktop, MCP CLI).