Skip to main content
Glama
ImRieul

MySQL MCP Server

by ImRieul

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_SSLNoEnable SSL connectionfalse
MYSQL_HOSTYesMySQL host
MYSQL_PORTNoMySQL port3306
MYSQL_USERYesMySQL user
MYSQL_DATABASENoDefault database
MYSQL_MAX_ROWSNoAuto LIMIT for SELECT queries100
MYSQL_PASSWORDYesMySQL password
MYSQL_READONLYNoRead-only modefalse
MYSQL_QUERY_TIMEOUTNoQuery timeout in ms (0 to disable)30000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
query

Execute a read-only SQL query (SELECT, SHOW, DESCRIBE, EXPLAIN).

execute

Execute a data modification SQL statement (INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, etc.).

list_databases

List all databases on the MySQL server.

list_tables

List all tables in the specified database (or the current database if not specified).

describe_table

Show the schema/structure of a table, including column names, types, constraints, and comments.

describe_all_tables

Show the schema of all tables at once. Much more efficient than calling describe_table for each table individually.

add_comment

Safely add a comment to a table or column. This tool only modifies comments — it cannot alter table structure, column types, or data.

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

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