Cloud Services
surrealdb.com
An MCP server for SurrealDB Cloud that authenticates users and lists available regions, instance types, versions, and billing countries for provisioning cloud instances.
ENDPOINT 1
https://mcp.surrealdb.com
MCP server metadata
- Name
- surrealdb-cloud
- Version
- 1.0.0
SurrealDB Cloud MCP — agent workflow guide WHEN YOU NEED SURREALDB SYNTAX, CONFIGURATION OR SDK USAGE: - search_documentation — searches the published SurrealDB documentation. Use it before answering from memory, and cite the returned url by prefixing it with https://surrealdb.com. Needs no organisation or instance. WHEN UNAUTHORIZED: - Call mcp_auth first — it returns OAuth endpoints and instructs the human to connect via Cursor Settings → MCP (do not fabricate tokens or skip OAuth). WHEN CREATING AN ORGANISATION AND DEPLOYING INSTANCES: 1. create_organization — note deployment.next_steps in the response 2. get_organization_deployment_readiness — always call before deploy_instance 3. Resolve every blocker before deploying DEPLOYMENT READINESS: - can_deploy_free: org has free instance quota (max_free_instances > free_instances_used) - can_deploy_paid: billing contact complete, payment method on file, and paid quota available - New orgs on the Start plan often have max_free_instances: 0 — paid instances require billing setup BILLING SETUP (required before paid instances; never collect card numbers in tool args): 1. get_organization_billing_requirements — required fields and country codes 2. update_organization_billing — set contact + address (user must provide real data; never fabricate) OR copy_organization_billing_from — copy contact from another org you own 3. get_organization_payment_setup_url — Stripe-hosted URL for the user to add a card in the browser 4. After the user completes checkout, poll get_organization_deployment_readiness until payment_complete: true (payment status is updated via Stripe webhook; do not expect instant confirmation) BILLING FIELD NAMES: - update_organization_billing uses PascalCase keys matching the Cloud API (Name, Email, AddressLine1, City, Country, etc.) - Country must be ISO 3166-1 alpha-2 (use list_billing_countries) ORGANISATION IDS: - Org-scoped tools require organization_id — the alphanumeric id from list_organizations, not the org display name. - Call list_organizations first when you do not already have an org id (no arguments). INSTANCE DEPLOYMENT: - deploy_instance configuration.region — region slug from list_regions (same value as slug/id) - deploy_instance configuration.specs.slug — instance type slug from list_instance_types - Free instance types do not require payment_info; paid types do QUERYING CLOUD INSTANCES (SurrealDB 3.1+ instance MCP): 1. list_organizations → get organization_id (required) 2. list_organization_instances({ organization_id }) → pick instance_id 3. get_instance → confirm state is "ready" and version is 3.1+ 4. call_instance_tool(instance_id, "use", { namespace, database }) — set context; persists across later call_instance_tool calls on the same instance (pooled MCP session). For namespace/database names that start with a digit or contain special characters, use call_instance_tool(instance_id, "query", { query: "USE NS `8889`; USE DB `56+24546`" }) instead. 5. call_instance_tool(instance_id, "query", { query: "..." }) — run SurrealQL 6. list_instance_tools(instance_id) — discover tool names and schemas not covered below Requires query:cloud-instances for PATs. Common instance MCP tools (via call_instance_tool): - use — { namespace, database } - query — { query, ... } - select, create, insert, upsert, update, delete, relate — data helpers - list — list namespaces, databases, tables, indexes, users, … - info — schema or engine information - run — call a database function Full reference: https://surrealdb.com/docs/build/ai-agents/mcp#published-tools SECURITY: - Never pass raw card numbers, CVV, or Stripe tokens to any tool - Payment setup is always user-in-the-loop via Stripe-hosted checkout SPECTRON CONTEXTS: 1. list_organizations → get organization_id (required for all org-scoped Spectron tools below) 2. list_context_regions — region slug for create_spectron_context 3. Optional: list_spectron_context_packages + assign_organization_spectron_context_package (write:cloud-billing) if the org needs a package 4. create_spectron_context({ organization_id, name, region }) (write:cloud-spectron) 5. add_spectron_context_user or create_spectron_context_principal for access control 6. mint_spectron_scoped_key (admin) or mint_spectron_access_token (caller self-service, query:spectron-contexts) 7. list_spectron_context_verbs — valid grant verbs for principals/keys SPECTRON SCOPES (register-then-use): - list_spectron_context_scopes({ organization_id, context_id }) — list registered scope paths - create_spectron_context_scope({ organization_id, context_id, path }) — register before first write (write:cloud-spectron; org owner/admin) - delete_spectron_context_scope({ organization_id, context_id, path }) — tombstone a scope path (write:cloud-spectron) - Context MCP tools (call_spectron_tool) do not register scopes SPECTRON AGENT WORKFLOWS (data plane — mirrors SurrealDB Studio Playground / Memory / Documents): - create_spectron_session → call_spectron_chat for multi-turn chat with automatic memory extraction - get_spectron_memory_snapshot — structured state + profile before a session - list_spectron_entities — browse the entity graph; call_spectron_tool inspect for one entity - list_spectron_documents / search_spectron_documents — browse and search authoritative knowledge (distinct from recall) QUERYING SPECTRON CONTEXTS (Spectron MCP): 1. list_organizations → get organization_id (required) 2. list_organization_spectron_contexts({ organization_id }) → pick context_id 3. get_spectron_context({ organization_id, context_id }) → confirm host is present 4. call_spectron_tool(organization_id, context_id, "remember", { text: "...", scope?: ["org/acme/user/alice"] }) 5. call_spectron_tool(organization_id, context_id, "recall", { query: "...", mode?: "hybrid", lens?: [["org/acme/user/alice"]] }) 6. list_spectron_tools(organization_id, context_id) — discover tool names and schemas not covered below Requires query:spectron-contexts for PATs. Common Spectron MCP tools (via call_spectron_tool): - remember — { text, infer?, session_id?, scope?, labels? } - recall — { query, k?, mode?, lens?, scope_view?, labels? } - context — { query, k?, lens?, scope_view?, labels? } - reflect — { query, persist? } - forget — { query, purge? } - upload — { bytes_base64, title?, scopes?, labels?, ... } - inspect — { ref } (entity:Type/Name | trace:id | document:id) Full reference: https://surrealdb.com/docs/spectron/integrations/mcp-server/tools-reference CLOUD TERMS: 1. get_cloud_terms_acceptance_status — check if acceptance is required 2. get_cloud_terms_and_conditions — share document links with the user 3. accept_cloud_terms_and_conditions — only after the user explicitly agrees; set confirm_use_terms: true. Marketing is opt-out (default on): ask if they want to opt out; pass marketing_opt_out: true only if they decline
Known tools 91
get_cloud_terms_and_conditionsList SurrealDB Cloud legal documents the user must review before accepting terms (name + URL for each).
Inferred read-onlyget_cloud_terms_acceptance_statusCheck whether the current user has accepted Cloud terms (terms_accepted_at / marketing_accepted_at from the Cloud session).
Inferred read-onlylist_organizationsList organisations for the authenticated user (**GET `/organizations`**).
Inferred read-onlylist_organization_instancesList instances in one organisation (`organization_id` = org `id` from list_organizations).
Inferred read-onlyupdate_instance_access_typeUpdate network access settings for an instance (e.g.
Potential side effectsupdate_instance_capabilitiesReplace instance capability flags (PUT /capabilities).
Inferred read-onlyget_instance_database_tokenMint a database session token for a Cloud instance (GET /instances/{id}/auth).
Inferred read-onlyget_instance_backup_policyGet backup retention policy for an instance (daily/weekly/monthly tiers and backup frequency).
Inferred read-onlydelete_cloud_instancePermanently delete a Cloud instance and its backups — irreversible.
Potential side effectscall_instance_toolProxy a tool call to a Cloud instance's built-in MCP server (https://{host}/mcp).
Inferred read-onlylist_instance_toolsList MCP tools exposed by a Cloud instance's built-in MCP server.
Inferred read-onlyget_instance_metricsQuery metrics for an instance (metric, from_time, to_time ISO 8601; optional dummy_data).
Inferred read-onlyget_instance_logsFetch instance logs for a time window (from_time, to_time ISO 8601).
Inferred read-onlyget_organization_deployment_readinessCheck whether an organisation can deploy instances before calling deploy_instance.
Inferred read-onlyget_organization_billing_requirementsReturn required billing contact fields, optional fields, snake_case aliases, and valid country codes.
Inferred read-onlycopy_organization_billing_fromCopy billing contact details from another organisation you belong to (contact info only — not payment methods).
Potential side effectssetup_organization_for_instancesOrchestrate billing setup before first instance deploy.
Inferred read-onlyget_organization_paymentGet payment method summary for an organisation (read-only).
Potential side effectsget_organization_payment_setup_urlGet a Stripe Checkout URL so the user can add a payment method in the browser (setup mode).
Potential side effectsget_organization_payment_portal_urlAlias for get_organization_payment_setup_url (same Stripe Checkout setup endpoint).
Inferred read-onlylist_spectron_context_packagesList Spectron context packages in the public catalog (pricing, limits, billing period).
Inferred read-onlylist_organization_spectron_context_packagesList Spectron context packages assigned to an organisation (active subscriptions / trials).
Inferred read-onlyassign_organization_spectron_context_packageSubscribe an organisation to a Spectron context package.
Inferred read-onlycancel_organization_spectron_context_packageCancel an organisation's active Spectron context package subscription.
Inferred read-onlyget_spectron_contextGet a Spectron context by id (includes `host` for SDK / HTTP access).
Inferred read-onlylist_spectron_context_api_keysList API keys for a Spectron context (metadata only — secrets are not returned on list).
Inferred read-onlymint_spectron_access_tokenMint a short-lived access token for the calling user's own Spectron principal (for SDK use).
Inferred read-onlylist_spectron_context_principalsList principals (humans, agents, services) registered on a Spectron context, including optional `grants`.
Inferred read-onlycreate_spectron_context_principalCreate a principal on a Spectron context (`kind`: human | agent | service | unknown).
Potential side effectsupdate_spectron_context_principalUpdate a Spectron principal display name and/or kind.
Potential side effectsreplace_spectron_principal_grantsReplace all grants on a Spectron principal (full overwrite).
Inferred read-onlyadd_spectron_context_userProvision an organisation member as a human principal on a Spectron context.
Inferred read-onlycall_spectron_toolProxy a tool call to a Spectron context's built-in MCP server (https://{host}/mcp).
Inferred read-onlylist_spectron_toolsList MCP tools exposed by a Spectron context's built-in MCP server.
Inferred read-onlydelete_spectron_context_scopeTombstone (soft-delete) a registered scope path on a Spectron context.
Potential side effectscreate_spectron_sessionCreate a Spectron chat session for multi-turn Playground-style conversations.
Potential side effectscall_spectron_chatRun a Playground-style chat turn: Spectron retrieves context, calls the configured LLM, persists the exchange, and returns the reply plus memory updates.
Inferred read-onlyget_spectron_memory_snapshotLoad structured memory overview for a context (`state` + `profile`) — similar to the SurrealDB Studio Memory State tab.
Inferred read-onlylist_spectron_entitiesList memory entities in a Spectron context (type, name, labels) — similar to the SurrealDB Studio Memory Entities tab.
Inferred read-onlysearch_spectron_documentsSemantic search over ingested document chunks (authoritative knowledge).
Inferred read-onlylist_spectron_context_scopesList scope nodes registered on a Spectron context (paths, depth, value policies).
Inferred read-onlycreate_spectron_context_scopeRegister a scope path on a Spectron context (register-then-use).
Inferred read-onlyget_spectron_context_usageGet token usage for a Spectron context for the current billing period (breakdown by model and token kind).
Inferred read-onlyget_spectron_context_configGet Spectron context configuration (token limits, feature flags).
Inferred read-onlylist_spectron_context_providersList LLM providers and models configured for a Spectron context (no secrets).
Inferred read-onlylist_spectron_context_verbsList grant verbs available for Spectron principals and keys (e.g.
Inferred read-onlyCONNECT WITH APPROVAL
Client installation
Review this server and its permissions before adding it. Secret placeholders must be set locally.
Codex
~/.codex/config.toml
[mcp_servers.surrealdb-cloud]
url = "https://mcp.surrealdb.com"
enabled = true
Claude Code
.mcp.json
{
"mcpServers": {
"surrealdb-cloud": {
"type": "http",
"url": "https://mcp.surrealdb.com"
}
}
}
Claude Desktop
Settings → Connectors → Add custom connector
Name: surrealdb-cloud
Remote MCP URL: https://mcp.surrealdb.com
Add this remote URL as a custom connector in Claude Desktop. Availability depends on the user plan and workspace policy.
Cursor
.cursor/mcp.json
{
"mcpServers": {
"surrealdb-cloud": {
"url": "https://mcp.surrealdb.com"
}
}
}
Visual Studio Code
.vscode/mcp.json
Add to Visual Studio Code{
"servers": {
"surrealdb-cloud": {
"type": "http",
"url": "https://mcp.surrealdb.com"
}
}
}
Generic MCP
Client-specific MCP configuration
{
"name": "surrealdb-cloud",
"transport": "streamable-http",
"url": "https://mcp.surrealdb.com"
}
MCP Inspector
Run the official MCP Inspector locally and enter the indexed Streamable HTTP endpoint.
TRUST AND VERIFICATION EVIDENCE
Loading Trust v2 evidence…
Checking the associated registrable domain. The BuiltWith key remains server-side.
Evidence is source-attributed and does not guarantee that a third-party server is safe. Risk labels are conservative metadata heuristics.