PostgreSQL MCP Server
Category: databases
Author: antonorlov
Language: JavaScript
Tags: postgres,database,mcp-server
Description: Easily connect to PostgreSQL databases via a plug-and-play MCP server. Supports SELECT, INSERT, UPDATE, and more with prepared statements, automatic connection handling, and full TypeScript support
Tools:
Server command: PG_HOST={PG_HOST} PG_PORT={PG_PORT} PG_USER={PG_USER} PG_PASSWORD={PG_PASSWORD} PG_DATABASE={PG_DATABASE} npx -y mcp-postgres-server
Server configuration:
{
  "mcpServers": {
    "postgres": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mcp-postgres-server"],
      "env": {
        "PG_HOST": "your_host",
        "PG_PORT": "5432",
        "PG_USER": "your_user",
        "PG_PASSWORD": "your_password",
        "PG_DATABASE": "your_database"
      }
    }
  }
}