Skip to main content
Glama
xujcbiz

mysql-mcp-server

by xujcbiz

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_SSLNoEnable SSL (1, true, yes, on / 0, false, no, off)false
MYSQL_HOSTNoMySQL host127.0.0.1
MYSQL_PORTNoMySQL port3306
MYSQL_USERYesMySQL username (required)
MYSQL_DATABASENoDefault database, leave empty to not specify
MYSQL_MAX_ROWSNoMaximum rows returned per query500
MYSQL_PASSWORDYesMySQL password (required)
MYSQL_CONNECTION_LIMITNoConnection pool size5
MYSQL_QUERY_TIMEOUT_MSNoQuery timeout in milliseconds30000
MYSQL_CONNECT_TIMEOUT_MSNoConnection timeout in milliseconds10000
MYSQL_SSL_REJECT_UNAUTHORIZEDNoSSL reject unauthorized (1, true, yes, on / 0, false, no, off)true

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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
mysql_queryA

Run a read-only MySQL query. Allowed statements: SELECT, WITH SELECT, SHOW, DESCRIBE/DESC, and safe EXPLAIN.

mysql_list_databasesA

List databases visible to the configured read-only MySQL user.

mysql_list_tablesA

List tables and views for the current or selected database.

mysql_describe_tableA

Return column metadata and optional indexes for a table.

mysql_connection_infoA

Return current database, user, effective user, and server version.

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

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