Skip to main content
Glama

MCP MySQL Server

by sajithrw

mysql_connect

Establish a connection to a MySQL database by providing host, user credentials, and optional parameters like database name and SSL settings.

Instructions

Connect to a MySQL database with provided connection parameters

Input Schema

NameRequiredDescriptionDefault
databaseNoDatabase name (optional)
hostYesMySQL server hostname or IP address
passwordYesDatabase password
portNoMySQL server port (default: 3306)
sslNoUse SSL connection (default: false)
userYesDatabase username

Input Schema (JSON Schema)

{ "properties": { "database": { "description": "Database name (optional)", "type": "string" }, "host": { "description": "MySQL server hostname or IP address", "type": "string" }, "password": { "description": "Database password", "type": "string" }, "port": { "default": 3306, "description": "MySQL server port (default: 3306)", "type": "number" }, "ssl": { "default": false, "description": "Use SSL connection (default: false)", "type": "boolean" }, "user": { "description": "Database username", "type": "string" } }, "required": [ "host", "user", "password" ], "type": "object" }

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