Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_SSLNoEnable SSL connection (default source)false
MYSQL_HOSTNoMySQL server hostname (default source)localhost
MYSQL_PORTNoMySQL server port (default source)3306
MYSQL_USERNoMySQL username (default source)root
MYSQL_DATABASENoMySQL database name (optional - server-wide access if omitted)
MYSQL_PASSWORDYesMySQL password (required for default source)
MCP_MYSQL_CACHE_DIRNoCustom cache directory path~/.mcp-mysql-cache
MCP_MYSQL_CACHE_ENABLEDNoEnable/disable intelligent caching systemtrue
MCP_MYSQL_CACHE_MAX_SIZENoMaximum cache file size in bytes (50MB)52428800
MCP_MYSQL_CACHE_RETENTION_DAYSNoDays to retain cached files30

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/ttpears/mcp-mysql'

If you have feedback or need assistance with the MCP directory API, please join our Discord server