connect_db
Establish a connection to a MySQL database using URL or configuration parameters to enable database interactions through the MCP MySQL Server.
Instructions
Connect to MySQL database using URL or config
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_db"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Database URL (mysql://user:pass@host:port/db) | |
| workspace | No | Project workspace path | |
| host | No | ||
| port | No | Database port (default: 3306) | |
| user | No | ||
| password | No | ||
| database | No |