pg-aiguide: PostgreSQL Expertise for AI Coding

Supercharge AI coding tools with optimized PostgreSQL knowledge and best practices.

Stars
★ 1.9k
Last updated
20d ago v0.6.1
FARS reviewed
Nov 08, 2026
License
Apache-2.0
Primary language
TypeScript

At a glance

How it runs
CLIMCP serverAgent plugin / skill
Works with
Universal · cross-platformChatGPT · Codex · Claude Code
Cost
Free, no paid service needed
Setup effort
Low · running in minutes
You'll need
Node.js (for npx skills)Shell / CLINetwork accessMCP Server
Typical use
Developers using Claude Code or Cursor who want to create robust PostgreSQL schemas for e-commerce or IoT applications.
Not a fit if
  • Teams that need fully offline use; the public MCP server is hosted by TigerData
  • Teams working with extensions beyond PostgreSQL, TimescaleDB, and PostGIS
  • Non-technical users unwilling to install Node.js and run CLI commands
Maintenance
Commits in the last 30 dayslast commit 2026-11-12latest release v0.6.1 (2026-09-04)

What does this agent do, and when should you use it?

pg-aiguide is an MCP server and Claude Code plugin that helps AI coding assistants generate better PostgreSQL code. It provides semantic search across the official PostgreSQL manual (version-aware) and curated 'skills' covering schema design, indexing, data types, and more. It can be used as Agent Skills via npx, as a public MCP server, or as a Claude Code plugin. The project is licensed under Apache 2.0 and supports multiple AI tools including Claude Code, Cursor, Codex, and Gemini CLI.

pg-aiguide exposes MCP tools like search_docs for semantic and keyword search over PostgreSQL, TimescaleDB, and PostGIS documentation. It also provides view_skill to access curated best-practice skills. When installed, AI agents automatically use these tools to retrieve relevant docs and skills, resulting in SQL with more constraints, indexes, and modern features.

  1. Developers using Claude Code or Cursor who want to create robust PostgreSQL schemas for e-commerce or IoT applications.
  2. Developers using Codex or Gemini CLI who need quick access to PostgreSQL documentation without leaving the terminal.
  3. Teams integrating Visual Studio or VS Code and wanting MCP-based documentation directly in their IDE.
  4. Data engineers designing time-series databases with TimescaleDB and needing best practices for partitioning and indexing.
  5. Organizations standardizing AI development workflows and seeking a unified PostgreSQL knowledge base for all agents.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npx skills add timescale/pg-aiguide --skill postgres
  • npx skills add timescale/pg-aiguide

How do you install or deploy this agent?

For Agent Skills, run npx skills add timescale/pg-aiguide --skill postgres or npx skills add timescale/pg-aiguide for interactive selection. For MCP, add the URL https://mcp.tigerdata.com/docs to your MCP client configuration. For Claude Code plugin, run claude plugin marketplace add timescale/pg-aiguide and then claude plugin install pg@aiguide.

How do you use this agent?

After installation, simply ask your AI agent to design a schema or answer Postgres questions. For example, 'Create a Postgres table schema for storing usernames and unique email addresses.' The agent will automatically leverage pg-aiguide's documentation and skills to produce high-quality results.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • Version-aware semantic search over official PostgreSQL docs ensures up-to-date knowledge.
  • Curated skills automate best practices, leading to dramatically better SQL (e.g., 4x more constraints, 55% more indexes).
  • Pluggable across many AI tools via Agent Skills and MCP protocol, with one-click install for Cursor, VS Code, etc.
  • Open-source (Apache 2.0) and extensible for additional extensions like pgvector.
Limitations
  • Public MCP server is hosted by TigerData, introducing a third-party dependency for hosted deployments.
  • Installation requires Node.js and CLI commands, which may be a barrier for non-technical users.
  • Documentation coverage is limited to PostgreSQL, TimescaleDB, and PostGIS; other extensions are not yet supported.

How does this agent compare with similar options?

Compared to using AI coding tools without any PostgreSQL-specific enhancement, pg-aiguide provides a substantial quality boost in generated SQL, as evidenced by the repository's own demonstration.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
pg-aiguide: PostgreSQL Expertise for AI Coding This agent 53 · Major gaps CLIFree ★ 1.9k 20d ago TypeScript ChatGPT · Codex · Claude Code
Grounded Docs MCP Server 78 · Good CLIFree + model costs ★ 1.9k 10d ago TypeScript ChatGPT · Claude Code
Microsoft Learn MCP Server 68 · Some gaps MCP serverFree ★ 2k 1mo ago TypeScript ChatGPT · Codex · Claude Code · Claude.ai
Mnemo Cortex 75 · Good Self-hosted serviceFree ★ 162 1d ago Python Codex · Claude Code · Claude.ai

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
53/ 100 5-point scale 2.7 / 5
Trust 11/29
Reliability 6/14
Adaptability 12/18
Convention 12/18
Effectiveness 9/13
Verifiability 3/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

