pg-mcp-server
PostgreSQL server for agents: inspect schemas and run queries against your database.
- Last checked
- Nov 23, 2026
- Listed
- Nov 23, 2026
Install & connect
Third-party code: read it before you run it. HPSILab reviewed this guide but does not operate this server.
Install by client
claude mcp add pg-mcp-server -- npx -y pg-mcp-server
Some servers need extra arguments or environment variables (keys, paths): check the official guide below.
Generated by HPSILab from this listing's endpoint and package, in each client's documented format. The official guide decides arguments, keys and versions.
Official guide
# From the project README: https://github.com/ericzakariasson/pg-mcp-server
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["--yes", "pg-mcp-server", "--transport", "stdio"],
"env": { "DATABASE_URL": "postgresql://<user>:<password>@<your-host>:5432/<database>" }
}
}
}Links
More Data & Databases MCP servers
- mcp-server-apache-airflow
Apache Airflow server for agents: DAGs, runs, tasks, variables and connections, with a read-only mode. Community-maintained; not an official Apache Airflow product.
- Apache Spark History Server MCP
Kubeflow's server and CLI for debugging Spark applications through the Spark History Server.
- mcp-echarts
Generate ECharts charts from data for analysis and reports.
- powerbi-mcp
Query Power BI datasets with DAX and work with reports. Community-maintained; not an official Microsoft product.
- mcp-server-bigquery
BigQuery server for agents: list datasets, inspect schemas and run queries. Community-maintained; not an official Google product.
- MCP-PostgreSQL-Ops
PostgreSQL operations server: 30+ tools for performance analysis, bloat detection, locks and maintenance.