Skip to main content
Glama
MySQL MCP

MySQL MCP

by jlcodes99

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTYes数据库主机地址
MYSQL_PORTYes数据库端口号
MYSQL_DATABASEYes数据库名称
MYSQL_PASSWORDYes数据库密码
MYSQL_USERNAMEYes数据库用户名
MYSQL_MAX_RETRIESNo最大重试次数3
MYSQL_QUERY_TIMEOUTNo查询超时时间(秒)60
MYSQL_SECURITY_MODENo安全模式: readonly/limited_write/full_accessreadonly
MYSQL_ALLOWED_SCHEMASNo允许访问的数据库: * 或 逗号分隔的数据库名*
MYSQL_CONNECT_TIMEOUTNo连接超时时间(秒)30
MYSQL_MAX_RESULT_ROWSNo最大结果行数限制1000
MYSQL_ENABLE_QUERY_LOGNo是否启用查询日志false

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

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