# OtterMind/Chat2DB

Chat2DB is a free, cross-platform, local-first database client and SQL workspace for developers, DBAs, analysts, and data teams. Connect to 40+ databases, manage data, edit and run SQL, and use your own AI model to generate, explain, and optimize queries. Available on desktop, web, Docker, and CLI, with MCP support.

Repository: https://github.com/OtterMind/Chat2DB
Canonical: https://ross.abutalabs.com/products/chat2db
Homepage: https://chat2db.ai
Language: Java
License: NOASSERTION
License Family: other
Topics: ai, mysql, oracle, postgresql, redis, database, clickhouse, database-client, database-gui, database-management, jdbc, llm, mcp, mongodb, sql, sql-client, sql-editor, sql-server, sqlite, text-to-sql
Last push: 2026-08-26T14:07:00+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 98, longevity 83
- inputs: {"age_days": 1170, "days_push": 7, "days_rel": 13, "gap_med": 8.5, "n_releases_24m": 5}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 28038, forks 3023 (observed 2026-08-28T04:11:48.082718+00:00)

## What it is
Chat2DB is a free, cross-platform, local-first database client and SQL workspace supporting 40+ databases including MySQL, PostgreSQL, Oracle, MongoDB, and Redis. It combines visual database management, a full SQL editor, dashboards, and a bring-your-own-model AI assistant for generating, explaining, and optimizing SQL, available as a desktop app, web app, Docker deployment, and CLI with MCP support.

## Use cases
- manage mysql and postgresql databases from a gui client
- generate sql queries from natural language with my own llm
- explain and optimize slow sql queries with ai
- import and export data between databases
- browse and edit table data visually with er diagrams
- build dashboards and charts from database queries
- query databases from the terminal with an mcp-enabled cli

## When to choose
- you need one client for many different database engines
- you want a local-first tool where data and queries stay on your machine
- you want AI SQL assistance but prefer to plug in your own model
- you need visual data management, ER diagrams, and BI dashboards in one tool

## When to avoid
- you need team collaboration, fine-grained permissions, or SSO without a paid plan
- you require a fully permissive open-source license for commercial redistribution
- you only need a lightweight single-database CLI without a GUI

## Facets
- artifact type: application
- maturity: active
- function: database, llm-inference, rag, data-visualization, chatbot, mcp, cli
- domain: databases, developer-tools, data-science, large-language-models, self-hosted
- platform: windows, cli, cross-platform, self-hosted
- tags: database-gui, sql-client, text-to-sql, sql-editor, bring-your-own-model, jdbc, local-first, db-management, macos, linux, docker, web-server

## Member repositories
- OtterMind/Chat2DB (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:48.082718+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:54:27.953199+00:00, confidence not recorded.
  - readme: https://github.com/OtterMind/Chat2DB (fetched 2026-08-28T04:11:48.082718+00:00, sha 706548f55166)
  - homepage: https://chat2db.ai (fetched 2026-08-29T07:51:10.381876+00:00, sha 9f89794381da)
  - site_page: https://chat2db.ai/pricing (fetched 2026-08-29T07:51:10.391729+00:00, sha 64d190621631)
- Data as of 2026-08-30T08:39:29.467469+00:00.
