PG MCP Server
by ofershapio.github.ofershap/postgresv1.0.0
MCP server for PostgreSQL — query databases, inspect schemas, explain queries from your IDE
context tax
queued
security
queued
cold start
queued
freshness
Maintained58d ago
Install PG MCP server
Install in Claude Code
claude mcp add pg -- npx -y mcp-pg-serverInstall in Cursor
{
"mcpServers": {
"pg": {
"command": "npx",
"args": [
"-y",
"mcp-pg-server"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"pg": {
"command": "npx",
"args": [
"-y",
"mcp-pg-server"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"pg": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-pg-server"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"pg": {
"command": "npx",
"args": [
"-y",
"mcp-pg-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Freshness
Maintained — last maintenance signal 58d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-08-12 · 58d ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-08-12 · 58d ago · official registry · v1.0.0
FAQ
›How do I install the PG MCP server in Claude Code?
Run: claude mcp add pg -- npx -y mcp-pg-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does PG require an API key?
No required environment variables are declared in its published metadata.
›Can I use PG as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is PG in the official MCP registry?
Yes, as io.github.ofershap/postgres.
Alternatives to PG
Other database MCP servers.