Postgres MCP Server
by edelciomolinaio.github.edelciomolina/postgres-mcpv1.7.0
PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
context tax
queued
security
queued
cold start
queued
freshness
Slowing4mo ago
Install Postgres MCP server
Install in Claude Code
claude mcp add postgres-edelciomolina -- npx -y @edelciomolina/postgres-mcpInstall in Cursor
{
"mcpServers": {
"postgres-edelciomolina": {
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"postgres-edelciomolina": {
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"postgres-edelciomolina": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"postgres-edelciomolina": {
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| MCP_KEY_HOST | — | — | Name of the .env variable that holds the database host |
| MCP_KEY_PORT | — | — | Name of the .env variable that holds the database port |
| MCP_KEY_NAME | — | — | Name of the .env variable that holds the database name |
| MCP_KEY_USER | — | — | Name of the .env variable that holds the database user |
| MCP_KEY_PASS | — | — | Name of the .env variable that holds the database password |
| MCP_KEY_SSLMODE | — | — | Name of the .env variable that holds the SSL mode (e.g. require) |
Freshness
Slowing — last maintenance signal 4mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-06-13 · 4mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-06-11 · 4mo ago · official registry · v1.7.0
FAQ
›How do I install the Postgres MCP server in Claude Code?
Run: claude mcp add postgres-edelciomolina -- npx -y @edelciomolina/postgres-mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Postgres require an API key?
No required environment variables are declared in its published metadata.
›Can I use Postgres as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Postgres in the official MCP registry?
Yes, as io.github.edelciomolina/postgres-mcp.
Alternatives to Postgres
Other database MCP servers.