Back to Home
timescale icon

pg-aiguide

Verified Safe

by timescale

Overview

Provides AI-optimized PostgreSQL expertise, including semantic search over documentation and curated best practices, to assist AI coding tools in generating better PostgreSQL code.

Installation

Run Command
bun dist/index.js stdio

Environment Variables

  • OPENAI_API_KEY
  • PGHOST
  • PGPORT
  • PGUSER
  • PGPASSWORD
  • PGDATABASE
  • DB_SCHEMA

Security Notes

The server uses environment variables for sensitive credentials (API keys, database connection parameters). SQL queries are parameterized, mitigating SQL injection risks. The Python ingest scripts execute shell commands (`git clone`, `make html`, `./configure`) for documentation building; while these carry inherent risks, they are used for trusted internal processes (cloning from PostgreSQL's official GitHub repository) and not exposed to arbitrary user input. The server leverages a boilerplate library (`@tigerdata/mcp-boilerplate`), assuming its security. No direct 'eval' or dangerous dynamic code execution from untrusted input is observed in the provided source code.

Similar Servers

Stats

Interest Score100
Security Score9
Cost ClassMedium
Avg Tokens150
Stars1382
Forks76
Last Update2026-01-12

Tags

PostgreSQLTimescaleDBAIRAGSemantic SearchCoding AssistantDocumentationBest Practices