dbmcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_SSL | No | Enable SSL | false |
| DB_HOST | No | Database host | localhost |
| DB_NAME | No | Database name or SQLite file path | |
| DB_PORT | No | Database port (default: 3306 for MySQL/MariaDB, 5432 for PostgreSQL) | |
| DB_USER | No | Database user (default: root for MySQL/MariaDB, postgres for PostgreSQL) | |
| DB_SSL_CA | No | CA certificate path | |
| LOG_LEVEL | No | Log level (trace/debug/info/warn/error) | info |
| DB_BACKEND | Yes | Database backend: mysql, mariadb, postgres, or sqlite (required) | |
| DB_CHARSET | No | Character set (MySQL/MariaDB only) | |
| DB_SSL_KEY | No | Client key path | |
| DB_PASSWORD | No | Database password | |
| DB_SSL_CERT | No | Client certificate path | |
| MCP_READ_ONLY | No | Block write queries | true |
| MCP_MAX_POOL_SIZE | No | Max connection pool size (min: 1) | 10 |
| DB_SSL_VERIFY_CERT | No | Verify server certificate | true |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| explainQueryA | Return the execution plan for a SQL query to diagnose performance. Use this tool instead of running EXPLAIN directly through readQuery — it provides structured output via EXPLAIN QUERY PLAN. <when_not_to_use>
<what_it_returns> A JSON array of EXPLAIN QUERY PLAN rows showing how SQLite will scan tables, use indexes, and order operations. </what_it_returns> |
| getTableSchemaA | Get column definitions and foreign key relationships for a table. Requires <what_it_returns> A JSON object with table and columns keyed by column name, each containing type, nullable, key, default, and foreignKey info. </what_it_returns> |
| listTablesA | List all tables in the connected SQLite database. Use this tool to discover what tables are available before using other tools. <what_it_returns> A sorted JSON array of table name strings. </what_it_returns> |
| listTriggersA | List all triggers in the connected SQLite database. <what_it_returns> A sorted JSON array of trigger name strings. </what_it_returns> |
| listViewsA | List all views in the connected SQLite database. <what_it_returns> A sorted JSON array of view name strings. </what_it_returns> |
| readQueryA | Execute a read-only SQL query. Allowed statements: SELECT, EXPLAIN. <when_not_to_use>
<what_it_returns> A JSON array of row objects, each keyed by column name. </what_it_returns> |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/haymon-ai/dbmcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server