Skip to main content
Glama
SQL MCP Server

SQL MCP Server

by kK-2004

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_MODENoDatabase mode. Supports 'mysql' or 'sqlite'.mysql
SSH_HOSTNoSSH jump host address.
SSH_PORTNoSSH port.22
SSH_USERNoSSH username.
MAX_LIMITNoMaximum return row limit.1000
MYSQL_URLNoComplete MySQL connection string.
MYSQL_HOSTNoMySQL server address.127.0.0.1
MYSQL_PORTNoMySQL server port.3306
MYSQL_USERNoMySQL username.root
SSH_ENABLEDNoWhether to enable SSH tunnel.false
SSH_DST_HOSTNoSSH tunnel forwarding target host (auto-inferred by default).
SSH_DST_PORTNoSSH tunnel forwarding target port (auto-inferred by default).
SSH_PASSWORDNoSSH login password (alternative to private key).
DEFAULT_LIMITNoDefault maximum number of returned rows.100
ALLOWED_TABLESYesAllowed tables, comma-separated. '*' means all tables. Required.
MYSQL_DATABASENoDatabase name. Required for MySQL unless MYSQL_URL includes it.
MYSQL_PASSWORDNoMySQL password.
SQLITE_DB_PATHNoSQLite database file path. Required when DB_MODE=sqlite.
SSH_LOCAL_HOSTNoSSH tunnel local listening address.127.0.0.1
SSH_LOCAL_PORTNoLocal listening port. 0 means auto-assign.0
SSH_PASSPHRASENoPrivate key passphrase (if any).
ALLOWED_METHODSNoAllowed operations, comma-separated.connect,schema,query,insert,delete
SSH_PRIVATE_KEYNoPrivate key content.
ALLOW_EMPTY_DELETENoWhether to allow DELETE without WHERE clause.false
SSH_PRIVATE_KEY_PATHNoPrivate key file path.

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

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
db_connectB

Connect to database and verify credentials/database access.

db_describe_schemaB

Show table schema in current database (allowed tables only).

db_queryC

Query rows from an allowed table.

db_insertC

Insert one row into an allowed table.

db_deleteC

Delete rows from an allowed table (where required by default).

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct database operation: connection, schema inspection, row querying, row insertion, and row deletion. There is no meaningful overlap between them, and an agent can easily select the right tool.

Naming Consistency5/5

All tool names use a consistent `db_` prefix followed by snake_case action-oriented names. The pattern is predictable throughout the set.

Tool Count5/5

Five tools is a well-scoped surface for a safe SQL access server. Each tool has a clear role and the count is neither bloated nor overly thin.

Completeness3/5

The set covers connect, inspect, read, insert, and delete, but notably lacks an update operation, which is a core SQL lifecycle action. Agents would need workarounds such as delete-and-reinsert to modify rows.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues