Skip to main content
Glama

Simple PostgreSQL MCP Server

by perrypixel

execute_query

Execute SQL queries on PostgreSQL databases with configurable read-only or write permissions. Submit queries directly for database management or retrieval.

Instructions

Execute SQL queries on PostgreSQL database

Input Schema

NameRequiredDescriptionDefault
queryYesSQL query to execute
readOnlyNoIf true, only allows read-only queries (SELECT, EXPLAIN, etc.)

Input Schema (JSON Schema)

{ "properties": { "query": { "description": "SQL query to execute", "type": "string" }, "readOnly": { "default": false, "description": "If true, only allows read-only queries (SELECT, EXPLAIN, etc.)", "type": "boolean" } }, "required": [ "query" ], "type": "object" }

Other Tools from Simple 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/perrypixel/Simple-Postgres-MCP'

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