Skip to main content
Glama
walternascimentobarroso

MySQL MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTNoHost127.0.0.1
MYSQL_PORTNoPort3306
MYSQL_USERYesMySQL username
MYSQL_SSL_CANoPath to CA bundle
MYSQL_SSL_KEYNoClient private key path (for mTLS)
MYSQL_DATABASENoDefault database
MYSQL_PASSWORDYesPassword
MYSQL_SSL_CERTNoClient certificate path (for mTLS)
MYSQL_POOL_SIZENoConnection pool size5
MYSQL_ALLOW_WRITENoAllow INSERT/UPDATE/DELETEfalse
MYSQL_SSL_ENABLEDNoEnable TLS/SSL for MySQL connectionfalse
MYSQL_SSL_VERIFY_CERTNoValidate server certificate chaintrue

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
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_databasesA

List all databases on the MySQL server.

list_tablesA

List tables in a database. If database is empty, uses the default configured database.

describe_tableA

Return column information (name, type, null, key, default, extra) for a table.

execute_queryA

Execute a read-only SQL query (SELECT, SHOW, DESCRIBE, etc.). Write operations require MYSQL_ALLOW_WRITE=true and must include a proper WHERE clause for UPDATE/DELETE.

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/walternascimentobarroso/database_mcp'

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