MCP Server for MySQL-protocol databases - schema discovery, SQL analysis, safe execution
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":"mysql-mcp-py","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.
# MySQL MCP Server (mysql-mcp-py) 支持 MySQL 协议的 MCP Server:连接与元数据发现、SQL 分析、安全执行(单条,DDL 不执行,写操作需确认)。 ## 环境变量 ### 必填(单连接) | 变量 | 说明 | |------|------| | `DB_HOST` | 主机 | | `DB_USER` | 用户名 | | `DB_PASSWORD` | 密码 | | `DB_PORT` | 端口,默认 3306 | | `DB_DATABASE` | 默认库,可选 | ### 多环境(仅方式二:TEST_DB_PROFILES / UAT_DB_PROFILES / PROD_DB_PROFILES) - **多环境只配三个变量**:`TEST_DB_PROFILES`、`UAT_DB_PROFILES`、`PROD_DB_PROFILES`,每个为 **JSON 数组** `[{},{}]`,表示该环境下的一条或多条连接。**不需**再配 `DB_HOST`/`DB_USER`/`DB_PASSWORD`。 - 每个数组项需含 `host`、`port`、`user`、`password`;可选 `database`、`description`、`databases`、`name`(子名)。 - Profile 名:`test_0`、`test_1`、`test_finance`(若该项含 `"name":"finance"`)、`uat_0`、`prod_0` 等。默认连接取 prod 下第一个(如 `prod_0`)。 - **单环境**:不设任一 `*_DB_PROFILES` 时,只配 `DB_HOST`、`DB_USER`、`DB_PASSWORD`(及可选 `DB_PORT`、`DB_DATABASE`)。 **示例(test / uat / prod 三环境)**: ```bash TEST_DB_PROFILES='[{"host":"test-db.example.com","port":3306,"user":"t1","password":"xxx","database":"app_test","description":"测试环境","databases":["app_test"]}]' UAT_DB_PROFILES='[{"host":"uat-db.example.com","port":3306,"user":"u1","password":"yyy","database":"app_uat","description":"UAT环境","databases":["app_uat"]}]' PROD_DB_PROFILES='[{"host":"db.example.com","port":3306,"user":"ro","password":"zzz","database":"app","description":"生产环境","databases":["app","report"]}]' ``` 测试环境多条连接时,数组里放多项即可,例如: ```bash TEST_DB_PROFILES='[{"host":"t1","port":3306,"user":"u","password":"p","database":"app"},{"host":"t2","port":3306,"user":"u","password":"p","database":"order","name":"order"}]' # → profile 为 test_0、test_order ``` 调用时传 `connection="test_0"` 或 `connection="prod_0"` 等指定用哪条。 **让智能体根据自然语言选连接**:每项可配 `description`,`list_connections` / `db://config` 会展示,便于将用户说的「测试」「生产」映射到 profile 名。 **每个连接聚焦若干数据库**:每项可配 `databases`:**不配置** → 默认所有库;**空数组 `[]`** → 不允许任何库;**非空数组** → 仅允许这些库。 ### 安全与行为 | 变量 | 默认 | 说明 | |------|------|------| | `DB_READ_ONLY` | false | 为 true 时仅允许 SELECT | | `DB_MAX_SELECT_ROWS` | 10000 | SELECT 单次最大行数 | | `DB_QUERY_TIMEOUT_SE…
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.