MCP SQL Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| DB_SSL | No | Use SSL connection (default: false) | false |
| DB_HOST | No | Database host | |
| DB_PORT | No | Database port | |
| DB_TYPE | No | Database type - 'postgresql' or 'mysql' | |
| DB_USER | No | Database user | |
| MYSQL_SSL | No | Use SSL connection for MySQL (default: false) | false |
| MYSQL_HOST | No | MySQL database host | |
| MYSQL_PORT | No | MySQL database port | |
| MYSQL_USER | No | MySQL database user | |
| DB_DATABASE | No | Database name | |
| DB_PASSWORD | No | Database password | |
| POSTGRES_SSL | No | Use SSL connection for PostgreSQL (default: false) | false |
| POSTGRES_HOST | No | PostgreSQL database host | |
| POSTGRES_PORT | No | PostgreSQL database port | |
| POSTGRES_USER | No | PostgreSQL database user | |
| MYSQL_DATABASE | No | MySQL database name | |
| MYSQL_PASSWORD | No | MySQL database password | |
| POSTGRES_DATABASE | No | PostgreSQL database name | |
| POSTGRES_PASSWORD | No | PostgreSQL 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
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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