Skip to content
NEW

Introducing SurrealDB Studio, the new official app of SurrealDB

Learn more

1/5

SurrealDB MCP Server

Connect Claude, Cursor, and other AI tools to your SurrealDB Cloud account with a single URL. Deploy instances, query data, investigate problems, and manage costs - all from your assistant.

WHAT IS MCP?

Connect AI assistants to your data

Model Context Protocol is an open standard for connecting AI assistants to outside tools and data. Instead of copying a connection string into a chat window and pasting query results back out, your assistant works with SurrealDB directly.

The server is hosted for you - nothing to install and nothing to keep running. It acts as you: it sees only the organisations you belong to, respects the role you hold in each one, and asks you to confirm anything that cannot be undone.

CAPABILITIES

What you can do

One connection gives your assistant access to SurrealDB Cloud, your instance data, and Agent Memory (early access).

Deploy and manage instances

Create an instance, pause one you are not using, resize it as traffic grows, or upgrade it to a newer version of SurrealDB.

Work with your data

Ask a question in plain language and let the assistant write and run the SurrealQL, or have it create tables and seed records while you build.

Look into problems

Pull up instance status, metrics, and logs next to the query you were just writing.

Manage your team

Invite people to an organisation, change what they can do, and withdraw invitations.

Keep an eye on cost

Check usage and invoices, and estimate what an instance will cost before you create it.

Give agents long-term memory

Create and manage Agent Memory contexts, then store and recall memories from them.

CONNECT

Connect your AI tool

Most clients need nothing but the URL. Add the server to your MCP client, sign in with your Surreal ID, and ask your assistant to list your organisations to confirm the connection.

Default configuration

Add https://mcp.surrealdb.com as a remote MCP server. Sign in with your Surreal ID when prompted.

1{
2 "mcpServers": {
3 "surrealdb": {
4 "url": "https://mcp.surrealdb.com"
5 }
6 }
7}

Personal access token

Use a token when your client cannot open a browser, or when something runs unattended. Create one in the account portal.

1{
2 "mcpServers": {
3 "surrealdb": {
4 "url": "https://mcp.surrealdb.com",
5 "headers": {
6 "Authorization": "Bearer <your-token>"
7 }
8 }
9 }
10}

WORKING WITH DATA

Query from the same connection

The same connection that manages an instance can also query it. Your assistant chooses the namespace and database, writes the SurrealQL, and shows you what came back. Instances must be running and on SurrealDB 3.1 or later.

1-- Ask your assistant to run queries like this
2USE NS demo DB app;
3
4SELECT
5 ->purchased->product AS purchase_history,
6 ->reviewed->product AS reviewed_products
7FROM ONLY user:jaime;

SELF-HOSTED

Embedded MCP for databases you run yourself

The hosted server covers SurrealDB Cloud. To give an assistant tools against a database you run yourself, see Embedded MCP in the docs. The same tool surface - query, select, create, list, info, and more - is built into SurrealDB 3.1 and later.

FREQUENTLY ASKED QUESTIONS

SurrealDB MCP Server

GET STARTED

Connect your AI tools to SurrealDB Cloud

Add one URL to your MCP client, sign in with your Surreal ID, and start working with your databases alongside your assistant.

SamsungNVIDIAAppleVerizonTencent

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

SurrealDB

The unified data layer for AI

Graph, vector, document, and relational in one engine.
Agent Memory that connects and retrieves context wherever your data lives.

Explore with AI

Stay in the loop

Tutorials, AI agent recipes, and product updates, every two weeks.

Independently verified

SOC 2 Type 2

GDPR

Cyber Essentials Plus

ISO 27001

Trust Centre

Copyright © 2026 SurrealDB Ltd. Registered in England and Wales. Company no. 13615201

Registered address: 3rd Floor 1 Ashley Road, Altrincham, Cheshire, WA14 2DT, United Kingdom

Trading address: Huckletree Oxford Circus, 213 Oxford Street, London, W1D 2LG, United Kingdom