MCP server for SuperDB - execute SuperSQL queries, version detection, and embedded documentation
npm install superdb-mcpAn 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.
Add to your Claude Code settings (~/.claude/settings.json) or project .mcp.json:
``json`
{
"mcpServers": {
"superdb": {
"command": "npx",
"args": ["-y", "superdb-mcp"]
}
}
}
Or install globally:
`bash`
npm install -g superdb-mcp
`json`
{
"mcpServers": {
"superdb": {
"command": "superdb-mcp"
}
}
}
`bash`
git clone https://github.com/chrismo/superdb-mcp.git
cd superdb-mcp
npm install
npm run build
`json`
{
"mcpServers": {
"superdb": {
"command": "node",
"args": ["/path/to/superdb-mcp/dist/index.js"]
}
}
}
#### super_query
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
#### super_validate
Validate query syntax without executing.
``
query: string # The query to validate
#### super_schema
Inspect types in a data file by sampling records.
``
file: string # Path to data file
sample?: number # Records to sample (default: 5)
#### super_db_list
List all pools in a SuperDB database.
``
lake?: string # Lake path (default: ~/.super)
#### super_db_query
Query data from a database pool.
``
query: string # The SuperSQL query
pool?: string # Pool name
lake?: string # Lake path
format?: string # Output format
#### super_db_load
Load data into a pool.
``
pool: string # Pool name
files?: string[] # Files to load
data?: string # Inline data
lake?: string # Lake path
#### super_db_create_pool
Create a new pool.
``
name: string # Pool name
orderBy?: string # Sort key
lake?: string # Lake path
#### super_info
Get SuperDB version info, environment configuration, LSP availability, and installation instructions.
``
compare_to?: string # Optional path to another super binary to compare
#### super_lsp_status
Check if the SuperDB LSP is installed and get installation instructions if not.
``No parameters - returns availability status and setup instructions
#### super_help
Get SuperDB documentation (bundled expert guide or migration docs).
``
topic: string # "expert", "upgrade", "upgrade-guide", or "migration"
#### super_test_compat
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.
#### super_complete
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)
#### super_docs
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+
- super binary 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 (last0.51231
digit of year + month + day). For example, 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