Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MYSQL_SSL | No | Enable SSL connection (default source) | false |
| MYSQL_HOST | No | MySQL server hostname (default source) | localhost |
| MYSQL_PORT | No | MySQL server port (default source) | 3306 |
| MYSQL_USER | No | MySQL username (default source) | root |
| MYSQL_DATABASE | No | MySQL database name (optional - server-wide access if omitted) | |
| MYSQL_PASSWORD | Yes | MySQL password (required for default source) | |
| MCP_MYSQL_CACHE_DIR | No | Custom cache directory path | ~/.mcp-mysql-cache |
| MCP_MYSQL_CACHE_ENABLED | No | Enable/disable intelligent caching system | true |
| MCP_MYSQL_CACHE_MAX_SIZE | No | Maximum cache file size in bytes (50MB) | 52428800 |
| MCP_MYSQL_CACHE_RETENTION_DAYS | No | Days to retain cached files | 30 |
Schema
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |