Skip to main content
Glama

MySQL MCP Server

by adamosk

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_SERVER_NAMENoServer metadata - name of the MCP servermysql-mcp-server
MYSQL_DATABASESYesJSON array of database configurations containing name, host, user, password, and database
MCP_SERVER_VERSIONNoServer metadata - version of the MCP server1.0.0
MYSQL_ALLOWED_COMMANDSNoSecurity level - options: default (not set), extended, all, or custom comma-separated listdefault
MYSQL_CONNECTION_LIMITNoMaximum connections per pool4
MYSQL_WAIT_FOR_CONNECTIONSNoWait for available connectionstrue

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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

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