MySQL MCP Server
by matpb
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| API_KEYS | No | Comma-separated API keys for authentication | |
| MAX_ROWS | No | Maximum rows returned | 1000 |
| MCP_PORT | No | HTTP server port | 8080 |
| MYSQL_HOST | No | MySQL server host | localhost |
| MYSQL_PORT | No | MySQL server port | 3306 |
| MYSQL_USER | Yes | MySQL username | |
| CORS_ORIGIN | No | CORS allowed origin | * |
| MCP_TRANSPORT | No | Transport mode: stdio or http-stream | stdio |
| QUERY_TIMEOUT | No | Query timeout (ms) | 30000 |
| MYSQL_DATABASE | Yes | Database name | |
| MYSQL_PASSWORD | Yes | MySQL password | |
| CLOUD_SQL_INSTANCE | No | Instance connection name (project:region:instance) | |
| CLOUD_SQL_PROXY_PORT | No | Local proxy port | 3307 |
| MYSQL_CONNECT_TIMEOUT | No | Connection timeout (ms) | 60000 |
| MYSQL_CONNECTION_LIMIT | No | Connection pool size | 10 |
| CLOUD_SQL_PROXY_ENABLED | No | Enable Cloud SQL Proxy | false |
| CLOUD_SQL_PROXY_AUTO_DOWNLOAD | No | Auto-download proxy binary | true |
| GOOGLE_APPLICATION_CREDENTIALS | No | Path to service account JSON | |
| CLOUD_SQL_PROXY_STARTUP_TIMEOUT | No | Startup timeout (ms) | 30000 |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
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/matpb/mysql-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server