Skip to main content
Glama

PostgreSQL MCP Server

by cesarvarela

execute-query

Run parameterized SQL queries (SELECT, INSERT, UPDATE, DELETE) with built-in safety checks to prevent SQL injection, ensuring secure database operations on PostgreSQL via structured tool interfaces.

Instructions

Execute a parameterized SQL query with safety checks. Supports SELECT, INSERT, UPDATE, DELETE operations with parameter binding to prevent SQL injection.

Input Schema

NameRequiredDescriptionDefault
explainNo
paramsNo
queryYes

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "explain": { "default": false, "type": "boolean" }, "params": { "default": [], "type": "array" }, "query": { "minLength": 1, "type": "string" } }, "required": [ "query" ], "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/cesarvarela/postgres-mcp'

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