Skip to main content
Glama

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

Tools

Functions exposed to the LLM to take actions

NameDescription
connect_database

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_query

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

list_tables

List all tables in the connected database

describe_table

Get schema information for a specific table

disconnect_database

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

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/TranChiHuu/postgres-mysql-mcp-server'

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