Skip to main content
Glama
RexySaragih

mysql-mcp

by RexySaragih

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_SSLNoSSL mode (e.g., 'require', 'verify-ca')
MYSQL_URLNoConnection URL (mysql://user:pass@host:3306/db)
MYSQL_HOSTNoDatabase host
MYSQL_PORTNoDatabase port (default: 3306)
MYSQL_USERNoDatabase user
MYSQL_DATABASENoDefault database name
MYSQL_MAX_ROWSNoMaximum rows returned
MYSQL_PASSWORDNoDatabase password
MYSQL_QUERY_TIMEOUT_MSNoQuery timeout in milliseconds

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_databasesA

List MySQL databases (schemas) visible to the configured user.

list_tablesA

List tables and views in a database. Uses MYSQL_DATABASE when database is omitted.

describe_tableA

Describe columns for a table (types, nullability, keys).

show_create_tableB

Return SHOW CREATE TABLE / VIEW DDL for a table or view.

list_indexesB

List indexes for a table.

list_foreign_keysA

List foreign-key relationships in a database, optionally filtered by table.

list_routinesB

List stored procedures and functions in a database.

list_triggersA

List triggers in a database, optionally filtered by table.

list_eventsB

List scheduled events in a database.

read_queryA

Execute a single read-only SELECT (or WITH … SELECT). Mutating SQL is rejected. Queries with FOR UPDATE / FOR SHARE / LOCK IN SHARE MODE / INTO @var require confirmed=true after a preview. Results are LIMIT-capped.

write_queryA

Execute INSERT, UPDATE, DELETE, REPLACE, or TRUNCATE. Separate from read_query. Requires confirmed=true after a strong confirmation preview.

schema_queryA

Execute CREATE, ALTER, DROP, or RENAME (DDL). Separate from write_query. Requires confirmed=true after a strong confirmation preview.

transaction_queryA

Execute multiple statements in one transaction. Preview lists per-statement risk. Requires confirmed=true.

explain_queryA

Run EXPLAIN on a SELECT / WITH query (traditional or JSON format).

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

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