What is the Postgres MCP MCP server?
PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
How to install Postgres MCP
Copy-paste configuration for popular MCP clients.
MCP_KEY_HOSTName of the .env variable that holds the database host
MCP_KEY_PORTName of the .env variable that holds the database port
MCP_KEY_NAMEName of the .env variable that holds the database name
MCP_KEY_USERName of the .env variable that holds the database user
MCP_KEY_PASSName of the .env variable that holds the database password
MCP_KEY_SSLMODEName of the .env variable that holds the SSL mode (e.g. require)
{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
],
"env": {
"MCP_KEY_HOST": "<YOUR_MCP_KEY_HOST>",
"MCP_KEY_PORT": "<YOUR_MCP_KEY_PORT>",
"MCP_KEY_NAME": "<YOUR_MCP_KEY_NAME>",
"MCP_KEY_USER": "<YOUR_MCP_KEY_USER>",
"MCP_KEY_PASS": "<YOUR_MCP_KEY_PASS>",
"MCP_KEY_SSLMODE": "<YOUR_MCP_KEY_SSLMODE>"
}
}
}
}{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
],
"env": {
"MCP_KEY_HOST": "<YOUR_MCP_KEY_HOST>",
"MCP_KEY_PORT": "<YOUR_MCP_KEY_PORT>",
"MCP_KEY_NAME": "<YOUR_MCP_KEY_NAME>",
"MCP_KEY_USER": "<YOUR_MCP_KEY_USER>",
"MCP_KEY_PASS": "<YOUR_MCP_KEY_PASS>",
"MCP_KEY_SSLMODE": "<YOUR_MCP_KEY_SSLMODE>"
}
}
}
}{
"mcpServers": {
"postgres-mcp": {
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
],
"env": {
"MCP_KEY_HOST": "<YOUR_MCP_KEY_HOST>",
"MCP_KEY_PORT": "<YOUR_MCP_KEY_PORT>",
"MCP_KEY_NAME": "<YOUR_MCP_KEY_NAME>",
"MCP_KEY_USER": "<YOUR_MCP_KEY_USER>",
"MCP_KEY_PASS": "<YOUR_MCP_KEY_PASS>",
"MCP_KEY_SSLMODE": "<YOUR_MCP_KEY_SSLMODE>"
}
}
}
}{
"servers": {
"postgres-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@edelciomolina/postgres-mcp"
],
"env": {
"MCP_KEY_HOST": "<YOUR_MCP_KEY_HOST>",
"MCP_KEY_PORT": "<YOUR_MCP_KEY_PORT>",
"MCP_KEY_NAME": "<YOUR_MCP_KEY_NAME>",
"MCP_KEY_USER": "<YOUR_MCP_KEY_USER>",
"MCP_KEY_PASS": "<YOUR_MCP_KEY_PASS>",
"MCP_KEY_SSLMODE": "<YOUR_MCP_KEY_SSLMODE>"
}
}
}
}claude mcp add postgres-mcp --env MCP_KEY_HOST=<YOUR_MCP_KEY_HOST> --env MCP_KEY_PORT=<YOUR_MCP_KEY_PORT> --env MCP_KEY_NAME=<YOUR_MCP_KEY_NAME> --env MCP_KEY_USER=<YOUR_MCP_KEY_USER> --env MCP_KEY_PASS=<YOUR_MCP_KEY_PASS> --env MCP_KEY_SSLMODE=<YOUR_MCP_KEY_SSLMODE> -- npx -y @edelciomolina/postgres-mcpRelated MCP servers
Scrapling MCP Server
Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.
Chrome DevTools MCP
Give your AI coding agent full control of a live Chrome browser for automation, debugging, and performance analysis.
com.puter/mcp-server
Let AI agents manage your Puter files, websites, and serverless workers over MCP.
Browser automation for AI agents via MCP, powering ByteDance's Agent TARS hybrid GUI/DOM browser control.
Run arbitrary shell commands from an MCP-connected AI agent.
Filesystem access MCP server from ByteDance's UI-TARS/Agent TARS ecosystem.