db-query-mcp is an MCP tool that enables data querying and export operations across diverse databases.
Until 2026-09-26 this record combined several servers published from one repository. The others now have records of their own: iflow-mcp_db-query-mcp. Checks from before that date include them.
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"db-query-mcp","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
   [](https://pypi.org/project/db-query-mcp/) [](https://github.com/Shulin-Zhang/db-query-mcp/pulls) [ English | [中文](README_ZH.md) ] # db-query-mcp ## Introduction db-query-mcp is a mcp tool supporting diverse database querying and exporting, featuring: - **Multi-DB Support**: Full compatibility with mainstream databases (ElasticSearch, MySQL, PostgreSQL, Oracle, SQLite, etc.) - **Secure Access**: Default read-only mode for data protection - **Smart Query**: Natural language to SQL conversion with query optimization - **Data Export**: CSV / Json export capabilities - **Roadmap**: Expanding support for MongoDB and GraphDatabase to become full-stack DB query MCP ## Demo https://github.com/user-attachments/assets/60771cda-8b52-41bd-90e3-523c836f6366 ## Changelog - 2025-06-02: Added support for ElasticSearch database queries ## Installation ```bash pip install db-query-mcp ``` ElasticSearch: ```bash pip install "db-query-mcp[elasticsearch]" ``` Install from GitHub: ```bash pip install git+https://github.com/NewToolAI/db-query-mcp ``` **MySQL requires additional dependencies:** ```bash pip install pymysql ``` **PostgreSQL requires additional dependencies:** ```bash pip install psycopg2-binary ``` **For other databases, install their respective connection packages:** | Database | Connection Package | Example Connection String | |-------------|--------------------------|---------------------------| | **SQLite** | Built-in Python | `sqlite:///example.db` | | **MySQL** | `pymysql` or `mysql-connector-python` | `mysql+pymysql://user:password@localhost/dbname` | | **PostgreSQL** | `psycopg2` or `psycopg2-binary` | `postgresql://user:password@localhost:5432/dbname` | |…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.