Oracle / 达梦 / MySQL 数据库 MCP 工具(stdio 本地版,复用 jdbc.properties)
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":"open-db-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.
<div align="center"> # ⚡ open-db-mcp ### 🔌 多数据源数据库 MCP 工具 · stdio 本地版 **让 LLM Agent 安全、高效地访问你的数据库** [](https://opensource.org/licenses/MIT) [](https://www.python.org/) [](https://modelcontextprotocol.io) [](#-支持的数据库) **简体中文** | [English](README_EN.md) </div> --- ## 📖 简介 **open-db-mcp** 是一个基于 [Model Context Protocol (MCP)](https://modelcontextprotocol.io) 的多数据源数据库工具,通过 **stdio 本地进程**与 Claude Desktop / Cursor / Trae 等 AI 客户端即插即用,向 LLM Agent 暴露**受限且安全**的查询与写入能力。 > 💡 零网络依赖 · 三层安全护栏 · 一键切换数据源 · 开箱即用 --- ## ✨ 核心特性 | | 特性 | 说明 | |---|------|------| | 🗄️ | **多驱动支持** | MySQL、Oracle、达梦(DM)、PostgreSQL、Vastbase、openGauss、SQLite,统一 `DriverAdapter` 抽象 | | 🚀 | **零网络依赖** | stdio 本地进程,与 Claude Desktop / Cursor / Trae 即插即用 | | 🔄 | **多数据源管理** | 支持 `datasources.json` 或 Kettle 风格 `jdbc.properties`,一键切换数据源 | | 🛡️ | **安全护栏** | 三层白名单(read / write / ddl)+ WHERE 强制 + 影响行数预检 + JSONL 审计 | | 🔒 | **SQL 注入防御** | 基于 sqlparse 的 SQL 语义分析 + 白名单校验,双保险 | | 📦 | **可打包分发** | PyInstaller 三平台单文件可执行,团队成员无需装 Python | | 🔁 | **事务支持** | `begin_transaction` / `commit` / `rollback` 跨语句事务 | | 📤 | **数据导入导出** | CSV / JSON 格式,支持批量导入 | | 🔍 | **Schema Diff** | 跨数据源表结构对比,列 / 索引级差异检测 | | 🧩 | **插件化驱动** | 基于 `entry_points` 的驱动插件体系,易于扩展 | --- ## 🗄️ 支持的数据库 | 数据库 | Driver | 依赖 | |--------|--------|------| | 🐬 MySQL | `mysql` | PyMySQL + DBUtils | | 🔴 Oracle | `oracle` | oracledb thin 模式 | | 🏮 达梦 DM | `dm` | JayDeBeApi + JPype1 + DmJdbcDriver jar(内置打包,自动搜索) | | 🐘 PostgreSQL | `postgres` | psycopg2-binary(可选) | | 🌊 海量数据库 Vastbase | `vastbase` | psycopg2-binary(复用 postgres 驱动) | | 🌿…
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.