Back to directory
@modelcontextprotocol/server-postgres

@modelcontextprotocol/server-postgres

@orlando20191

A Model Context Protocol server providing read-only access to PostgreSQL databases, enabling LLMs to inspect schemas and execute queries.

PostgreSQLdatabaseLLMread-onlyschema

Installation & Configuration

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://localhost/mydb"
      ]
    }
  }
}

Information

Transport
stdio
Language
JavaScript
Created
2025/4/23
Updated
2025/4/23