Postgres AI Guide

v0.5.0Databasesstable

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

aiai-agentsai-codingclaude-code-pluginclaude-code-plugins
Share:
1,737
Stars
0
Downloads
0
Weekly
0/5

What is Postgres AI Guide?

Postgres AI Guide is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server and claude plugin for postgres skills and documentation. helps ai coding tools generate better postgresql code.

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

This server falls under the Databases category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • semantic_search_postgres_docs
  • semantic_search_tiger_docs
  • view_skill

Use Cases

PostgreSQL skills and documentation for AI tools
Improve AI-generated SQL code quality
timescale

Maintainer

LicenseApache-2.0
Languagepython
Versionv0.5.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @tigerdata/pg-aiguide

Manual Installation

npx -y @tigerdata/pg-aiguide

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Postgres AI Guide

pg-aiguide is an MCP server and AI agent skill that provides AI coding assistants with semantic search over PostgreSQL documentation, TimescaleDB extension docs, and PostGIS reference material, along with curated best-practice guidance for schema design, indexing, data types, constraints, naming conventions, and performance tuning. It connects to a hosted endpoint at mcp.tigerdata.com/docs and exposes two tools—search_docs and view_skill—that measurably improve the quality of AI-generated SQL: in benchmarks, schemas produced with pg-aiguide included 4× more constraints and 55% more indexes than those produced without it. SQL developers and AI-assisted engineering teams use pg-aiguide to prevent the outdated patterns and missing constraints that AI models commonly produce when writing PostgreSQL code.

Prerequisites

  • Node.js 18+ with npx available, OR an MCP-compatible client that supports HTTP transport
  • One of: Claude Code, Cursor, VS Code with the MCP extension, Gemini CLI, or another MCP-compatible tool
  • No PostgreSQL installation required—pg-aiguide queries documentation, not a live database
  • Internet access to reach the hosted MCP endpoint at https://mcp.tigerdata.com/docs
1

Add pg-aiguide to Claude Code

Install pg-aiguide as a Claude Code plugin from the Anthropic marketplace. This is the fastest path for Claude Code users.

npx -y @tigerdata/pg-aiguide
2

Add pg-aiguide to VS Code

Use the VS Code CLI to register the pg-aiguide MCP server via its hosted HTTP endpoint.

code --add-mcp '{"name":"pg-aiguide","type":"http","url":"https://mcp.tigerdata.com/docs"}'
3

Add pg-aiguide to Gemini CLI

Register the hosted MCP server with Gemini CLI using HTTP transport.

gemini mcp add -s user pg-aiguide "https://mcp.tigerdata.com/docs" -t http
4

Add pg-aiguide to Codex CLI

Register the MCP server with the OpenAI Codex CLI.

codex mcp add --url "https://mcp.tigerdata.com/docs" pg-aiguide
5

Use pg-aiguide in your AI coding session

With pg-aiguide connected, ask your AI assistant PostgreSQL questions. The assistant will automatically invoke search_docs or view_skill to retrieve accurate, version-aware documentation and best-practice guidance before generating SQL.

Postgres AI Guide Examples

Client configuration (Claude Desktop / JSON MCP config)

For MCP clients that use a JSON configuration file, connect to pg-aiguide via its hosted HTTP endpoint.

{
  "mcpServers": {
    "pg-aiguide": {
      "type": "http",
      "url": "https://mcp.tigerdata.com/docs"
    }
  }
}

Prompts to try

With pg-aiguide connected, your AI assistant will use it automatically when answering PostgreSQL questions. You can also invoke it explicitly.

- "Design a users table with proper constraints and indexes for a SaaS application"
- "What is the best way to implement time-series data storage in PostgreSQL using TimescaleDB?"
- "Show me the correct way to use JSONB indexes in PostgreSQL 16"
- "What are the recommended naming conventions for PostgreSQL tables and columns?"
- "How should I implement row-level security for a multi-tenant schema?"

Troubleshooting Postgres AI Guide

The AI assistant does not appear to be using pg-aiguide's tools

Verify the MCP server is connected by checking your client's MCP server list. For Claude Code, run 'claude mcp list' to confirm pg-aiguide appears. You can also explicitly prompt: 'Use the pg-aiguide search_docs tool to find documentation on...'.

Connection to https://mcp.tigerdata.com/docs fails or times out

Check your internet connection and corporate firewall rules. The endpoint is a public HTTPS service with no authentication required. If behind a proxy, ensure your MCP client's HTTP client respects your system proxy settings.

search_docs returns results for the wrong PostgreSQL version

Include the target version explicitly in your query, e.g., 'PostgreSQL 16 COPY statement syntax'. The search_docs tool is version-aware and will prioritize documentation matching the version you specify.

Frequently Asked Questions about Postgres AI Guide

What is Postgres AI Guide?

Postgres AI Guide is a Model Context Protocol (MCP) server that mcp server and claude plugin for postgres skills and documentation. helps ai coding tools generate better postgresql code. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Postgres AI Guide?

Install via npm with the command: npx -y @tigerdata/pg-aiguide. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Postgres AI Guide?

Postgres AI Guide works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Postgres AI Guide free to use?

Yes, Postgres AI Guide is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Databases MCP Servers

Explore all databases servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "pg-aiguide": { "command": "npx", "args": ["-y", "@tigerdata/pg-aiguide"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Postgres AI Guide?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides