db_connect
Establish database connections for PostgreSQL, MySQL, or SQLite to enable querying, schema management, and migration operations within the Berth MCP server.
Instructions
Connect to a database.
Supported DSN formats:
postgresql://user:pass@host/db
sqlite:///path/to/file.db (or :memory:)
mysql://user:pass@host/db
Returns a connection_id used by all other tools.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"dsn": "<dsn>"
},
"name": "db_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dsn | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |