superdb-mcp
v1.8.1MCP server for SuperDB - execute SuperSQL queries, version detection, and embedded documentation
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
super_query
Execute a SuperDB/SuperSQL query on data files. Returns structured results without shell escaping issues.
| Parameter | Type | Description |
|---|---|---|
query * | string | The SuperSQL query to execute |
data | string | Inline data to query (alternative to files) |
files | array | File paths for pipeline-style input (piped into the query). For SQL FROM clauses, use absolute paths directly in the query instead. |
format | string | Output format (default: json). Binary formats (bsup, db, parquet, arrows) are not supported. |
inputFormat | string | Input format (e.g. json, sup, csv, line, auto). As of SuperDB v0.4.0 a local file's format comes from its extension, so files without a recognized extension need this. |
static | boolean | Statically type-check all inputs (super -static). Needed for SQL features such as SELECT * and alias-qualified joins on JSON/CSV input. |
version | string | SuperDB version (e.g., "0.2.0") resolved via ASDF, or a direct path to a super binary. Omit for default. |
super_schema
Inspect the schema/types of a data file by finding all unique shapes (record types) with counts and examples.
| Parameter | Type | Description |
|---|---|---|
file * | string | Path to the data file |
inputFormat | string | Input format (e.g. json, sup, csv); needed when the file has no recognized extension |
version | string | SuperDB version (e.g., "0.2.0") resolved via ASDF, or a direct path to a super binary. Omit for default. |
super_db_query
Run a query or SQL statements against a SuperDB database. Supports SQL CREATE TABLE, CREATE SUPER TABLE, INSERT INTO, and DROP TABLE (separate statements with ";"); each statement returns a status record, and if one fails, data still holds the records of the statements before it. UPDATE and DELETE statements are not supported.
| Parameter | Type | Description |
|---|---|---|
query * | string | The SuperSQL query or SQL statements to execute |
database | string | Path or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`. |
format | string | Output format (default: json). Binary formats (bsup, db, parquet, arrows) are not supported. |
table | string | Table name, or table@branch. The query reads from it unless the query has its own top-level FROM; an empty query returns the whole table. |
version | string | SuperDB version (e.g., "0.2.0") resolved via ASDF, or a direct path to a super binary. Omit for default. |
super_db_list
List the tables in a SuperDB database, with their sort keys.
| Parameter | Type | Description |
|---|---|---|
database | string | Path or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`. |
version | string | SuperDB version (e.g., "0.2.0") resolved via ASDF, or a direct path to a super binary. Omit for default. |
super_db_create_table
Create a table in a SuperDB database. Tables are unsorted unless orderBy is given. With type, every loaded value is cast to that type and a load is rejected if any value cannot be cast. For SQL column definitions, run CREATE TABLE through super_db_query instead.
| Parameter | Type | Description |
|---|---|---|
name * | string | Name for the new table |
database | string | Path or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`. |
orderBy | string | Sort key with optional :asc or :desc suffix (e.g. "ts:desc"). Cannot be changed later. |
type | string | SUP type that loaded values are cast to (e.g. "{id:int64,msg:string}"). Cannot be changed later. |
version | string | SuperDB version (e.g., "0.2.0") resolved via ASDF, or a direct path to a super binary. Omit for default. |
super_db_load
Load files or inline data into a table in a SuperDB database. Nothing is committed if any value fails to cast to a typed table.
| Parameter | Type | Description |
|---|---|---|
table * | string | Table to load data into |
data | string | Inline data to load (alternative to files) |
database | string | Path or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`. |
files | array | File paths to load |
version | string | SuperDB version (e.g., "0.2.0") resolved via ASDF, or a direct path to a super binary. Omit for default. |
super_help
Get SuperDB documentation (content targets SuperDB v0.4.0). Call this before writing complex queries or when migrating from zq or earlier versions of SuperDB. Topics: expert (overview + section index), expert:<section> (e.g. expert:sql, expert:aggregates), expert:all (full document), upgrade (zq migration), tutorials (list tutorials), tutorial:<name> (read a specific tutorial). Call super_info to check your installed version.
| Parameter | Type | Description |
|---|---|---|
topic * | string | Documentation topic to retrieve |
super_grok_patterns
Search/filter grok patterns by name or regex content (content targets SuperDB v0.4.0). Returns matching patterns as JSON array of {pattern_name, regex} objects. No query returns all patterns.
| Parameter | Type | Description |
|---|---|---|
query | string | Optional filter — matches against pattern name or regex content (case-insensitive substring) |
super_recipes
Search/list available SuperDB recipe functions from the superkit collection (content targets SuperDB v0.4.0). Returns structured JSON with function signatures, descriptions, and usage examples.
| Parameter | Type | Description |
|---|---|---|
query | string | Optional filter — matches against function name, description, or source file (case-insensitive substring) |
super_info
Get SuperDB version info, environment configuration, LSP availability, and installation instructions. Call this to check setup status or learn how to install the optional LSP for enhanced query assistance.
| Parameter | Type | Description |
|---|---|---|
compare_to | string | Optional path to another super binary to compare versions |
version | string | SuperDB version (e.g., "0.2.0") resolved via ASDF, or a direct path to a super binary. Omit for default. |
super_lsp_status
Check if the SuperDB LSP is installed and get installation instructions if not. The LSP enables code completions and documentation lookup for SuperSQL queries.
super_test_compat
Test a query against multiple SuperDB versions to detect syntax breaking changes. Useful for migration testing.
| Parameter | Type | Description |
|---|---|---|
query * | string | The SuperSQL query to test |
versions * | array | Paths to different super binaries to test against |
super_complete
Get code completions for a SuperSQL query at a position. Requires SUPERDB_LSP_PATH to be set.
| Parameter | Type | Description |
|---|---|---|
character * | number | Character offset (0-based) |
line * | number | Line number (0-based) |
query * | string | The SuperSQL query text |
super_docs
Get documentation for a symbol at a position in a SuperSQL query. Requires SUPERDB_LSP_PATH to be set.
| Parameter | Type | Description |
|---|---|---|
character * | number | Character offset (0-based) |
line * | number | Line number (0-based) |
query * | string | The SuperSQL query text |