dbmole-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DBMOLE_STORE | No | Overrides the path of the global connections store (default: ~/.config/dbmole/connections.json). The server needs no configuration to start; connections are normally added later through MCP tools. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_connectionsA | List database connections with the layer each comes from: project (.dbmole.json, found by walking up from the project dir) or global (user store). Also shows invalid entries and broken files. Secrets are omitted. |
| add_connectionB | Add a named postgres/mysql connection. scope "global" (default) saves it to the user store; "project" saves it to .dbmole.json in the project root. Supports an optional ssh tunnel and a readonly flag. Optional ssl: true or { rejectUnauthorized, ca } (ca = PEM or file path). |
| update_connectionA | Patch a connection by name in the layer it lives in (project or global). Set a field to null to remove it (e.g. "ssh": null); an ssh object is merged field by field, e.g. { "ssh": { "hostKey": "SHA256:..." } }. queryTimeoutMs sets the per-statement timeout (null restores the 60 s default). ssl is replaced as a whole, not merged like ssh. |
| remove_connectionB | Remove a connection by name from the layer it lives in (invalid entries too) and drop its cached pools/tunnel. |
| test_connectionB | Verify a connection works end to end (including ssh tunnel if configured). Reports server version and connect+query latency. |
| execute_sqlA | Execute a single SQL statement on a named connection. SELECT returns columns/rows; DML returns rowCount (and lastInsertId for mysql). Use positional params: $1.. for postgres, ? for mysql. |
| list_databasesA | List databases on a connection with size in bytes. Hides postgres template databases and mysql system schemas. |
| list_tablesB | List tables and views (type: table | view) with approximate row counts. For postgres, optionally filter by schema; for mysql, schema is the database. |
| describe_tableA | Describe a table or view: columns (type, nullable, default), primary key, indexes and foreign keys. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool targets a distinct resource+action: five connection-lifecycle tools (add/list/update/remove/test) and four database-introspection/query tools (execute_sql, list_databases, list_tables, describe_table). No two tools overlap in purpose, and the connection-layer semantics (project vs global) are consistently described.
All nine names follow a consistent snake_case verb_noun pattern (add_connection, list_tables, describe_table, execute_sql). The only variance is singular vs plural noun for connection tools, which is standard convention rather than inconsistency.
Nine tools is well within the ideal 3-15 range and each earns its place: connection CRUD plus a minimal read/query surface. Nothing feels redundant or padded.
Connection lifecycle is fully covered (create, read, update, delete, test) and the SQL surface covers query, database/table listing, and table description. Minor gaps remain — no explicit schema listing for postgres, no transaction/multi-statement support, and no way to browse indexes or routines independently of describe_table.