Skip to main content
Glama
tomtomjskim

Database MCP Server

by tomtomjskim

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_TYPENoExplicit database type (mysql or postgresql). Optional, auto-detected if not provided.
MYSQL_DBNoMySQL database name
LOG_LEVELNoLogging level (e.g., info, debug)
MYSQL_HOSTNoMySQL host (e.g., localhost or RDS endpoint)
MYSQL_PORTNoMySQL port (default 3306)
MYSQL_USERNoMySQL user
POSTGRES_DBNoPostgreSQL database name
MYSQL_SSL_CANoPath to MySQL SSL CA certificate
POSTGRES_HOSTNoPostgreSQL host
POSTGRES_PORTNoPostgreSQL port (default 5432)
POSTGRES_USERNoPostgreSQL user
DB_CONFIG_FILENoPath to multi-DB configuration JSON file
MYSQL_PASSWORDNoMySQL password
MYSQL_SSL_MODENoMySQL SSL mode (e.g., REQUIRED)
MAX_RESULT_ROWSNoMaximum number of result rows (default 10000)
MCP_SERVER_NAMENoName of the MCP server
POSTGRES_SSL_CANoPath to PostgreSQL SSL CA certificate
POSTGRES_PASSWORDNoPostgreSQL password
POSTGRES_SSL_MODENoPostgreSQL SSL mode (e.g., REQUIRED)
ENABLE_QUERY_LOGGINGNoEnable query logging (true/false)
DB_DEFAULT_CONNECTIONNoDefault connection name for multi-DB mode
MAX_QUERY_EXECUTION_TIMENoMaximum query execution time in ms (default 30000)
MYSQL_CONNECTION_TIMEOUTNoMySQL connection timeout in ms
POSTGRES_CONNECTION_TIMEOUTNoPostgreSQL connection timeout in ms
MYSQL_ACQUIRECONNECTION_TIMEOUTNoMySQL acquire connection timeout in ms

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

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/tomtomjskim/db-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server