PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-edelciomolina-postgres-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in data / security
Query and manage PostgreSQL databases directly from AI assistants
Manage Supabase projects — databases, auth, storage, and edge functions
A Model Context Protocol (MCP) server that enables secure interaction with MySQL databases
MongoDB Model Context Protocol Server
MCP Security Weekly
Get CVE alerts and security updates for io.github.edelciomolina/postgres-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
🌐 English | Português
|
|
Postgres MCP🔌 Native MCP server for PostgreSQL - reads credentials from |
This is a native MCP server built directly with @modelcontextprotocol/sdk and pg (node-postgres). It provides:
.env file at startup, so no secrets are stored in mcp.json.env variable names; tell the server which ones to use via env in mcp.jsontool=<name> args to choose exactly which MCP tools to expose.env file with the database credentials (anywhere in the project tree - see .env discovery)There are two ways to use this package. Choose the one that best fits your workflow.
npx, recommended for quick start)No installation required. npx downloads and runs the package on demand. Add -y as the first arg to skip the confirmation prompt.
{
"servers": {
"Postgres Tools": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
],
"env": {
"MCP_KEY_HOST": "DB_HOST",
"MCP_KEY_PORT": "DB_PORT",
"MCP_KEY_NAME": "DB_NAME",
"MCP_KEY_SSLMODE": "DB_SSLMODE",
"MCP_KEY_USER": "DB_USER",
"MCP_KEY_PASS": "DB_PASS"
}
}
}
}
This starts the server with the read-only default tool set - no tool= args needed. To enable write-capable tools, see Write-capable tools.
VS Code supports discovering and installing MCP servers directly from the editor, without touching the terminal.
MCP: Add Serverpostgres-mcp or edelciomolinamcp.json automatically💡 You can also open the MCP Servers panel via the Copilot chat icon → Manage MCP Servers to browse, enable, or disable servers at any time.
After installing, edit the generated entry in .vscode/mcp.json to add your tool= args and env key mappings as shown in the Usage section below.
mcp.json)Read-only (default - no tool= args needed):
{
"servers": {
"Pos
... [View full README on GitHub](https://github.com/edelciomolina/postgres-mcp#readme)