Skip to main content
Glama
Darkstar326

MCP MySQL Server

by Darkstar326

Server Configuration

Describes the environment variables required to run the server.

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

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
mysql_connectC

Connect to a MySQL database with provided connection parameters

mysql_queryC

Execute a SQL query on the connected MySQL database

mysql_list_databasesA

List all databases on the MySQL server

mysql_list_tablesB

List all tables in the current or specified database

mysql_describe_tableC

Get the structure/schema of a specific table

mysql_show_indexesC

Show indexes for a specific table

mysql_get_table_statsC

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

mysql_disconnectB

Disconnect from the MySQL database

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

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