S

SurrealDB

Connects to SurrealDB's multi-model database enabling graph, document, and relational operations thr...

192 views
0 installs
Updated Sep 9, 2025
Not audited
Connects to SurrealDB's multi-model database enabling graph, document, and relational operations through ten core tools including query execution, CRUD operations, graph traversal, and bulk data management.
  1. Obtain SurrealDB Connection Information
    You will need the following details from your SurrealDB instance. If you set up SurrealDB yourself, use the credentials you configured. If someone else administers your SurrealDB, ask them for these values:

    • SurrealDB connection URL (e.g., ws://localhost:8000/rpc)
    • SurrealDB username (e.g., root)
    • SurrealDB password (e.g., root)
    • Namespace (e.g., test)
    • Database (e.g., test)
  2. Log in to Your SurrealDB Instance (if self-hosted)

    • Make sure your SurrealDB server is running. The default command to start SurrealDB is:
      surreal start --user root --pass root
      
    • The default URL is usually ws://localhost:8000/rpc.
  3. Fill Out the FastMCP Connection Interface

    • Click the "Install Now" button to add the SurrealDB MCP Server.
    • In the FastMCP connection interface, fill in the following environment variables:
      • SURREAL_URL – Your SurrealDB connection URL (e.g., ws://localhost:8000/rpc)
      • SURREAL_USER – Your username (default: root)
      • SURREAL_PASSWORD – Your password (default: root)
      • SURREAL_NAMESPACE – Your namespace (default: test)
      • SURREAL_DATABASE – Your database name (default: test)
  4. Save and Test the Connection

    • Save your changes in the FastMCP interface.
    • Test the connection to ensure your credentials are correct. If there is an error, double-check the values or consult your database administrator.

Summary Table:

Variable Where to Find / Set
SURREAL_URL SurrealDB server instance address
SURREAL_USER SurrealDB admin/created user (default: root)
SURREAL_PASSWORD SurrealDB password (default: root)
SURREAL_NAMESPACE SurrealDB namespace (default: test)
SURREAL_DATABASE SurrealDB database name (default: test)

You are now ready to use SurrealDB through FastMCP!

Quick Start

View on GitHub

More for Database

View All →

Report Issue

Thank you! Your issue report has been submitted successfully.