Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTYes数据库主机地址 (Database host address)
MYSQL_PORTYes数据库端口 (Database port)
MYSQL_DATABASEYes数据库名称 (Database name)
MYSQL_PASSWORDYes数据库密码 (Database password)
MYSQL_USERNAMEYes数据库用户名 (Database username)
MYSQL_MAX_RETRIESNo最大重试次数(默认:3)3
MYSQL_QUERY_TIMEOUTNo查询超时时间(秒,默认:60)60
MYSQL_SECURITY_MODENo安全模式 (readonly/limited_write/full_access,默认:readonly)readonly
MYSQL_ALLOWED_SCHEMASNo允许访问的数据库列表,支持三种配置方式:'*' (允许访问所有有权限的数据库), 'auto' (自动发现有权限的数据库), 'db1,db2,db3' (明确指定数据库列表)
MYSQL_CONNECT_TIMEOUTNo连接超时时间(秒,默认:30)30
MYSQL_MAX_RESULT_ROWSNo最大返回行数(默认:1000)1000
MYSQL_ENABLE_QUERY_LOGNo是否启用查询日志(true/false,默认:false)false

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/Gcluowenqiang/Mysql-mcp'

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