Install pg Aiguide in Claude Code
Remote URL
claude mcp add --transport http pg-aiguide https://mcp.tigerdata.com/docs{
"mcpServers": {
"pg-aiguide": {
"url": "https://mcp.tigerdata.com/docs"
}
}
}npm
claude mcp add pg-aiguide -e OPENAI_API_KEY=... -e PGHOST=... -e PGPORT=... -e PGUSER=... -e PGPASSWORD=... -e PGDATABASE=... -- npx -y @tigerdata/pg-aiguide{
"mcpServers": {
"pg-aiguide": {
"command": "npx",
"args": [
"-y",
"@tigerdata/pg-aiguide"
],
"env": {
"OPENAI_API_KEY": "...",
"PGHOST": "...",
"PGPORT": "...",
"PGUSER": "...",
"PGPASSWORD": "...",
"PGDATABASE": "..."
}
}
}
}Docker
claude mcp add pg-aiguide -e OPENAI_API_KEY=... -e PGHOST=... -e PGPORT=... -e PGUSER=... -e PGPASSWORD=... -e PGDATABASE=... -- docker run -i --rm -e OPENAI_API_KEY -e PGHOST -e PGPORT -e PGUSER -e PGPASSWORD -e PGDATABASE ghcr.io/timescale/pg-aiguide:0.6.1{
"mcpServers": {
"pg-aiguide": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OPENAI_API_KEY",
"-e",
"PGHOST",
"-e",
"PGPORT",
"-e",
"PGUSER",
"-e",
"PGPASSWORD",
"-e",
"PGDATABASE",
"ghcr.io/timescale/pg-aiguide:0.6.1"
],
"env": {
"OPENAI_API_KEY": "...",
"PGHOST": "...",
"PGPORT": "...",
"PGUSER": "...",
"PGPASSWORD": "...",
"PGDATABASE": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the pg Aiguide MCP server do?
Comprehensive PostgreSQL documentation and best practices, including ecosystem tools
Is the pg Aiguide MCP server free?
The server is free, but you will likely need an account. The server itself is free, but it connects to a service that needs an account or API key, which may have paid tiers. Check the provider for current pricing.
Does pg Aiguide run locally or remotely?
Local + Remote. Can run locally or be used as a hosted remote server.
How do I add pg Aiguide to Claude Code?
Run: claude mcp add --transport http pg-aiguide https://mcp.tigerdata.com/docs
More databases MCP servers
View allQdrant
qdrant/mcp-server-qdrant
Implement semantic memory layer on top of the Qdrant vector search engine
Mysql
benborla/mcp-server-mysql
MySQL database integration with configurable access controls and schema inspection.
MySQL
designcomputer/mysql_mcp_server
MySQL database integration with configurable access controls, schema inspection and security guidelines.
Mindwtr
dongdongbh/Mindwtr
Task automation via SQLite, desktop Local API, or Mindwtr Cloud; read-only by default.
ArcadeDB
ArcadeData/arcadedb
Built into ArcadeDB, a multi-model database (graph, document, key-value, time-series, vector) with SQL, Cypher, Gremlin and MongoDB QL support.
LINQ to DB
linq2db/linq2db
Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.