Skip to main content
Glama
CobaltBlue3699

MySQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_HOSTNoMySQL hostlocalhost
DB_NAMENoDatabase nametest_db
DB_PORTNoMySQL port3306
DB_USERNoMySQL userroot
DRY_RUNNoValidate SQL without returning datafalse
LOG_DIRNoLog directory./logs
ALLOW_DDLNoAllow CREATE/ALTER/DROP/TRUNCATEfalse
LOG_LEVELNoLog level: debug/info/warn/errorinfo
ALLOW_VIEWNoAllow SHOW / DESCRIBEtrue
DB_PASSWORDYesMySQL password
DB_POOL_MAXNoMax pool connections10
DB_POOL_MINNoMin pool connections2
ALLOW_DELETENoAllow DELETEfalse
ALLOW_INSERTNoAllow INSERTfalse
ALLOW_SELECTNoAllow SELECT queriestrue
ALLOW_UPDATENoAllow UPDATEfalse
MCP_TRANSPORTNoTransport: stdio/http-sse/streamable-httpstdio
MCP_SERVER_NAMENoServer name used as log file prefixmysql-mcp-server

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
list_tablesA

List all tables in the current database

describe_tableB

Get the structure of a specific table

execute_queryB

Execute a SELECT query on the database

list_databasesA

List all available databases

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation5/5

Each tool targets a distinct resource or action: table structure, SELECT query execution, database listing, and table listing. There is no overlap in functionality.

Naming Consistency5/5

All tool names consistently follow the verb_noun pattern (list_databases, list_tables, describe_table, execute_query), making them easy to parse and select.

Tool Count4/5

With 4 tools, the set is minimal but focused. It covers basic database exploration needs, though one might expect additional tools for write operations or schema browsing.

Completeness3/5

The set handles core read operations (listing, describing, querying) but lacks any write capabilities (INSERT, UPDATE, DELETE) and does not support non-SELECT queries, leaving notable gaps for a general MySQL server.

Maintenance

ActivitySlowing
ResponsivenessNo issues