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 |
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 | {} |
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. |
| getTableSchemaA | Get column definitions and foreign key relationships for a table. Requires |
| listTablesA | List all tables in the connected SQLite database. Use this tool to discover what tables are available before using other tools. |
| listTriggersA | List all triggers in the connected SQLite database. |
| listViewsA | List all views in the connected SQLite database. |
| readQueryA | Execute a read-only SQL query. Allowed statements: SELECT, EXPLAIN. |
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
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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