mysql-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_SSL | No | Enable SSL (1, true, yes, on / 0, false, no, off) | false |
| MYSQL_HOST | No | MySQL host | 127.0.0.1 |
| MYSQL_PORT | No | MySQL port | 3306 |
| MYSQL_USER | Yes | MySQL username (required) | |
| MYSQL_DATABASE | No | Default database, leave empty to not specify | |
| MYSQL_MAX_ROWS | No | Maximum rows returned per query | 500 |
| MYSQL_PASSWORD | Yes | MySQL password (required) | |
| MYSQL_CONNECTION_LIMIT | No | Connection pool size | 5 |
| MYSQL_QUERY_TIMEOUT_MS | No | Query timeout in milliseconds | 30000 |
| MYSQL_CONNECT_TIMEOUT_MS | No | Connection timeout in milliseconds | 10000 |
| MYSQL_SSL_REJECT_UNAUTHORIZED | No | SSL reject unauthorized (1, true, yes, on / 0, false, no, off) | true |
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_queryA | Run a read-only MySQL query. Allowed statements: SELECT, WITH SELECT, SHOW, DESCRIBE/DESC, and safe EXPLAIN. |
| mysql_list_databasesA | List databases visible to the configured read-only MySQL user. |
| mysql_list_tablesA | List tables and views for the current or selected database. |
| mysql_describe_tableA | Return column metadata and optional indexes for a table. |
| mysql_connection_infoA | Return current database, user, effective user, and server version. |
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/xujcbiz/mysql-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server