Skip to main content
Glama
huanglixinccc

MySQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTYesMySQL host address
DB_PORTYesMySQL port number
DB_USERYesMySQL user
DB_DATABASEYesMySQL database name
DB_PASSWORDYesMySQL password
AUDIT_LOG_DIRNoDirectory for audit logs
PERMISSION_MODENoPermission mode: read_only or read_write
AUDIT_LOG_ENABLEDNoEnable audit logging (true/false)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
mysql_queryB

Execute a SELECT query against MySQL. Returns rows, field names, and row count. Results are automatically limited.

mysql_explainA

Run EXPLAIN on a SELECT statement to analyze query performance. Returns execution plan and full-scan warnings.

mysql_list_databasesA

List all accessible databases (system databases are excluded).

mysql_list_tablesB

List all tables in a database.

mysql_describe_tableA

Get column structure, indexes, and CREATE statement for a table.

mysql_executeA

[riskLevel: medium] Execute an INSERT, UPDATE, or DELETE statement. UPDATE/DELETE without WHERE are rejected by default.

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

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