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 |
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 | {
"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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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