timescale/pg-aiguide

MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.

View on GitHub ↗Jump to charts ↓

Data as of . Signed-in members get hourly updates — create a free account.

Summary Information

Updated 31 minutes ago
Added to GitGenius on December 30th, 2025
Created on July 23rd, 2025
Open Issues & Pull Requests: 10 (+0)
GitHub issues: Enabled
Number of forks: 113
Total Stargazers: 1,862 (+0)
Total Subscribers: 12 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 73.4 days
Mean response time: 91.9 days
90th percentile: 247.2 days
Tracked items: 13

Maintainer activity

1 person did triage or write work on this repository in the last 12 months.

Counts unlabeled, assigned, unassigned, milestoned, demilestoned, locked, unlocked over the last 12 months. These are issue and pull request events that require triage or write permission. Commits and code review are not counted. labeled and renamed are excluded because GitHub issue forms record the issue author as the actor. Figures from October 7, 2026. This count is not comparable across projects: each project's automation decides which of these events a person emits.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 6
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 3 days
Stale 30+ days: 5
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (1)

Most active issues this week

Sign in to see which issues are moving.
Sign in

Detailed Description

pg-aiguide is an MCP server and Claude plugin that helps AI coding tools generate better PostgreSQL code.

The tool addresses a common problem: AI coding assistants often produce PostgreSQL code that is outdated, missing constraints and indexes, unaware of modern features, or inconsistent with real-world best practices. pg-aiguide solves this by providing AI agents with deep, version-aware PostgreSQL knowledge through three mechanisms: semantic search across the official PostgreSQL manual, curated AI-optimized skills that encode best practices for automatic use by agents, and documentation for the PostgreSQL extension ecosystem starting with TimescaleDB.

The tool can be deployed in multiple ways depending on your setup. It works as agent skills installable via command line for use with Claude Code, Cursor, Codex, Gemini CLI, and over forty other agents. It also functions as a public MCP server for any AI coding agent, or as a Claude Code plugin optimized for Claude's native skill support. Teams should choose this if they want their AI coding assistants to produce PostgreSQL schemas with more constraints, better indexes including partial and expression indexes, modern PostgreSQL features, and cleaner naming conventions. The README demonstrates that with the tool enabled, generated schemas show significantly more robust patterns compared to unaided AI output.

The project maintains a public MCP server endpoint for semantic search over PostgreSQL, TimescaleDB, and PostGIS documentation. The tool is distributed as both installable skills and as a Claude Code marketplace plugin, indicating active support for multiple integration pathways.