Skip to main content
Glama

PostgreSQL MCP Server

execute-sql-query

Execute SELECT queries on PostgreSQL databases to retrieve data while maintaining security through read-only operations.

Instructions

Execute a SQL query on the database. Only SELECT statements are allowed for security.

Input Schema

NameRequiredDescriptionDefault
sqlYesThe SQL query to execute

Input Schema (JSON Schema)

{ "properties": { "sql": { "description": "The SQL query to execute", "type": "string" } }, "required": [ "sql" ], "type": "object" }

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/martymarkenson/Postgres-Connector-MCP'

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