/surrealdb:surrealdb-mcpfrom surrealdb
Use when the user asks Claude to query, inspect, administer, or troubleshoot SurrealDB through the bundled MCP server — SurrealDB's managed MCP at mcp.surrealdb.com, covering both data (SurrealQL, schema, records) and account-level work (instances, organizations, spend).
Ships in surrealdb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This plugin wires up one MCP server in .mcp.json:
surrealdb — SurrealDB's managed MCP server at https://mcp.surrealdb.com, scoped to the user's SurrealDB account. It covers both planes: running SurrealQL and inspecting schema against the account's instances, and managing the account itself — deploying and upgrading instances, resizing resources, organizations and access, and spend.There is nothing to configure. The server authenticates over OAuth: the first call opens a browser to sign in with the user's Surreal ID. If a call comes back unauthenticated, tell the user to sign in when prompted — don't go hunting for environment variables or a URL.
| Task | Notes |
|---|---|
| Run a SurrealQL query, inspect tables/fields, define schema, work with records | Requires the target instance on SurrealDB 3.2.3+ |
| Deploy a new instance, upgrade a version, resize resources | Billable — confirm first |
| Invite users to an organization, change access levels | Confirm first |
| List instances, check monthly spend | Read-only, no confirmation needed |
mcp.surrealdb.com runs in SurrealDB's infrastructure, so it cannot reach a localhost or private-network instance. If the user wants Claude talking to a local surreal start instance or a self-hosted deployment, that's the separate surrealdb-local plugin:
/plugin install surrealdb-local@surrealdb
It adds a surrealdb-local MCP server pointed at ${SURREALDB_MCP_URL} (the instance's own /mcp route) with a bearer token. See that plugin's skill for setup. When both plugins are installed, route data work for a local instance to surrealdb-local and everything account-level to surrealdb.
OAuth needs a browser. Where there isn't one — CI, a remote box, an unattended agent — the user can mint a personal access token at https://account.surrealdb.com/tokens and register the server themselves with an explicit header:
claude mcp add --transport http surrealdb https://mcp.surrealdb.com \
--header "Authorization: Bearer <personal-access-token>"
The URL is the bare root — https://mcp.surrealdb.com, with no /mcp or /sse path. Those 404.
Every tool call runs against the user's real database and real account. Before:
DELETE or bulk updatesDEFINE / REMOVE on tables, fields, indexes, scopes, accesses…state the intended change and confirm with the user. Read-only work — SELECT, INFO FOR, listing instances, checking spend — does not need confirmation.
SELECT * FROM user LIMIT 5; against my database."post table with title and body fields and a published permission."What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/surql-formatterUse after editing or writing any `.surql` file, or when the user asks Claude to format, lint, or check SurrealQL files./surrealdb-pythonUsing SurrealDB with the Python SDK, covering both client/server mode (WebSocket) and embedded mode (in-memory or file-based). Use when connecting to SurrealDB from Python, using the surrealdb Python package, running SurrealDB embedded without a server, or performing CRUD operations from Python code. Triggers: surrealdb Python, Surreal(), AsyncSurreal(), Python SDK, embedded SurrealDB, mem://, file://./surrealdb-vectorVector search with SurrealDB using HNSW indexes, KNN queries, and similarity scoring. Use when creating vector indexes, querying vectors with KNN distance operators, building semantic search or RAG pipelines, tuning HNSW parameters (EFC, M, M0, distance function, type), or implementing recommendation systems with SurrealDB. Triggers: HNSW, vector, embedding, KNN, cosine, euclidean, semantic search, RAG, vector::distance.Other plugins' skills for the same job
npx claudepluginhub surrealdb/ai-claude-plugin --plugin surrealdb