Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_SSLNoEnable SSLfalse
DB_HOSTNoDatabase hostlocalhost
DB_NAMENoDatabase name or SQLite file path
DB_PORTNoDatabase port (default: 3306 for MySQL/MariaDB, 5432 for PostgreSQL)
DB_USERNoDatabase user (default: root for MySQL/MariaDB, postgres for PostgreSQL)
DB_SSL_CANoCA certificate path
LOG_LEVELNoLog level (trace/debug/info/warn/error)info
DB_BACKENDYesDatabase backend: mysql, mariadb, postgres, or sqlite (required)
DB_CHARSETNoCharacter set (MySQL/MariaDB only)
DB_SSL_KEYNoClient key path
DB_PASSWORDNoDatabase password
DB_SSL_CERTNoClient certificate path
MCP_READ_ONLYNoBlock write queriestrue
MCP_MAX_POOL_SIZENoMax connection pool size (min: 1)10
DB_SSL_VERIFY_CERTNoVerify server certificatetrue

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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>

  • Running actual queries → use readQuery or writeQuery

  • Checking table structure → use getTableSchema </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 table — call listTables first.

<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>

  • Data changes (INSERT, UPDATE, DELETE) → use writeQuery

  • Query performance analysis → use explainQuery

  • Discovering tables or columns → use listTables or getTableSchema </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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

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