Surrealdb

🌐Community
by 24601 · vlatest · Repository

Surrealdb allows you to query and manipulate data across multiple databases seamlessly, boosting efficiency for complex applications.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add surrealdb npx -- -y @trustedskills/surrealdb
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "surrealdb": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/surrealdb"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

The surrealdb skill provides AI agents with direct access to SurrealDB, a scalable, polyglot database engine. It enables agents to perform complex queries, manage data schemas, and execute transactions across various deployment environments like Docker or cloud instances. This integration allows for seamless interaction with graph, document, key-value, and time-series data structures within a single unified system.

When to use it

  • Dynamic Data Storage: When an agent needs to persist unstructured or semi-structured data from user interactions in real-time.
  • Complex Relationships: For applications requiring graph-like queries to navigate relationships between entities without external mapping layers.
  • Multi-Tenant Applications: When deploying agents that need to isolate and manage distinct datasets for different users or organizations efficiently.
  • Schema Evolution: In scenarios where data models change frequently, requiring a database that supports flexible schema updates without downtime.

Key capabilities

  • Connects to SurrealDB instances via standard drivers (Docker, Cloud, etc.)
  • Executes SQL-like queries against polyglot data types
  • Manages user authentication and role-based access control
  • Supports live subscriptions for real-time data updates
  • Handles complex transactions with automatic conflict resolution

Example prompts

  1. "Create a new table called users with fields for name, email, and an array of hobbies."
  2. "Insert a record into the projects table and retrieve all related tasks using a graph query."
  3. "Update the status of all active sessions in the database to 'completed' based on the current timestamp."

Tips & gotchas

Ensure your AI agent has valid credentials (username/password or API keys) configured before attempting to connect to a remote SurrealDB instance. While SurrealDB supports many data types, complex nested queries may require specific syntax adjustments compared to traditional relational databases.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
24601
Installs
30

🌐 Community

Passed automated security scans.