Claude Code plugin

Pg Aiguide

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

1,881 stars 120 forksPlugins & marketplaces Plugin marketplace Source

Install

Install
claude plugin marketplace add timescale/pg-aiguide

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/timescale/pg-aiguide.git

From the README

pg-aiguide

AI-optimized PostgreSQL expertise for coding assistants

pg-aiguide helps AI coding tools write dramatically better PostgreSQL code. It provides:

- Semantic search across the official PostgreSQL manual (version-aware)
- AI-optimized “skills” — curated, opinionated Postgres best practices used automatically by AI agents
- Extension ecosystem docs, starting with TimescaleDB, with more coming soon

Use it as:

- Agent Skills via npx skills — works with Claude Code, Cursor, Codex, Gemini CLI, and 40+ other agents
- a public MCP server that can be used with any AI coding agent, or
- a Claude Code plugin optimized for use with Claude's native skill support.

⭐ Why pg-aiguide?

AI coding tools often generate Postgres code that is:

- outdated
- missing constraints and indexes
- unaware of modern PG features
- inconsistent with real-world best practices

pg-aiguide fixes that by giving AI agents deep, versioned PostgreSQL knowledge and proven patterns.

See the difference

https://github.com/user-attachments/assets/5a426381-09b5-4635-9050-f55422253a3d

Video Transcript

Prompt given to Claude Code:
Please describe the schema you would create for an e-commerce website two times, first with the tiger mcp server disabled, then with the tiger mcp server enabled. For each time, write the schema to its own file in the current working directory. Then compare the two files and let me know which approach generated the better schema, using both qualitative and quantitative reasons. For this example, only use standard Postgres.

Result (summarized):

- 4× more constraints
- 55% more indexes (including partial/expression indexes)
- PG17-recommended patterns
- Modern features (GENERATED ALWAYS AS IDENTITY, NULLS NOT DISTINCT)
- Cleaner naming & documentation

Conclusion:…
Read the full README on GitHub

How plugins work

  • A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
  • Add the marketplace inside Claude Code with /plugin marketplace add timescale/pg-aiguide, then run /plugin to pick what to install.
  • You can turn a plugin off again from /plugin without deleting anything.
Claude Code docs

Details

Language
Python
License
Apache-2.0
Last updated
3 November 2026
Topics
aiai-agentsai-codingclaude-code-pluginclaude-code-pluginsclaude-code-plugins-marketplaceclaude-marketplaceclaude-pluginclaude-skillsdocsdocumentationmcp

FAQ

What is Pg Aiguide?

MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code. It is a plugin for Claude Code, from timescale/pg-aiguide on GitHub.

How do I install Pg Aiguide?

Run claude plugin marketplace add timescale/pg-aiguide, then follow the setup in the README.

Is Pg Aiguide popular?

timescale/pg-aiguide has 1,881 GitHub stars and 120 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.

More plugins & marketplaces

Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.