NEW

SurrealDB 4 is here, introducing SurrealDB Earth and SurrealDS!

Learn more

SurrealDB MCP Server

Connect Claude, Cursor and other AI tools to SurrealDB over an open standard. One hosted server that acts as you, respects your role and asks before anything that cannot be undone.

https://mcp.surrealdb.com
Connect. Claude, Cursor, VS Code, Windsurf and other AI tools, with a single URL and your Surreal ID.
Operate. Deploy and resize instances, query data in plain language, and investigate with metrics and logs.
Control. Manage costs and access from the same conversation, from usage and invoices to roles and invites.

01 |CAPABILITIES

What you can do. One connection reaches Cloud, your data and Agent Memory.

02 |CONNECT

Connect your AI tool. One URL, then sign in with your Surreal ID.

Default

Default configuration

Add https://mcp.surrealdb.com as a remote MCP server and sign in when prompted.

{
"mcpServers": {
"surrealdb": {
"url": "https://mcp.surrealdb.com"
}
}
}
Token

Personal access token

For a client that cannot open a browser, or anything unattended. Create one in the account portal.

{
"mcpServers": {
"surrealdb": {
"url": "https://mcp.surrealdb.com",
"headers": {
"Authorization": "Bearer <your-token>"
}
}
}
}
Query

Query from the same connection

Manage an instance, then ask it questions: the assistant turns them into SurrealQL over the connection it already holds.

-- Ask your assistant to run queries like this
USE NS demo DB app;

SELECT
->purchased->product AS purchase_history,
->reviewed->product AS reviewed_products
FROM ONLY user:jaime;

03 |AGENT MEMORY

Agent Memory has its own MCP server. Seven tools at every context's /mcp endpoint.

The tools are remember, recall, context, reflect, forget, upload and inspect. Each call runs with the grants of its API key, which can only narrow access. Create a context in SurrealDB Studio, or read the documentation.

Config

Claude Desktop and Cursor

Add the block to claude_desktop_config.json (in ~/Library/Application Support/Claude on macOS) or to ~/.cursor/mcp.json, replacing each placeholder with your own value.

{
"mcpServers": {
"agent-memory": {
"url": "<URL>/mcp",
"headers": {
"Authorization": "Bearer <key>",
"X-Spectron-Context": "<context>"
}
}
}
}
Command

Claude Code

One command registers the server over HTTP with your API key.

claude mcp add --transport http agent-memory "<URL>/mcp" --header 'Authorization: Bearer <key>' --header 'X-Spectron-Context: <context>'

Your questions,answered

An open standard for connecting AI assistants to outside tools and data. The SurrealDB MCP Server connects your assistant to SurrealDB Cloud to deploy instances, query data, manage teams and work with Agent Memory.

THE PLATFORM

Everything an application and its agents know. Five surfaces, one engine.

IN PRODUCTION

Trusted at scale. Samsung, Nvidia, Verizon, Tencent, and Walmart run on SurrealDB.

14,000+

Developers building on SurrealDB Cloud

4M+

Developers building on SurrealDB worldwide

FROM THE TEAMS

SurrealDB gives us a foundation where we can unify semantic search, knowledge graphs, and AI-driven decision making without stitching together multiple systems. Collapsing responsibility into SurrealDB has become our default engineering posture.
Justin Foley

VP of Engineering, Later

GET STARTED

Connect your AI tools to SurrealDB Cloud. One URL in your MCP client, then sign in with your Surreal ID.