superdb-mcp

v1.8.1
superdb-mcp Checked 4 hours ago Published 29 days ago

MCP 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.

ParameterTypeDescription
query *stringThe SuperSQL query to execute
datastringInline data to query (alternative to files)
filesarrayFile paths for pipeline-style input (piped into the query). For SQL FROM clauses, use absolute paths directly in the query instead.
formatstringOutput format (default: json). Binary formats (bsup, db, parquet, arrows) are not supported.
inputFormatstringInput 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.
staticbooleanStatically type-check all inputs (super -static). Needed for SQL features such as SELECT * and alias-qualified joins on JSON/CSV input.
versionstringSuperDB 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.

ParameterTypeDescription
file *stringPath to the data file
inputFormatstringInput format (e.g. json, sup, csv); needed when the file has no recognized extension
versionstringSuperDB 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.

ParameterTypeDescription
query *stringThe SuperSQL query or SQL statements to execute
databasestringPath or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`.
formatstringOutput format (default: json). Binary formats (bsup, db, parquet, arrows) are not supported.
tablestringTable 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.
versionstringSuperDB 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.

ParameterTypeDescription
databasestringPath or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`.
versionstringSuperDB 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.

ParameterTypeDescription
name *stringName for the new table
databasestringPath or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`.
orderBystringSort key with optional :asc or :desc suffix (e.g. "ts:desc"). Cannot be changed later.
typestringSUP type that loaded values are cast to (e.g. "{id:int64,msg:string}"). Cannot be changed later.
versionstringSuperDB 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.

ParameterTypeDescription
table *stringTable to load data into
datastringInline data to load (alternative to files)
databasestringPath or URL of the database (passed as `super db -attach`). Omit to use the database attached with `super db attach`.
filesarrayFile paths to load
versionstringSuperDB 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.

ParameterTypeDescription
topic *stringDocumentation 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.

ParameterTypeDescription
querystringOptional 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.

ParameterTypeDescription
querystringOptional 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.

ParameterTypeDescription
compare_tostringOptional path to another super binary to compare versions
versionstringSuperDB 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.

ParameterTypeDescription
query *stringThe SuperSQL query to test
versions *arrayPaths 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.

ParameterTypeDescription
character *numberCharacter offset (0-based)
line *numberLine number (0-based)
query *stringThe SuperSQL query text

super_docs

Get documentation for a symbol at a position in a SuperSQL query. Requires SUPERDB_LSP_PATH to be set.

ParameterTypeDescription
character *numberCharacter offset (0-based)
line *numberLine number (0-based)
query *stringThe SuperSQL query text