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 |
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 |
|---|---|
| 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 | |
TDQS
Scored across 9 tools
Each tool has a distinct purpose: connection management, database listing and selection, table inspection, query execution, and read-only mode. No overlap between them.
All tool names use lowercase snake_case consistently, with verb_noun patterns (e.g., list_databases, describe_table) or simple verbs (query, status). No mixing of conventions.
9 tools is well-scoped for a database MCP server. It covers essential operations without being overwhelming or sparse.
Covers core database interaction: connection, navigation, schema inspection, query execution, and read-only mode. Minor gaps like transaction control or explicit DML tools are missing but covered by the generic query tool.