Skip to main content
Glama

MCP MySQL Server

by sajithrw

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_SSLNoUse SSL connectionfalse
MYSQL_HOSTNoMySQL server hostname or IP addresslocalhost
MYSQL_PORTNoMySQL server port3306
MYSQL_USERNoDatabase username
MYSQL_DATABASENoDatabase name to connect to
MYSQL_PASSWORDNoDatabase password

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
mysql_connect

Connect to a MySQL database with provided connection parameters

mysql_query

Execute a SQL query on the connected MySQL database

mysql_list_databases

List all databases on the MySQL server

mysql_list_tables

List all tables in the current or specified database

mysql_describe_table

Get the structure/schema of a specific table

mysql_show_indexes

Show indexes for a specific table

mysql_get_table_stats

Get statistics about a table (row count, size, etc.)

mysql_disconnect

Disconnect from the MySQL database

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

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