mysql-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_HOST | Yes | Database server hostname or IP address. | |
| MYSQL_PORT | Yes | Database server port. | |
| MYSQL_USER | Yes | Database username. | |
| MYSQL_DATABASE | Yes | Database name to connect to. | |
| MYSQL_PASSWORD | Yes | Database password. | |
| MYSQL_READONLY | No | Optional. Set to 'true' for read-only access. | false |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| statusC | Check the current database connection status. |
| connectC | Connect to a MySQL database. |
| disconnectB | Close the current MySQL database connection. |
| queryC | Execute an SQL query on the connected database. |
| list_tablesB | Get a list of tables in the current database. |
| describe_tableA | Get the structure of a specific table. |
| list_databasesB | Get a list of all accessible databases on the server. |
| use_databaseB | Switch to a different database. |
| set_readonlyB | Enable or disable read-only mode |
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/mcp-research/sussa3007__mysql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server