Skip to main content
Glama
matpb

MySQL MCP Server

by matpb

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_KEYSNoComma-separated API keys for authentication
MAX_ROWSNoMaximum rows returned1000
MCP_PORTNoHTTP server port8080
MYSQL_HOSTNoMySQL server hostlocalhost
MYSQL_PORTNoMySQL server port3306
MYSQL_USERYesMySQL username
CORS_ORIGINNoCORS allowed origin*
MCP_TRANSPORTNoTransport mode: stdio or http-streamstdio
QUERY_TIMEOUTNoQuery timeout (ms)30000
MYSQL_DATABASEYesDatabase name
MYSQL_PASSWORDYesMySQL password
CLOUD_SQL_INSTANCENoInstance connection name (project:region:instance)
CLOUD_SQL_PROXY_PORTNoLocal proxy port3307
MYSQL_CONNECT_TIMEOUTNoConnection timeout (ms)60000
MYSQL_CONNECTION_LIMITNoConnection pool size10
CLOUD_SQL_PROXY_ENABLEDNoEnable Cloud SQL Proxyfalse
CLOUD_SQL_PROXY_AUTO_DOWNLOADNoAuto-download proxy binarytrue
GOOGLE_APPLICATION_CREDENTIALSNoPath to service account JSON
CLOUD_SQL_PROXY_STARTUP_TIMEOUTNoStartup timeout (ms)30000

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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