SQL MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_MODE | No | Database mode. Supports 'mysql' or 'sqlite'. | mysql |
| SSH_HOST | No | SSH jump host address. | |
| SSH_PORT | No | SSH port. | 22 |
| SSH_USER | No | SSH username. | |
| MAX_LIMIT | No | Maximum return row limit. | 1000 |
| MYSQL_URL | No | Complete MySQL connection string. | |
| MYSQL_HOST | No | MySQL server address. | 127.0.0.1 |
| MYSQL_PORT | No | MySQL server port. | 3306 |
| MYSQL_USER | No | MySQL username. | root |
| SSH_ENABLED | No | Whether to enable SSH tunnel. | false |
| SSH_DST_HOST | No | SSH tunnel forwarding target host (auto-inferred by default). | |
| SSH_DST_PORT | No | SSH tunnel forwarding target port (auto-inferred by default). | |
| SSH_PASSWORD | No | SSH login password (alternative to private key). | |
| DEFAULT_LIMIT | No | Default maximum number of returned rows. | 100 |
| ALLOWED_TABLES | Yes | Allowed tables, comma-separated. '*' means all tables. Required. | |
| MYSQL_DATABASE | No | Database name. Required for MySQL unless MYSQL_URL includes it. | |
| MYSQL_PASSWORD | No | MySQL password. | |
| SQLITE_DB_PATH | No | SQLite database file path. Required when DB_MODE=sqlite. | |
| SSH_LOCAL_HOST | No | SSH tunnel local listening address. | 127.0.0.1 |
| SSH_LOCAL_PORT | No | Local listening port. 0 means auto-assign. | 0 |
| SSH_PASSPHRASE | No | Private key passphrase (if any). | |
| ALLOWED_METHODS | No | Allowed operations, comma-separated. | connect,schema,query,insert,delete |
| SSH_PRIVATE_KEY | No | Private key content. | |
| ALLOW_EMPTY_DELETE | No | Whether to allow DELETE without WHERE clause. | false |
| SSH_PRIVATE_KEY_PATH | No | Private 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
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
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.
All tool names use a consistent `db_` prefix followed by snake_case action-oriented names. The pattern is predictable throughout the set.
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.
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.