DB2TOON MCP server
io.github.kamil5b/db2toon-mcp·v1.4.4·5 starsRead-only SQL database and plain-text SQL dump schema extraction to compact TOON for MCP clients.
5 stars
Reviews
Write oneNobody has reviewed DB2TOON MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
DB2TOON MCP tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-11-04 · same rubric, same numbers if you re-run it
- –Code scanpackage could not be scannedn/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 9 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How DB2TOON MCP compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 75% of 802 Databases servers
- GitHub stars
- 5
- more than 73% of 602 Databases servers
Install DB2TOON MCP in Claude Code, Cursor or VS Code
claude mcp add db2toon-mcp -- docker run -i --rm ghcr.io/kamil5b/db2toon:v1.4.4
What the publisher says
From the DB2TOON MCP repository's README, as published. We do not edit it. Read it on GitHub
db2toon
A CLI tool that converts database schemas into the Toon schema definition format.
Overview
db2toon connects to a database and extracts schema information (tables, columns, types, constraints, indexes, routines, triggers, and examples), then converts it into the human-readable Toon format for database design documentation and visualization. PostgreSQL, SQLite, DuckDB, MySQL/MariaDB, CockroachDB, Microsoft SQL Server, and Oracle are supported. pg2toon remains a PostgreSQL compatibility command.
Features
triggers, routines, extensions, materialized views, packages, and other vendor-specific objects in explicit TOON sections
- Schema Extraction: Automatically extracts tables, columns, and metadata from PostgreSQL, SQLite, DuckDB, MySQL/MariaDB, CockroachDB, Microsoft SQL Server, and Oracle
- Type Normalization: Simplifies PostgreSQL types (e.g., character varying → varchar)
- Relationship Mapping: Converts foreign key constraints to inline references or multi-column references
- Comment Preservation: Includes comments where the database exposes them; SQLite does not have catalog comments
- Index Documentation: Extracts and documents database indexes
- Database Objects: Preserves supported enums, types, sequences, synonyms,
- Cross-Platform: Builds without CGO for Linux, macOS, and Windows (amd64 and arm64)
- DBML Adapter: Converts DBML files (or standard input) into the same TOON format
Installation
From Source
git clone https://github.com/kamil5b/db2toon.git
cd db2toon
CGO_ENABLED=0 go build -o output/db2toon ./cmd/db2toon
CGO_ENABLED=0 go build -o output/pg2toon ./cmd/pg2toon
CGO_ENABLED=0 go build -o output/dbml2toon ./cmd/dbml2toonFrom Releases
Download pre-built binaries from the releases page for your platform.
Go package
The module also exposes a public Go API for callers that want the canonical schema model instead of invoking a command:
import (
"context"
"os"
"github.com/kamil5b/db2toon"
)
func extract() error {
db, err := db2toon.Extract(context.Background(), db2toon.Request{
Dialect: "postgres",
Dump: "./schema.sql",
Options: db2toon.Options{ExampleSample: 2},
})
if err != nil {
return err
}
return db2toon.Encode(os.Stdout, db)
}Set exactly one of Request.DB or Request.Dump. Dump contents are parsed offline and never executed. The public API returns *schema.Database, so callers may inspect or transform the model before encoding it.
Usage
LLM tool integration
Build and run the MCP-compatible stdio server:
CGO_ENABLED=0 go build -o output/db2toon-mcp ./cmd/db2toon-mcp
./output/db2toon-mcpThe server exposes db2toon.extractschema. Its required argument is dialect (postgres, sqlite, duckdb, mysql, mariadb, cockroachdb, mssql, sqlserver, or oracle). Provide exactly one of db or dump; optional extraction settings are supplied in an options object. Dump files are parsed offline and never executed. The tool is read-only, uses a 30-second default timeout, and limits responses to 4 MiB. Set options.timeout and options.maxoutput_bytes to lower limits when needed. Connection strings are never included in tool errors or results.
Basic Usage
./db2toon postgres -db "postgresql://user:password@localhost/dbname"
# SQLite database file
./db2toon sqlite -db ./schema.db
# Plain-text SQL dump
./db2toon postgres -dump ./schema.sql
./db2toon sqlite -dump ./schema.sql
./db2toon mysql -dump ./schema.sql
./db2toon mssql -dump ./schema.sql
./db2toon oracle -dump ./schema.sql
# DuckDB database file (requires libduckdb at runtime)
./db2toon duckdb -db ./analytics.duckdb
# Microsoft SQL Server (defaults to dbo)
./db2toon mssql -db 'sqlserver://sa:password@localhost:1433?database=app&encrypt=disable'Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Grade history
- 2026-11-04restoreB → Ascore 88
DB2TOON MCP: common questions
- Is DB2TOON MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the DB2TOON MCP safety report
- How do I install DB2TOON MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does DB2TOON MCP need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is DB2TOON MCP maintained?
- The last commit was 9 days ago (2026-10-26). The latest release is v1.4.4.
- What can I use instead of DB2TOON MCP?
- Servers from other publishers that do the same job: LINQ to DB MCP server, Grain SQL MCP server and Schemagate MCP server.
- How does DB2TOON MCP compare with other Databases MCP servers?
- safety score 88/100 (higher than 75% of 802 Databases servers); github stars 5 (more than 73% of 602 Databases servers). Full comparison.
Alternatives to DB2TOON MCP
Same job from other publishers: the closest match first, then the best rated.
- LINQ to DBInspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.not reviewedEstablishedA
Grain SQLRun SQL queries and inspect database schemas through safe, visible MCP tools.not reviewedGrowingB- SchemagateIdentity-scoped schema selection for text-to-SQL. Returns only the tables the caller may read.not reviewedGrowingB
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
AirtableRead and write access to Airtable database schemas, tables, and records.not reviewedEstablishedB