mysql
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_HOST | Yes | MySQL server hostname or IP | |
| MYSQL_PORT | No | MySQL server port | 3306 |
| MYSQL_USER | Yes | MySQL username | |
| MYSQL_DATABASE | No | Default database (can be overridden per tool call) | |
| MYSQL_PASSWORD | Yes | MySQL password |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mysql_list_databasesA | List all databases on the MySQL server. Returns database names the current user has access to. Returns:
|
| mysql_list_tablesA | List all tables in a MySQL database. Args:
Returns:
|
| mysql_describe_tableA | Get column definitions for a MySQL table (equivalent to DESCRIBE or SHOW COLUMNS). Args:
Returns column info: Field, Type, Null, Key, Default, Extra |
| mysql_show_create_tableA | Get the full CREATE TABLE DDL statement for a table. Args:
Returns the complete CREATE TABLE SQL with all indexes, constraints, and engine settings. |
| mysql_queryA | Execute a read-only SELECT query against MySQL. Only SELECT and SHOW/EXPLAIN statements are permitted. Use mysql_execute for write operations. Args:
Returns:
Examples:
|
| mysql_executeA | Execute a write SQL statement (INSERT, UPDATE, DELETE, DDL). WARNING: This tool modifies data. Use with caution. Args:
Returns: { affectedRows: number, insertId: number, changedRows: number } Examples:
|
| mysql_table_statsA | Get row count and size statistics for tables in a database. Args:
Returns per table: table_name, row_count, data_size_mb, index_size_mb, engine, create_time |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/donald-ada/mysql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server