An MCP (Model Context Protocol) server for SuperDB that enables AI assistants to better compose SuperSQL queries, optionally backed by an LSP.
SuperDB is the successor to zq from Brim Data. As of Jan 2026, it is still in pre-release with limited public documentation, so LLMs have little knowledge of its syntax. This MCP server provides the context AI assistants need to write correct queries.
# Install for current project only
claude mcp add superdb -- npx -y superdb-mcp@latest
# Install for all projects (user scope)
claude mcp add --scope user superdb -- npx -y superdb-mcp@latestUsing @latest auto-upgrades the MCP server on each Claude launch. To pin a
specific version, replace @latest with a version number (e.g., @0.51231.6).
Add to your Claude Code settings (~/.claude/settings.json) or project .mcp.json:
{
"mcpServers": {
"superdb": {
"command": "npx",
"args": ["-y", "superdb-mcp@latest"]
}
}
}Or install globally:
npm install -g superdb-mcp{
"mcpServers": {
"superdb": {
"command": "superdb-mcp"
}
}
}git clone https://github.com/chrismo/superdb-mcp.git
cd superdb-mcp
npm install
npm run build{
"mcpServers": {
"superdb": {
"command": "node",
"args": ["/path/to/superdb-mcp/dist/index.js"]
}
}
}Execute a SuperSQL query on data files.
query: string # Required: The SuperSQL query
files?: string[] # File paths to query
data?: string # Inline data (alternative to files)
format?: string # Output: json (default), sup, csv, table
inputFormat?: string # Force input format
Validate query syntax without executing.
query: string # The query to validate
Inspect types in a data file by sampling records.
file: string # Path to data file
sample?: number # Records to sample (default: 5)
List all pools in a SuperDB database.
lake?: string # Lake path (default: ~/.super)
Query data from a database pool.
query: string # The SuperSQL query
pool?: string # Pool name
lake?: string # Lake path
format?: string # Output format
Load data into a pool.
pool: string # Pool name
files?: string[] # Files to load
data?: string # Inline data
lake?: string # Lake path
Create a new pool.
name: string # Pool name
orderBy?: string # Sort key
lake?: string # Lake path
Get SuperDB version info, environment configuration, LSP availability, and installation instructions.
compare_to?: string # Optional path to another super binary to compare
Check if the SuperDB LSP is installed and get installation instructions if not.
# No parameters - returns availability status and setup instructions
Get SuperDB documentation (bundled expert guide or migration docs).
topic: string # "expert", "upgrade", "upgrade-guide", or "migration"
Test a query against multiple SuperDB versions to detect breaking changes.
query: string # The query to test
versions: string[] # Paths to different super binaries
Require SUPERDB_LSP_PATH environment variable to be set.
Get code completions for a SuperSQL query at a cursor position.
query: string # The query text
line: number # Line number (0-based)
character: number # Character offset (0-based)
Get documentation for a symbol at a position in a query.
query: string # The query text
line: number # Line number (0-based)
character: number # Character offset (0-based)
With the MCP server configured, Claude can execute queries like:
super_query({
query: "where status == 'active' | aggregate count() by category",
files: ["data.json"]
})
No shell escaping needed - the query string is passed directly.
- Node.js 18+
superbinary in PATH:- Homebrew (official, latest build)
- asdf-superdb (community, versioned builds)
SuperDB is in active pre-release development without official versioned releases. The only official builds are via Homebrew cask, identified by git SHA rather than version numbers.
To manage this, this repo uses pseudo-versions in the format 0.YMMDD (last
digit of year + month + day). For example, 0.51231 represents a build from
2025-12-31. See
asdf-superdb
for more details on the versioning scheme.
This MCP server versions to match the bundled documentation:
0.51231.0- initial release with docs for SuperDB pseudo-version 0.512310.51231.1,.2, etc. - MCP-only patches (no doc changes)
The super_info tool reports both your runtime version and the bundled docs version, warning if they differ.
BSD 3-Clause License