Skip to main content
Glama
TranChiHuu

MCP SQL Server

by TranChiHuu

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DB_SSLNoUse SSL connection (default: false)false
DB_HOSTNoDatabase host
DB_PORTNoDatabase port
DB_TYPENoDatabase type - 'postgresql' or 'mysql'
DB_USERNoDatabase user
MYSQL_SSLNoUse SSL connection for MySQL (default: false)false
MYSQL_HOSTNoMySQL database host
MYSQL_PORTNoMySQL database port
MYSQL_USERNoMySQL database user
DB_DATABASENoDatabase name
DB_PASSWORDNoDatabase password
POSTGRES_SSLNoUse SSL connection for PostgreSQL (default: false)false
POSTGRES_HOSTNoPostgreSQL database host
POSTGRES_PORTNoPostgreSQL database port
POSTGRES_USERNoPostgreSQL database user
MYSQL_DATABASENoMySQL database name
MYSQL_PASSWORDNoMySQL database password
POSTGRES_DATABASENoPostgreSQL database name
POSTGRES_PASSWORDNoPostgreSQL database password

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
connect_databaseA

Connect to a PostgreSQL or MySQL database. Parameters can be provided directly or loaded from environment variables. If no parameters are provided, will use environment variables (DB_TYPE, DB_HOST, DB_PORT, DB_DATABASE, DB_USER, DB_PASSWORD, DB_SSL). For PostgreSQL: POSTGRES_HOST, POSTGRES_PORT, etc. For MySQL: MYSQL_HOST, MYSQL_PORT, etc.

execute_queryA

Execute a SQL query on the connected database. Returns query results.

list_tablesB

List all tables in the connected database

describe_tableB

Get schema information for a specific table

disconnect_databaseB

Disconnect from the current database

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct purpose with no overlap: connect_database establishes a connection, describe_table provides schema details, disconnect_database ends the connection, execute_query runs SQL commands, and list_tables enumerates available tables. The descriptions make it easy to differentiate between connection management, metadata exploration, and query execution.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case (e.g., connect_database, describe_table, disconnect_database, execute_query, list_tables). This uniformity makes the set predictable and easy to understand, with no deviations in naming style.

Tool Count5/5

With 5 tools, the server is well-scoped for its SQL database management purpose. Each tool earns its place by covering essential operations: connection handling, table listing, schema description, query execution, and disconnection. This count is neither too sparse nor bloated for the domain.

Completeness4/5

The tool set provides solid coverage for core SQL operations, including connection lifecycle and basic querying. However, there are minor gaps, such as the lack of tools for managing database objects (e.g., create_table, drop_table) or handling transactions, which agents might need to work around for more advanced tasks.

Maintenance

ActivityInactive
ResponsivenessNo issues