Skip to main content
Glama
lieberweiss

sql-mcp-server

by lieberweiss

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
API_KEYNoAPI key for authentication (alternative to tokens.txt)
DB_HOSTNoDatabase host (required for postgres, mysql, mssql)
DB_PORTNoDatabase port (optional, default varies by provider)
DB_USERNoDatabase user (required for postgres, mysql, mssql)
DB_DATABASENoDatabase name (required for postgres, mysql, mssql)
DB_MAX_ROWSNoMaximum rows returned (default: 100)
DB_PASSWORDNoDatabase password (required for postgres, mysql, mssql)
DB_PROVIDERNoDatabase provider: sqlite, postgres, mysql, mssql
SQLITE_PATHNoPath to SQLite database file (required when DB_PROVIDER=sqlite)
DB_READ_ONLYNoRead-only mode (default: true)
DB_ALLOW_DROPNoAllow DROP statements (default: false)
MCP_INSTANCESNoComma-separated instance prefixes for multi-instance mode
DB_ALLOW_ALTERNoAllow ALTER statements (default: false)
DB_QUERY_TIMEOUTNoQuery timeout in seconds (default: 10)
LOG_QUERY_BODIESNoLog full SQL text (default: false)
DB_ALLOWED_TABLESNoComma-separated allowlist of table names
ENABLE_QUERY_LOGSNoEnable query logging (default: false)
SQL_MCP_LOG_LEVELNoLog level (default: INFO)
DB_STATEMENT_TIMEOUT_MSNoStatement timeout in milliseconds (default: DB_QUERY_TIMEOUT * 1000)

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/lieberweiss/sql_mcp_server'

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