Skip to main content
Glama
hogiabao2601

sql-mcp

by hogiabao2601

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MYSQL_HOSTNoMySQL host for single-connection mode (no config file, MySQL only).
MYSQL_PORTNoMySQL port for single-connection mode (no config file, MySQL only).
MYSQL_USERNoMySQL user for single-connection mode (no config file, MySQL only).
MYSQL_CONFIGNoAlias for SQL_MCP_CONFIG: path to the profiles JSON file.
MYSQL_DATABASENoMySQL database for single-connection mode (no config file, MySQL only).
MYSQL_PASSWORDNoMySQL password for single-connection mode (no config file, MySQL only).
SQL_MCP_CONFIGNoPath to the profiles JSON file defining one or more named database connections. The file is re-read when it changes, so edits apply without a restart. (`MYSQL_CONFIG` also works.)
MYSQL_CACHE_TTLNoAlias for SQL_MCP_CACHE_TTL: schema-metadata cache lifetime in seconds.
MYSQL_LOG_QUERIESNoAlias for SQL_MCP_LOG_QUERIES: set to `1` to log SQL text to stderr.
SQL_MCP_AUDIT_LOGNoFile path to append one JSON line per tool call (off by default; file created with mode 0600).
SQL_MCP_CACHE_TTLNoSchema-metadata cache lifetime in seconds (default 60, `0` = off). `MYSQL_CACHE_TTL` also works.
SQL_MCP_LOG_QUERIESNoSet to `1` to log SQL text to stderr (off by default). `MYSQL_LOG_QUERIES` also works.
SQL_MCP_AUDIT_LITERALSNoSet to `1` to include literal values in the audit log (off by default — values are never written otherwise).

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

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