mcp-pg-server
A community MCP server for PostgreSQL that enables AI assistants to query databases, inspect schemas, and explain query plans from the IDE. It supports local and development Postgres instances, connecting via DATABASE_URL or per-call connectionString. The server is read-only by default for safety but can be configured to allow writes.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Query PostgreSQL databases using SQL
- Inspect table schemas and row counts
- Explain query execution plans
Source and maintenance
- Last repository push
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
mcp-pg-server 1.0.0
{
"version": "1.0.0",
"transport": "stdio",
"identifier": "mcp-pg-server",
"registryType": "npm"
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-pg-server": {
"command": "npx",
"args": [
"-y",
"mcp-pg-server@1.0.0"
]
}
}
}Cline
{
"mcpServers": {
"mcp-pg-server": {
"command": "npx",
"args": [
"-y",
"mcp-pg-server@1.0.0"
]
}
}
}VS Code
{
"servers": {
"mcp-pg-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"mcp-pg-server@1.0.0"
]
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-pg-server": {
"command": "npx",
"args": [
"-y",
"mcp-pg-server@1.0.0"
]
}
}
}Let your agent find its tools
Find servers like mcp-pg-server from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.