connect
Establish a connection to a MySQL database using provided credentials or environment variables, enabling database operations through the MCP Server MySQL.
Instructions
Connect to a MySQL database. If not called explicitly, will use environment variables for connection.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Database host | |
| port | No | Database port | |
| user | No | Database user | |
| password | No | Database password | |
| database | No | Database name |