Skip to main content
Glama

SpotDB

Quality Gate Status

Lightweight data sandbox for AI workflows and data exploration, enabled with guardrails and security to keep your data safe.

This project provides a lightweight, ephemeral data sandbox designed for large language models (LLMs) and agentic workflows. By providing a secure, isolated environment, it allows AI agents and scripts to analyze data without direct access to production databases. This setup prevents accidental data modification, ensures data privacy, and enforces guardrails for safe data exploration.

Features

  • πŸ–οΈ Ephemeral Data Sandbox: Create temporary databases for AI workflows and data exploration.

  • πŸ“Έ Snapshot: Capture and store data snapshots, recover point-in-time data states or continue from a previous state.

  • 🧠 MCP API: Access data through a Model Context Protocol for seamless integration with AI models and agentic workflows.

  • βš™οΈ REST API: Access data through a RESTful API for integration with traditional systems and workflows.

  • πŸš‚ Guardrails: Enforce rules and constraints to ensure data safety and privacy.

  • πŸ›‘οΈ Security: Protect data from unauthorized access and modification.

Related MCP server: Shifr Shield

Quick Start

  1. Tap the repository and install the package:

brew tap aliengiraffe/spaceship && \\
brew install spotdb
  1. Start the server:

spotdb
  1. Upload a CSV file:

curl -X POST \
  http://localhost:8080/api/v1/upload \
  -F "table_name=mytable" \
  -F "has_header=true" \
  -F "csv_file=@data.csv"
  1. Query the data:

curl -X POST \
  http://localhost:8080/api/v1/query \
  -H "Content-Type: application/json" \
  -d '{"query": "SELECT * FROM mytable LIMIT 10"}'
  1. Setup Claude Code You must have the claude command installed.

Then, you can add the spotdb mcp:

claude mcp add spotdb -s user -- npx -y mcp-remote http://localhost:8081/stream

Use Explorer UI

Open the Explorer UI in your browser and upload files and query the data:

open http://localhost:8080/explorer

Full Documentation

πŸ‘‰ https://github.com/aliengiraffe/spotdb/blob/main/DOCS.md

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants and LLM agents to query operational databases through a read-only MCP gateway with table whitelisting, automatic row limits, sensitive-data masking, and audit logging.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to securely explore and query connected databases and business tools through MCP, with access controls, semantic schema metadata, memory, and streaming or CSV export of large results.
      8
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to browse and query production PostgreSQL, MySQL, and BigQuery databases through governed read-only MCP tools that enforce schema allowlists, inject per-tenant WHERE/JOIN filters at the SQL AST level, and mask PII and secrets before rows reach the model. Validation and rewriting happen deterministically inline, without any additional LLM call in the proxy path.
      1
      Apache 2.0