Skip to main content
Glama
chrismo

SuperDB MCP Server

by chrismo

SuperDB MCP Server

An MCP (Model Context Protocol) server for SuperDB that enables AI assistants to better compose SuperSQL queries, optionally backed by an LSP.

About

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.

Installation

Claude Code CLI

# 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@latest

Using @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).

Manual Configuration

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" } } }

From Source

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"] } } }

Tools

Query Tools

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)

Database Tools

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

Info Tools

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

LSP Tools

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)

Example Usage

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.

Requirements

  • Node.js 18+

  • super binary in PATH:

Versioning

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

  • 0.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.

License

BSD 3-Clause License

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrismo/superdb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server