Back to Home
timescale icon

pg-aiguide

Verified Safe

by timescale

Overview

Provides AI-optimized PostgreSQL expertise through semantic search and curated best-practice skills for coding assistants.

Installation

Run Command
npm run start:http

Environment Variables

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

Security Notes

The server uses parameterized SQL queries (e.g., $1, $2) for user inputs in its APIs, which effectively prevents SQL injection. Database schema names are derived from environment variables, which should be set from trusted sources. The Python ingest scripts utilize 'subprocess.run' for system commands, but inputs to these commands are derived from internal logic (e.g., git tags) or trusted configuration, not directly from runtime user input, mitigating command injection risks.

Similar Servers

Stats

Interest Score69
Security Score9
Cost ClassLow
Avg Tokens30
Stars139
Forks8
Last Update2025-12-05

Tags

PostgreSQLTimescaleDBAIEmbeddingsRAG