The shown MCP capabilities focus on documentation search and skill retrieval, and a skill recommends parameterized queries for user input, supporting a limited least-privilege assessment. However, the README does not explain server-side data retention or request handling; the database-statistics and query examples in skills may involve sensitive schema or SQL text, so data-flow transparency and sensitive-data handling score 1. The migration skill asks before changing primary or unique constraints, but does not cover every side-effecting action. Rollback guidance is limited in the excerpts, while the public endpoint and npm dependencies add external effects and dependency exposure. The skills refer to the official PostgreSQL manual, but the packet provides no specific source mapping or citations, limiting attribution.

Reliability6 / 14 · 2.1/5

The supplied skills and code generally align with the product description, and PostgreSQL version requirements are stated, supporting a self-consistency score of 2. The product depends on a public MCP endpoint and external packages, with no fallback path or availability commitment described. The entry point only shows errors sent to console.error; caller-facing failure detail, recovery, and diagnostics are not demonstrated, so failure-message scoring is limited.

Adaptability12 / 18 · 3.3/5

The README covers schema design, indexing, constraints, PostGIS, and TimescaleDB migration, while skill triggers and keywords are fairly specific; audience coverage and trigger precision score 2. The materials do not systematically define capability boundaries, when to avoid a recommendation, or where results may not apply, so boundaries score 1. The README provides setup instructions for multiple agents and MCP clients plus local development guidance, earning full marks for environment fit.

Convention12 / 18 · 3.3/5

The README separates setup, features, development, and contribution, and skills use names, descriptions, compatibility notes, and examples. The sampled skill excerpts are incomplete, so information architecture scores 2. Client setup steps are detailed and earn 3. Package and plugin names and versions align, though some examples use varying product terminology, so naming stability scores 2. Examples are substantial, but FAQ coverage and explicit limitations are sparse. Apache-2.0 is consistent across metadata, README, and the license text. Release steps and versions are shown, but no change history is supplied. CLAUDE.md documents a release process and the repository identifies TigerData; publisher identity remains unverified as instructed, so maintenance responsibility is only partly clear.

Effectiveness9 / 13 · 3.5/5

Skills provide usable SQL examples, design rules, and migration steps, while search tools add versioned documentation lookup for common Postgres work. The README's performance and schema-comparison claims lack a reviewable method in the supplied material. The apparent utility is clear, but use depends on an external service and some recommendations require database-specific judgment, so output usability, marginal value, and cost-benefit retain deductions.

Verifiability3 / 8 · 1.9/5

Skill examples, rules, and installation configuration are directly inspectable, but product-effect claims and compatibility scope lack independent supporting detail. Code, README, and skills corroborate the tools and intended use only partially. The documentation mixes direct rules, recommendations, and performance claims; some items are qualified, but facts, inferences, and experience-based advice are not systematically separated. Each verifiability criterion therefore scores 1.

Risks and how to mitigate them
  • Before connecting to the public MCP service, confirm that your organization permits sending query content to it; the supplied materials do not explain server-side request handling or retention.
  • The migration skill includes SQL that changes database structure. Follow its request for consent before changing primary or unique constraints, and prepare backups and a rollback plan before production changes.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision c39008a2773f New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/pg-aiguide.svg)](https://followagents.com/en/agents/pg-aiguide)
<a href="https://followagents.com/en/agents/pg-aiguide"><img src="https://followagents.com/badge/pg-aiguide.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.6.1
    Release notes excerpt
    Full Changelog: https://github.com/timescale/pg-aiguide/compare/v0.6.0...v0.6.1
    View on GitHub ↗
  2. v0.6.0
    Release notes excerpt
    What's Changed * Update @tigerdata/mcp-boilerplate to 1.6.4 by @Askir in https://github.com/timescale/pg-aiguide/pull/131 * Update dependencies (includes boilerplate XSS fix) by @murrayju in https://github.com/timescale/pg-aiguide/pull/132 * chore(ingest): update python deps to clear all 44 Dependabot alerts by @murrayju in https://github.com/timescale/pg-aiguide/pull/133 * Resolve relative inline links to fully-qualified URLs during scrape by @arimu1 in https://github.com/timescale/pg-aiguide/pull/129 …
    View on GitHub ↗
  3. v0.5.0
    Release notes excerpt
    What's Changed * [AGE-430] Add PostGIS versioning (and combine source+version) by @gregsaab in https://github.com/timescale/pg-aiguide/pull/90 * Update secrets to ORG_AUTOMATION_TOKEN by @dsanroman96 in https://github.com/timescale/pg-aiguide/pull/91 * [CHORE] update lock file by @gregsaab in https://github.com/timescale/pg-aiguide/pull/92 * [CHORE] use non-prod instead of github's runners by @gregsaab in https://github.com/timescale/pg-aiguide/pull/93 * [CHORE] revert by @gregsaab in https://github.com/timescale/pg-aiguide/pull/94 …
    View on GitHub ↗

FAQ

Is pg-aiguide free to use?
The project is open-source under Apache 2.0, but the public MCP server is hosted by TigerData; self-hosting is possible but requires setup.
Which AI agents are officially supported?
It works with Claude Code, Cursor, Codex, Gemini CLI, VS Code, and many others through Agent Skills (40+) and MCP.
Can I add my own custom documentation?
Yes, the repository welcomes contributions for new documentation corpora and skills; development instructions are provided in DEVELOPMENT.md.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts