Skip to main content
Glama
walternascimentobarroso

MySQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTNoHost127.0.0.1
MYSQL_PORTNoPort3306
MYSQL_USERYesMySQL username
MYSQL_SSL_CANoPath to CA bundle
MYSQL_SSL_KEYNoClient private key path (for mTLS)
MYSQL_DATABASENoDefault database
MYSQL_PASSWORDYesPassword
MYSQL_SSL_CERTNoClient certificate path (for mTLS)
MYSQL_POOL_SIZENoConnection pool size5
MYSQL_ALLOW_WRITENoAllow INSERT/UPDATE/DELETEfalse
MYSQL_SSL_ENABLEDNoEnable TLS/SSL for MySQL connectionfalse
MYSQL_SSL_VERIFY_CERTNoValidate server certificate chaintrue

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
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_databasesA

List all databases on the MySQL server.

list_tablesA

List tables in a database. If database is empty, uses the default configured database.

describe_tableA

Return column information (name, type, null, key, default, extra) for a table.

execute_queryA

Execute a read-only SQL query (SELECT, SHOW, DESCRIBE, etc.). Write operations require MYSQL_ALLOW_WRITE=true and must include a proper WHERE clause for UPDATE/DELETE.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.1/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a distinct resource operation: databases, tables, schema, and custom queries. There is no ambiguity because the specific tools are convenient shortcuts, and execute_query is the catch-all for arbitrary read-only SQL.

Naming Consistency5/5

All tool names follow the verb_noun pattern with lowercase and underscores: list_databases, list_tables, describe_table, execute_query. The convention is consistent and predictable.

Tool Count5/5

Four tools is well-scoped for a read-only MySQL server. Each tool earns its place: listing databases, listing tables, describing schemas, and running custom queries—no superfluous tools.

Completeness4/5

Covers the full read-only workflow: discover databases, list tables, inspect column structure, and execute arbitrary SELECT/SHOW queries. Missing write operations are intentional, but there is no tool for viewing indexes/foreign keys, which is a minor gap.

Maintenance

ActivityInactive
ResponsivenessNo issues