timescale/pg-aiguide
MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
What it solves
AI coding assistants often generate PostgreSQL code that is outdated, lacks necessary constraints and indexes, or ignores modern features and real-world best practices. pg-aiguide provides AI agents with version-aware documentation and curated best practices to ensure they produce robust, performant, and maintainable database schemas and queries.
How it works
It functions as a set of "skills" and a Model Context Protocol (MCP) server. It provides AI agents with two primary capabilities:
- Semantic Search: A unified search tool (
search_docs) that uses vector similarity and keyword search to query the official PostgreSQL manual, TimescaleDB, and PostGIS documentation. - Curated Skills: A library of opinionated best practices (
view_skill) covering schema design, indexing, data types, and performance tuning that agents can apply automatically.
Who it’s for
Developers using AI coding tools (such as Claude Code, Cursor, VS Code, or Gemini CLI) who want their AI assistants to write high-quality, modern PostgreSQL code.
Highlights
- Version-Aware Documentation: Access to official PostgreSQL manuals scoped by version.
- Coded Best Practices: Curated skills for indexing strategies, data integrity, and naming conventions.
- Broad Agent Compatibility: Works with 40+ agents via
npx skillsor MCP server integration. - Extension Support: Includes documentation and skills for TimescaleDB and PostGIS, with pgvector coming soon.
Related
- Project
- Project
- Project
- Project
- Project