spotdb
Give your agents a secure, containerized SQL sandbox with MCP or API access enabled with DuckDB. No infra required, quick spin-up cycle. Push any CSV — query, analyze, and move on.
Install
docker run -i --rm docker.io/aliengiraffe/spotdb:0.1.0X-API-Keyoptional · secret — Optional API key for request authentication
README.md
SpotDB
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.
Quick Start
- Tap the repository and install the package:
brew tap aliengiraffe/spaceship && \\
brew install spotdb
- Start the server:
spotdb
- 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"
- Query the data:
curl -X POST \
http://localhost:8080/api/v1/query \
-H "Content-Type: application/json" \
-d '{"query": "SELECT * FROM mytable LIMIT 10"}'
- Setup Claude Code
You must have the
claudecommand 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
Related servers
dbxt8y223K25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。mcp-toolboxgoogleapis17KMCP Toolbox for Databases is an open source MCP server for databases.genai-toolboxgoogleapis17KMCP Toolbox for Databases is an open source MCP server for databases.OpenMetadataopen-metadata15KThe Open Context Layer for Data and AI , OpenMetadata is the open platform for building trusted data context and business semantics for humans, AI assistants, and agents.