MySQL MCP
by Liu-creators
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_HOST | Yes | MySQL server host address | |
| MYSQL_PORT | No | MySQL server port | 3306 |
| MYSQL_USER | Yes | MySQL username | |
| MYSQL_DATABASE | Yes | MySQL database name | |
| MYSQL_PASSWORD | Yes | MySQL password | |
| MYSQL_CONNECTION_TIMEOUT | No | Connection timeout in seconds | 10 |
| MYSQL_CONNECT_RETRY_COUNT | No | Number of connection retry attempts | 3 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| execute_queryA | 执行SQL查询语句,返回查询结果 |
| list_tablesA | 列出指定数据库中的所有表 |
| describe_tableA | 获取表结构 |
| create_tableB | 创建新表 |
| insert_dataB | 向表中插入数据 |
| update_dataB | 更新表中的数据 |
| delete_dataB | 从表中删除数据 |
| use_databaseC | 切换到指定的数据库 |
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/Liu-creators/mysql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server