
PG Aiguide MCP Server
by timescaleio.github.timescale/pg-aiguidev0.6.1
Comprehensive PostgreSQL documentation and best practices, including ecosystem tools
context tax
~2,719 tok/turn2 tools
security
97/100
cold start
pending
freshness
Active34d ago
Our reading of PG Aiguide, from the data
PG Aiguide is a database MCP server from timescale, listed in the official MCP Registry.
Its 2 tools add about 2,719 tokens to every model turn, heavier than the database median of 1,925 tokens across 101 measured servers (measured 2026-10-19).
Maintenance is active: the last public signal was 34 days ago (2026-10-07). For comparison, 63% of database servers are active or maintained.
With 1,871 GitHub stars it ranks #16 of 1,397 database servers we index.
It runs either locally over stdio or as a hosted endpoint and needs 7 secrets (OPENAI_API_KEY, PGHOST, PGPORT, …); use a scoped, least-privilege key.
Install PG Aiguide MCP server
Install in Claude Code
claude mcp add pg-aiguide -e OPENAI_API_KEY='<openai-api-key>' -e PGHOST='<pghost>' -e PGPORT='<pgport>' -e PGUSER='<pguser>' -e PGPASSWORD='<pgpassword>' -e PGDATABASE='<pgdatabase>' -e DB_SCHEMA='<db-schema>' -- npx -y @tigerdata/pg-aiguideInstall in Cursor
{
"mcpServers": {
"pg-aiguide": {
"command": "npx",
"args": [
"-y",
"@tigerdata/pg-aiguide"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"PGHOST": "<pghost>",
"PGPORT": "<pgport>",
"PGUSER": "<pguser>",
"PGPASSWORD": "<pgpassword>",
"PGDATABASE": "<pgdatabase>",
"DB_SCHEMA": "<db-schema>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"pg-aiguide": {
"command": "npx",
"args": [
"-y",
"@tigerdata/pg-aiguide"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"PGHOST": "<pghost>",
"PGPORT": "<pgport>",
"PGUSER": "<pguser>",
"PGPASSWORD": "<pgpassword>",
"PGDATABASE": "<pgdatabase>",
"DB_SCHEMA": "<db-schema>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"pg-aiguide": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tigerdata/pg-aiguide"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"PGHOST": "<pghost>",
"PGPORT": "<pgport>",
"PGUSER": "<pguser>",
"PGPASSWORD": "<pgpassword>",
"PGDATABASE": "<pgdatabase>",
"DB_SCHEMA": "<db-schema>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"pg-aiguide": {
"command": "npx",
"args": [
"-y",
"@tigerdata/pg-aiguide"
],
"env": {
"OPENAI_API_KEY": "<openai-api-key>",
"PGHOST": "<pghost>",
"PGPORT": "<pgport>",
"PGUSER": "<pguser>",
"PGPASSWORD": "<pgpassword>",
"PGDATABASE": "<pgdatabase>",
"DB_SCHEMA": "<db-schema>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Try it in a sandbox first: this installs it with scripts off and starts it with no network, then lists its tools and token cost. How it works
npx mcpskillhub test @tigerdata/pg-aiguide --env OPENAI_API_KEY --env PGHOST --env PGPORT
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| OPENAI_API_KEY | yes | yes | Your API key for text embeddings via OpenAI |
| PGHOST | yes | yes | PostgreSQL host to connect to |
| PGPORT | yes | yes | PostgreSQL port to connect to |
| PGUSER | yes | yes | PostgreSQL user to connect as |
| PGPASSWORD | yes | yes | PostgreSQL password to connect with |
| PGDATABASE | yes | yes | PostgreSQL database to connect to |
| DB_SCHEMA | — | yes | PostgreSQL database schema to use |
Remote endpoints
- streamable-http
https://mcp.tigerdata.com/docs
Context tax
Connecting this server adds ~2,719 tokens of tool definitions to every model turn (moderate, 2 tools). Measured 2026-10-19 via its hosted endpoint; o200k tokenizer, worst case for clients that load all tools up front. How we measure
| Model | Per 1,000 turns | With prompt caching |
|---|---|---|
| Claude Opus 5.5 | $10.88 | $0.544 |
| Claude Sonnet 5.5 | $5.44 | $0.544 |
| Claude Haiku 5.5 | $0.272 | — |
Input prices as of 2026-10-06. Excludes your own prompt and output.
Tools (2)
view_skill2,349 tokRetrieve 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 performance patterns for location-based applications design-postgres-tables "Use this skill for general PostgreSQL table design.\n\n**Trigger when user asks to:**\n- Design PostgreSQL tables, schemas, or data models when creating new tables and when modifying existing ones.\n- Choose data types, constraints, or ind
search_docs370 tokSearch 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.
Security signals
97/100 — no known issues found as of 2026-10-19, from the checks below. This is not a guarantee of safety; review what a server can do before connecting it.
Deductions
- No security policy (SECURITY.md)-3
Checks
- ✓Repository hygiene (archived, activity, license, security policy)
- ✓Tool descriptions (prompt-injection and hidden-text heuristics)
- ○Package metadata (install scripts, provenance) — pending
- ○Source scan (secrets, CVEs, risky code) by vectra-guard — pending
Scan it yourself before installing with vectra-guard, the open-source agent security CLI (made by NavyaAI, which also runs MCPSkillHub). Scoring rules
Freshness
Active — last maintenance signal 34d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-07 · 34d ago · GitHub
Latest release
2026-09-04 · 2mo ago · GitHub · v0.6.1
Package published
no data · npm/PyPI
Registry entry updated
2026-09-04 · 2mo ago · official registry · v0.6.1
How it compares in Database
Against the most-starred database servers we index. Token cost is per model turn, measured from each server's live tool list.
| Server | Stars | Tools | Tokens / turn | Freshness | Runs |
|---|---|---|---|---|---|
| PG Aiguide (this) | 1,871 | 2 | 2,719 | Active | local + hosted |
| Screenpipe | 21,982 | — | not measured | Active | — |
| Genai Toolbox | 16,679 | — | not measured | Active | hosted |
| Convex Backend | 12,716 | — | not measured | Active | — |
| Kubeshark | 12,100 | — | not measured | Active | local |
| Baserow | 6,174 | — | not measured | Active | — |
FAQ
›How do I install the PG Aiguide MCP server in Claude Code?
Run: claude mcp add pg-aiguide -e OPENAI_API_KEY='<openai-api-key>' -e PGHOST='<pghost>' -e PGPORT='<pgport>' -e PGUSER='<pguser>' -e PGPASSWORD='<pgpassword>' -e PGDATABASE='<pgdatabase>' -e DB_SCHEMA='<db-schema>' -- npx -y @tigerdata/pg-aiguide. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does PG Aiguide require an API key?
Yes. It expects OPENAI_API_KEY, PGHOST, PGPORT, PGUSER, PGPASSWORD, PGDATABASE, DB_SCHEMA, of which 7 are secrets.
›Can I use PG Aiguide as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is PG Aiguide in the official MCP registry?
Yes, as io.github.timescale/pg-aiguide.
›How many tokens does PG Aiguide add to my context?
Its tool definitions total about 2,719 tokens, resent on every turn.
Sources and method
- Official MCP Registry entry
- updated 2026-09-04
- GitHub repository
- fetched 2026-10-19
- Package registry (npm / PyPI)
- listed
- Tool list (tools/list), measured by us
- 2026-10-19
- Security signals, computed by us
- 2026-10-19
- Last checked against all sources
- 2026-10-19
The description, packages and links come from the maintainer's own published metadata. Token cost, security signals, freshness and the reading above are MCPSkillHub's own measurements; see the methodology. Editorial standards are owned by Ramachandra Vikas Chamarthi, Founder & AI HPC Architect. Spot an error? Request a correction or claim the listing.
Alternatives to PG Aiguide
Other database MCP servers.