
Pg Aiguide
pg-aiguide provides AI coding assistants with semantic search across the official PostgreSQL manual (version-aware) and curated, opinionated PostgreSQL best practices through AI-optimized skills that help generate higher-quality database schemas. The server addresses the problem of AI-generated PostgreSQL code being outdated, missing constraints and indexes, and unaware of modern features by delivering deep, versioned PostgreSQL knowledge and proven patterns. It operates as an Agent Skill, public MCP server, or Claude Code plugin and includes ecosystem documentation for extensions like TimescaleDB.
- GitHub stars
- 1.9K
- tools
- 3
- auth
- Secret needed
- transport
- STDIO, HTTP
- env vars
- 7
- last updated
- Sep 4, 2026
Install
From registry metadata$ npx add-mcp https://mcp.tigerdata.com/docs --name pg-aiguideRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http pg-aiguide https://mcp.tigerdata.com/docsRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 3 toolsVerified live against the running server on Nov 13, 2026.
search_docsSearch documentation with hybrid semantic (vector) and keyword (BM25) search. Use semanticWeight to choose keyword-only (0), semantic-only (1), or a blend; mid values fuse rankings with RRF. Supports Tiger Cloud (TimescaleDB), PostgreSQL, and PostGIS. A hit is one chunk of a p...4 params
Search documentation with hybrid semantic (vector) and keyword (BM25) search. Use semanticWeight to choose keyword-only (0), semantic-only (1), or a blend; mid values fuse rankings with RRF. Supports Tiger Cloud (TimescaleDB), PostgreSQL, and PostGIS. A hit is one chunk of a p...
limit*valuequery*stringsemanticWeight*valuesource*stringtiger · postgres_14 · postgres_15 · postgres_16 · postgres_17 · postgres_18view_skillRetrieve detailed skills for TimescaleDB operations and best practices. ## Available Skills <available_skills> [11 ]{name description}: design-postgis-tables Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and...2 params
Retrieve detailed skills for TimescaleDB operations and best practices. ## Available Skills <available_skills> [11 ]{name description}: design-postgis-tables Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and...
path*stringskill_name*stringget_contextOpens any part of the docs (a section or a whole page) as markdown, with links to move around it. Use it on a search_docs hit before answering from it: a hit is one chunk, and often a fragment (a table row without the header that says which column is which plan, one step of a...3 params
Opens any part of the docs (a section or a whole page) as markdown, with links to move around it. Use it on a search_docs hit before answering from it: a hit is one chunk, and often a fragment (a table row without the header that says which column is which plan, one step of a...
id*stringpart*valueurl*stringSponsors
Configuration
OPENAI_API_KEY*secretYour API key for text embeddings via OpenAI
PGHOST*secretPostgreSQL host to connect to
PGPORT*secretPostgreSQL port to connect to
PGUSER*secretPostgreSQL user to connect as
PGPASSWORD*secretPostgreSQL password to connect with
PGDATABASE*secretPostgreSQL database to connect to
DB_SCHEMAsecretPostgreSQL database schema to use
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
Details
- Repository
- github.com/timescale/pg-aiguide
- Category
- Databases
- Package
@tigerdata/pg-aiguide- Transport
- STDIO, HTTP
- Auth
- Required
- Registry
- MCP registry, active
- Prompts
- 11
- Tools verified
- Nov 13, 2026