MCP MySQL Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_HOST | Yes | The MySQL database host | |
| DB_PORT | No | The MySQL database port | 3306 |
| DB_USER | Yes | The MySQL database username | |
| DB_DATABASE | Yes | The MySQL database name | |
| DB_PASSWORD | Yes | The MySQL database 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 |
|---|---|
| queryC | Execute a SQL query on the MySQL database |
| list_tablesA | List all tables in the database |
| describe_tableC | Get the structure/schema of a table |
| insertC | Insert a single row into a table |
| updateC | Update rows in a table |
| deleteC | Delete rows from a table based on a condition |
| connect_dbB | Connect to the MySQL database. This tool does not require any input parameters. |
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 7 tools
The generic `query` tool can perform the same writes as `insert`, `update`, and `delete`, so boundaries between these four tools are fuzzy and an agent must choose between a raw-SQL path and a structured path. Descriptions do help (insert/update/delete are parameterized conveniences), and `list_tables`/`describe_table` are clearly distinct, but `connect_db` taking no parameters adds further uncertainty about connection state.
Mixed conventions: `list_tables`, `describe_table`, and `connect_db` use verb_noun, while `query`, `insert`, `update`, and `delete` are bare verbs. It remains readable and each name is intuitive, but there is no single predictable pattern.
Seven tools is well-scoped for a MySQL server: read, schema inspection, single-row write, bulk update/delete, and connection setup. Each tool earns its place without redundancy in count.
Core CRUD plus schema introspection and raw SQL are covered, which lets agents handle DDL, multi-row inserts, and transactions through `query`. Minor gaps: no batch-insert tool, no explicit transaction/commit controls, and no database-level listing (list_databases) or explain/performance tooling.