Skip to main content
Glama

MCP MySQL Server

connect_db

Establish a connection to a MySQL database using a URL or configuration parameters such as host, user, password, and database name. Facilitates SQL queries and table structure retrieval for AI agents.

Instructions

Connect to MySQL database using URL or config

Input Schema

NameRequiredDescriptionDefault
databaseNo
hostNo
passwordNo
urlNoDatabase URL (mysql://user:pass@host:port/db)
userNo
workspaceNoProject workspace path

Input Schema (JSON Schema)

{ "properties": { "database": { "optional": true, "type": "string" }, "host": { "optional": true, "type": "string" }, "password": { "optional": true, "type": "string" }, "url": { "description": "Database URL (mysql://user:pass@host:port/db)", "optional": true, "type": "string" }, "user": { "optional": true, "type": "string" }, "workspace": { "description": "Project workspace path", "optional": true, "type": "string" } }, "type": "object" }

Other Tools from MCP MySQL Server

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

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