MCP Server for universal database operations - supports MySQL, PostgreSQL, H2, SQLite, SQL Server, Oracle and more
Server exposes 5 database tools with complete JSON schemas and descriptions in Chinese. All tools have proper input schemas with typed parameters and descriptions. However, descriptions lack LLM-optimized structure (no WHAT/WHEN/WHY breakdown), output schemas are undocumented, and error handling guidance is absent. Tools accept credentials as parameters (critical security issue), violating secret-injection pattern. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels. Naming is clear (verb_noun pattern) but descriptions are verbose and lack actionable recovery guidance.
获取指定表的完整列信息。 返回:列名、数据类型、是否可空、默认值、是否主键、是否自增、注释等。
执行只读 SQL 查询(SELECT / WITH / SHOW / DESCRIBE / EXPLAIN)。 返回 JSON 数组格式的查询结果,包含列名和数据行。默认最多返回100行。 如需执行写操作,请使用 executeUpdate 工具。
执行写操作 SQL 语句(INSERT / UPDATE / DELETE / CREATE / ALTER / DROP / TRUNCATE)。 返回受影响的行数。执行前需确认操作的合法性和安全性。
获取指定表的所有索引信息。 返回:索引名、列名、是否唯一索引、排序方向等。
列出数据库中的所有表。 需要提供完整的数据库连接信息(类型、主机、端口、数据库名、用户名、密码)。 返回:表名、表类型(TABLE/VIEW)、所属模式等信息。
Credentials exposed as tool parameters (type, host, port, database, username, password). Secrets in parameters are logged in traces and prompt history, violating secret-injection pattern. Use server-side secret injection via environment variables or vault instead.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite clear risk levels. executeUpdate is marked WRITE but lacks destructiveHint annotation. Prevents clients from applying appropriate safety guards.
Output schemas are not documented. LLMs cannot plan downstream calls or extract required fields. listTables, describeTable, listIndexes, executeQuery, executeUpdate all lack documented return types and field structures.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 55 | <=2025-11-25 | v2 |
Descriptions lack LLM-optimized structure. No clear WHAT/WHEN/WHY breakdown. Descriptions are verbose (200+ chars) and in Chinese, making them harder for English-speaking LLMs to parse. No dependency hints or recovery guidance.
No error handling guidance. Tools do not document what errors can occur, whether they are retryable, or what the LLM should do next. executeUpdate (destructive) lacks confirmation/dry-run pattern.