Skip to main content
Glama

MCP PostgreSQL Server

connect_db

Establish a connection to a PostgreSQL database using specified credentials. Use when default connection fails or when explicitly required for database operations.

Instructions

Connect to PostgreSQL database. NOTE: Default connection exists - only use when requested or if other commands fail

Input Schema

NameRequiredDescriptionDefault
databaseYesDatabase name
hostYesDatabase host
passwordYesDatabase password
portNoDatabase port (default: 5432)
userYesDatabase user

Input Schema (JSON Schema)

{ "properties": { "database": { "description": "Database name", "type": "string" }, "host": { "description": "Database host", "type": "string" }, "password": { "description": "Database password", "type": "string" }, "port": { "description": "Database port (default: 5432)", "type": "number" }, "user": { "description": "Database user", "type": "string" } }, "required": [ "host", "user", "password", "database" ], "type": "object" }

Other Tools from MCP PostgreSQL Server

Related Tools

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

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