mysql-mcp-ddz
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_DB | Yes | 数据库名称(必填) | |
| MYSQL_HOST | No | 数据库主机 | 127.0.0.1 |
| MYSQL_PORT | No | 数据库端口 | 3306 |
| MYSQL_USER | No | 数据库用户 | root |
| MYSQL_PASSWORD | No | 数据库密码 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| connect_dbC | Connect to MySQL database |
| queryB | Execute a SELECT query |
| executeB | Execute an INSERT, UPDATE, or DELETE query |
| list_tablesA | List all tables in the database |
| describe_tableB | Get table structure |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
query and execute are the closest pair, but their descriptions clearly split read (SELECT) from write (INSERT/UPDATE/DELETE) operations, making selection straightforward. list_tables and describe_table both introspect schema but target different granularity (table inventory vs column structure). connect_db is distinct as a session setup step.
Three tools follow a verb_noun pattern (connect_db, list_tables, describe_table) while query and execute are bare verbs with no object, creating a mixed convention. The names are still readable and guessable, but not a predictable pattern throughout.
Five tools is a tight, well-scoped surface for a database access server — each tool maps to a real distinct operation with no filler. It is on the lean side (no schema/DDL or transaction tooling), but nothing is redundant.
Core DML is covered (SELECT via query, writes via execute) plus basic schema discovery, but there are notable gaps: no DDL (create/alter/drop table), no index or SHOW/EXPLAIN inspection, no transaction control, and no explicit disconnect/connection management. Agents needing schema changes or multi-statement transactions will hit dead ends.