Skip to main content
Glama

PostgreSQL MCP Server

by melihbirim

connect_database

Establish a connection to a PostgreSQL database by specifying host, port, database name, username, password, and SSL preferences for secure and efficient data interactions.

Instructions

Connect to a PostgreSQL database

Input Schema

NameRequiredDescriptionDefault
databaseYesDatabase name
hostNoDatabase host (default: localhost)
passwordNoDatabase password
portNoDatabase port (default: 5432)
sslNoUse SSL connection (default: false)
usernameYesDatabase username

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "database": { "description": "Database name", "type": "string" }, "host": { "description": "Database host (default: localhost)", "type": "string" }, "password": { "description": "Database password", "type": "string" }, "port": { "description": "Database port (default: 5432)", "type": "number" }, "ssl": { "description": "Use SSL connection (default: false)", "type": "boolean" }, "username": { "description": "Database username", "type": "string" } }, "required": [ "database", "username" ], "type": "object" }
Install Server

Other Tools from PostgreSQL MCP 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/melihbirim/pg-mcp'

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