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.
claude mcp add db2toon-mcp -- docker run -i --rm ghcr.io/kamil5b/db2toon:v1.4.4What 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.sqland explain how its tables relate. - Review
./schema.dband list the SQLite tables with their columns. - Parse
./schema.sqlas 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.4Platform CLI
codex mcp add db2toon-mcp -- docker run -i --rm ghcr.io/kamil5b/db2toon:v1.4.4Config file
{
"mcpServers": {
"db2toon-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kamil5b/db2toon:v1.4.4"
]
}
}
}Config file
{
"servers": {
"db2toon-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/kamil5b/db2toon:v1.4.4"
]
}
}
}Platform CLI
gemini mcp add db2toon-mcp docker run -i --rm ghcr.io/kamil5b/db2toon:v1.4.4Step 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.