MySQL CRUD MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| TYPE | No | Database type for the INI [DATABASE] section format (e.g., mysql). | |
| CHARSET | No | Database character set. Alias of CHARACTER_SET. | |
| DB_HOST | No | Database host. Alias of MYSQL_HOST / DATABASE_HOST / HOSTNAME. | |
| DB_NAME | No | Database name. Alias of MYSQL_DATABASE / DATABASE_NAME / DATABASE / DB_DATABASE. | |
| DB_PORT | No | Database port. Alias of MYSQL_PORT / DATABASE_PORT / HOSTPORT. | |
| DB_USER | No | Database user. Alias of MYSQL_USER / MYSQL_USERNAME / DB_USERNAME / USERNAME. | |
| DATABASE | No | Database name for the INI [DATABASE] section format. Alias of MYSQL_DATABASE / DB_NAME / DATABASE_NAME / DB_DATABASE. | |
| HOSTNAME | No | Database host for the INI [DATABASE] section format. Alias of MYSQL_HOST / DB_HOST / DATABASE_HOST. | |
| HOSTPORT | No | Database port for the INI [DATABASE] section format. Alias of MYSQL_PORT / DB_PORT / DATABASE_PORT. | |
| PASSWORD | No | Database password for the INI [DATABASE] section format. Alias of MYSQL_PASSWORD / DB_PASSWORD / DATABASE_PASSWORD. | |
| USERNAME | No | Database user for the INI [DATABASE] section format. Alias of MYSQL_USER / DB_USER / MYSQL_USERNAME / DB_USERNAME. | |
| MYSQL_HOST | No | Database host. Alias of DB_HOST / DATABASE_HOST / HOSTNAME. | |
| MYSQL_PORT | No | Database port. Alias of DB_PORT / DATABASE_PORT / HOSTPORT. | |
| MYSQL_USER | No | Database user. Alias of DB_USER / MYSQL_USERNAME / DB_USERNAME / USERNAME. | |
| DB_DATABASE | No | Database name. Alias of MYSQL_DATABASE / DB_NAME / DATABASE_NAME / DATABASE. | |
| DB_PASSWORD | No | Database password. Alias of MYSQL_PASSWORD / DATABASE_PASSWORD / PASSWORD. | |
| DB_USERNAME | No | Database user. Alias of MYSQL_USER / DB_USER / MYSQL_USERNAME / USERNAME. | |
| CHARACTER_SET | No | Database character set. Alias of CHARSET. | |
| DATABASE_HOST | No | Database host. Alias of MYSQL_HOST / DB_HOST / HOSTNAME. | |
| DATABASE_NAME | No | Database name. Alias of MYSQL_DATABASE / DB_NAME / DATABASE / DB_DATABASE. | |
| DATABASE_PORT | No | Database port. Alias of MYSQL_PORT / DB_PORT / HOSTPORT. | |
| MYSQL_TIMEOUT | No | Connection timeout in milliseconds (default 10 seconds). | 10000 |
| MYSQL_DATABASE | No | Database name. Alias of DB_NAME / DATABASE_NAME / DATABASE / DB_DATABASE. | |
| MYSQL_PASSWORD | No | Database password. Alias of DB_PASSWORD / DATABASE_PASSWORD / PASSWORD. | |
| MYSQL_USERNAME | No | Database user. Alias of MYSQL_USER / DB_USER / DB_USERNAME / USERNAME. | |
| DATABASE_PASSWORD | No | Database password. Alias of MYSQL_PASSWORD / DB_PASSWORD / PASSWORD. |
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 |
|---|---|
| mysql_selectC | 执行 SELECT 查询。自动读取项目 .env 配置连接数据库。 |
| mysql_insertC | 执行 INSERT 查询。 |
| mysql_updateC | 执行 UPDATE 查询。 |
| mysql_deleteD | 执行 DELETE 查询。 |
| mysql_infoC | 获取连接信息。 |
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
Each tool maps to a clearly distinct SQL operation (SELECT, INSERT, UPDATE, DELETE) plus a connection-info tool. There is no realistic overlap or ambiguity between them.
All names use the same mysql_ prefix followed by a concise operation verb. The pattern is predictable and consistent snake_case throughout.
Five tools is a tight, well-scoped surface for a MySQL CRUD server. Each tool corresponds directly to a core database operation with no filler.
The CRUD lifecycle is fully covered and mysql_info provides connection context. However, there is no schema discovery or table-listing tool, so an agent working against an unfamiliar database cannot inspect tables or columns before writing queries.