SurrealDB MCP Server
Published
At a glance
- Category
- Databases
- Hosted by the vendor
- https://surrealdb.com/docs/integrate/ai-agents/mcp
- Watch out for
- The hosted server only covers SurrealDB Cloud; a self-hosted database needs the separate Embedded MCP server.
The SurrealDB MCP Server is SurrealDB's own hosted server for SurrealDB Cloud. It lives at https://mcp.surrealdb.com, so there is nothing to install or keep running: you add the URL to your client, sign in with your Surreal ID, and the assistant can work on your Cloud account with you. It used to be a separate open source project on GitHub, but that repository is now archived and points to the SurrealDB docs instead, because MCP has become part of SurrealDB and SurrealDB Cloud.
The server acts as you. It only sees the organisations you belong to, respects the role you hold in each one, and asks for confirmation before anything that cannot be undone. One connection covers both sides of the work: managing instances, members and billing, and querying the data inside a running instance with SurrealQL.
If you run SurrealDB yourself rather than on Cloud, the docs point you to Embedded MCP, the server built into SurrealDB, which publishes the same set of data tools. This page covers the hosted Cloud server.
How it connects
Your AI app
An assistant or agent that supports MCP
SurrealDB MCP Server
Runs as
- Remote (HTTP)
Gives the agent
- Instance management
- Querying data
- Schema and functions
- Monitoring and cost
- Team administration
- Agent memory
SurrealDB
Signs in with
- Token
What it can do
- Instance management
- List instances and their details, deploy a new one, pause, resume, resize, upgrade, adjust backups or delete. A Deploy a Cloud Instance prompt walks through the choices and prices the result before anything is created.
- Querying data
- Inside a running instance the assistant uses use to pick a namespace and database, query to run SurrealQL, and select, create, insert, upsert, update, delete and relate for record operations without a full statement.
- Schema and functions
- list returns namespaces, databases, tables, indexes and users, info describes the schema or the engine, and run calls a database function.
- Monitoring and cost
- Read an instance's status, metrics, logs and usage, check invoices, and estimate what an instance will cost before you create it.
- Team administration
- See who has access to an organisation, invite people, change their role and withdraw invitations.
- Agent memory
- Create and configure SurrealDB Agent Memory contexts, then remember, recall, reflect, forget, upload and inspect against a context you own.
Setting it up
In Claude Code, run claude mcp add --transport http surrealdb https://mcp.surrealdb.com, then run /mcp inside Claude Code, choose surrealdb and authenticate in the browser window that opens. claude mcp list should then show it as connected; add --scope project to write the entry to .mcp.json for a single repository. In Claude Desktop or the Claude app, go to Settings, Connectors, Add custom connector, and enter the name SurrealDB with the URL https://mcp.surrealdb.com. Other clients take the usual mcpServers object with "url": "https://mcp.surrealdb.com"; VS Code uses a servers object with "type": "http", and Windsurf uses serverUrl instead of url. If the client cannot open a browser or runs unattended, create a personal access token in the account portal and send it as an Authorization: Bearer header (claude mcp add accepts --header for this). Ask the assistant to list your organisations to confirm it works.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Ask a question in plain language and have the assistant write and run the SurrealQL against a Cloud instance, then show the results.
- Create tables and seed test records while building an app, without leaving the editor.
- Pull up an instance's status, metrics and logs next to the query you were debugging to work out why it is slow.
- Price an instance configuration, review the monthly estimate, then let the assistant deploy it once you agree.
- Give an agent long-term memory by creating an Agent Memory context and storing and recalling memories from it.
Limitations and things to watch
- The hosted server only covers SurrealDB Cloud; a self-hosted database needs the separate Embedded MCP server.
- Data tools only work on running instances on SurrealDB 3.1 or later, so paused or older instances must be resumed or upgraded first.
- A personal access token stands in for your whole account and does not expire on its own, and its permissions are fixed once created, so a missing scope means making a new token.
- The server will not enter card details or accept terms for you; billing and agreements have to be completed by a person on SurrealDB's own pages.
- Idle connections are dropped, so long sessions may need a reconnect from the client.
Sources
Written from the project's own documentation, checked November 2026.
- surrealdb.com /docs/integrate/ai-agents/mcp
- surrealdb.com /docs/integrate/ai-agents/mcp/claude
- github.com /surrealdb/surrealmcp
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.