TokenToSeaMCP Hub
中文 Console

Postgres MCP Server

ericzakariasson

MCP Server for Postgres

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add postgres --env DATABASE_URL='<DATABASE_URL>' -- npx --yes pg-mcp-server --transport stdio

Environment variables

  • DATABASE_URL

Replace the placeholders with your own credentials and keep them out of version control.