A Model Context Protocol (MCP) server that provides a standardized interface for AI assistants to interact with a SurrealDB database.
Surrealdb mcp server connects Surrealdb to AI assistants that speak the Model Context Protocol. A Model Context Protocol (MCP) server that provides a standardized interface for AI assistants to interact with a SurrealDB database.
A Model Context Protocol (MCP) server that provides a standardized interface for AI assistants to interact with a SurrealDB database. This server enables AI systems to query and manipulate data within a configured SurrealDB instance.
Once connected, the assistant can call these 13 tools directly:
query — Execute a raw SurrealQL queryselect — Select records from a table (all or by specific ID)create — Create a single new record in a tableupdate — Update a specific record, replacing its contentdelete — Delete a specific record by IDmerge — Merge data into a specific record (partial update)patch — Apply JSON Patch operations to a specific recordupsert — Create a record if it doesn't exist, or update it if it doesinsert — Insert multiple records into a tableinsertRelation — Create a graph relation (edge) between two recordsTesting — The Testing tool exposed by this serverContributing — Contributions are welcome! Please see CONTRIBUTING.md for guidelinesInstallation — For more details, visit the n8n-nodes-mcp GitHub repositoryThe server is distributed via npm as approach, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.
Before the server will start you need to supply 5 environment variables: SURREALDB_URL, SURREALDB_NS, SURREALDB_DB, SURREALDB_USER, SURREALDB_PASS. Keep credentials in your client's env block or a secrets manager rather than committing them.
Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. Surrealdb sits in that group, and the shape of its toolset — query, select, create among others — tells you what it is really for. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.
| Tool | What it does |
|---|---|
| query | Execute a raw SurrealQL query. |
| select | Select records from a table (all or by specific ID). |
| create | Create a single new record in a table. |
| update | Update a specific record, replacing its content. |
| delete | Delete a specific record by ID. |
| merge | Merge data into a specific record (partial update). |
| patch | Apply JSON Patch operations to a specific record. |
| upsert | Create a record if it doesn't exist, or update it if it does. |
| insert | Insert multiple records into a table. |
| insertRelation | Create a graph relation (edge) between two records. |
| Testing | The Testing tool exposed by this server. |
| Contributing | Contributions are welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. |
| Installation | For more details, visit the [n8n-nodes-mcp GitHub repository](https://github.com/nerding-io/n8n-nodes-mcp). |
{
"mcpServers": {
"surrealdb": {
"command": "node",
"args": ["/path/to/your/surrealdb-mcp-server/build/index.js"],
"env": {
"SURREALDB_URL": "ws://localhost:8000",
"SURREALDB_NS": "your_namespace",
"SURREALDB_DB": "your_database",
"SURREALDB_USER": "your_db_user",
"SURREALDB_PASS": "your_db_password"
},
"disabled": false,
"autoApprove": []
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| SURREALDB_URL | Endpoint or connection string the server talks to. | Yes |
| SURREALDB_NS | Configuration value read at startup. | Optional |
| SURREALDB_DB | Configuration value read at startup. | Optional |
| SURREALDB_USER | Configuration value read at startup. | Optional |
| SURREALDB_PASS | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.