Skip to main content
MCP server CX Codex

DB2TOON MCP — Claude Code MCP server: setup and features

Extracts a database schema or parses a SQL dump into TOON for an MCP client. Use it when an agent needs to inspect tables and relationships.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add db2toon-mcp -- docker run -i --rm ghcr.io/kamil5b/db2toon:v1.4.4
Open on GitHub

What DB2TOON MCP does

The server exposes db2toon.extract_schema. Give it a database dialect and either a database connection or a plain-text SQL dump; it returns the schema in TOON. Dump files are parsed offline, not run as SQL. Supported dialects include PostgreSQL, SQLite, DuckDB, MySQL, MariaDB, CockroachDB, SQL Server, and Oracle.

Extraction is read-only. The default operation timeout is 30 seconds, and responses are capped at 4 MiB; both limits can be lowered through options. Claude Code setup runs the server in Docker. DuckDB needs libduckdb at runtime, so check that dependency before using that dialect.

What it helps with

  • inspect tables and columns in a database
  • parse a SQL dump without executing it
  • give an agent schema relationships and indexes
  • produce a TOON schema for documentation

Example prompts for the agent

  • Inspect the PostgreSQL schema in ./schema.sql and explain how its tables relate.
  • Review ./schema.db and list the SQLite tables with their columns.
  • Parse ./schema.sql as a MySQL dump and return its schema in TOON.

How to install DB2TOON MCP

Platform CLI

claude mcp add db2toon-mcp -- docker run -i --rm ghcr.io/kamil5b/db2toon:v1.4.4

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about DB2TOON MCP

How do I install DB2TOON MCP in Claude Code?

Run claude mcp add db2toon-mcp -- docker run -i --rm ghcr.io/kamil5b/db2toon:v1.4.4. This registers the server and starts it through Docker.

What does DB2TOON MCP do?

It extracts a database schema or parses a SQL dump, then makes the result available in TOON through db2toon.extract_schema.

Does DB2TOON MCP execute SQL dumps?

No. It parses dump files offline and does not run their SQL statements. The server performs read-only extraction.

Similar MCP servers

All MCP servers for Data and databases →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor