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

Capabilities

Features and capabilities supported by this server

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

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

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