# spotdb [Health: Active]

**Category:** 🗄️ Databases  
**Repository:** https://github.com/aliengiraffe/spotdb  
**GitHub Stars:** 22  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/spotdb

## Description
Ephemeral data sandbox for AI workflows with guardrails and security

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/aliengiraffe/spotdb), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
brew tap aliengiraffe/spaceship && \\
brew install spotdb
```

2. Start the server:

```sh
spotdb
```

3. Add to Claude Code:

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

## Documentation

## What spotdb does

The spotdb MCP server provides an ephemeral data sandbox for AI workflows, scripts, and exploratory analysis. Instead of giving an agent direct access to a production database, you can load data into a temporary environment and let the agent work against that copy. The project is listed in the 🗄️ Databases category and is aimed at safer analysis of data that may otherwise be risky to expose directly.

CSV files can be uploaded as tables, and the resulting data can be queried with SQL. The sandbox also supports snapshots, allowing a point-in-time state to be captured, recovered, or used as the basis for continuing work. Guardrails and security controls are intended to reduce unintended modification and unauthorized access during exploration.

## How it works

Running the `spotdb` command starts the local service. A separate query endpoint accepts SQL in a JSON request, such as a query that returns a limited set of rows.

MCP access is provided through a stream endpoint on port 8081. An MCP-compatible client can connect to that endpoint through `mcp-remote`, allowing an AI workflow to work with the sandbox through the Model Context Protocol. The project also includes an Explorer UI at `/explorer` for browser-based uploads and queries.

## Setup and configuration

The documented installation path uses Homebrew:

```bash
brew tap aliengiraffe/spaceship
brew install spotdb
spotdb
```

After the service starts, upload a CSV through `POST http://localhost:8080/api/v1/upload` and query it through `POST http://localhost:8080/api/v1/query`.

For Claude Code, the documented connection command is:

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

This requires the `claude` command to be installed. The browser interface is available at `http://localhost:8080/explorer` after startup.

## Tools and capabilities

The spotdb MCP server supports these documented capabilities:

- Create temporary databases for agent workflows and data exploration.
- Import CSV files into named tables.
- Run SQL queries against sandbox data.
- Capture and restore snapshots of data states.
- Expose access through MCP and REST APIs.
- Apply guardrails and security measures intended to protect data.

Consult the project documentation before building a client that depends on specific MCP operations.

## Limitations and notes

The sandbox is described as ephemeral, so it should not be treated as the permanent system of record. Its purpose is isolated analysis rather than direct production database administration. The README confirms REST and MCP access, but it does not document supported database engines, retention behavior, authentication details, authorization configuration, or the precise snapshot lifecycle.

The documented examples use local endpoints and ports 8080 and 8081. Deployments that expose those endpoints beyond the local machine should verify the project’s security and access-control configuration before handling sensitive data.

_Full upstream README: https://allmcps.com/mcp/spotdb/readme_

