Explore
Contribute
Sign In

Explore

  1. Explore
  2. /
  3. Databases & Storage
  4. /
  5. PostgreSQL read-only (Archived)

PostgreSQL read-only (Archived)

PostgreSQL read-only (Archived)

mcp

Connect with read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

100K+

1 Tool

Packaged by
Requires Secrets
Add to Docker Desktop

Version 4.43 or later needs to be installed to add the server automatically

OverviewTools (1)ConfigManual installation
Docker Hub⁠Github repository⁠

Use cases

Run a read-only SQL query

About

PostgreSQL readonly (Archived) MCP Server

Connect with read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

What is an MCP Server?⁠

Characteristics

AttributeDetails
Docker Imagemcp/postgres⁠
Authormodelcontextprotocol⁠
Repositoryhttps://github.com/modelcontextprotocol/servers⁠
Dockerfilehttps://github.com/modelcontextprotocol/servers/blob/2025.4.24/src/postgres/Dockerfile⁠
Docker Image built byDocker Inc.
Docker Scout Health ScoreDocker Scout Health Score
Verify SignatureCOSIGN_REPOSITORY=mcp/signatures cosign verify mcp/postgres --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub
LicenceMIT License

Available Tools (1)

Tools provided by this ServerShort Description
queryRun a read-only SQL query

Tools Details

Tool: query

Run a read-only SQL query

ParametersTypeDescription
sqlstringoptional

Use this MCP Server

{
  "mcpServers": {
    "postgres": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "POSTGRES_URL",
        "mcp/postgres",
        "$POSTGRES_URL"
      ],
      "env": {
        "POSTGRES_URL": "postgresql://host.docker.internal:5432/mydb"
      }
    }
  }
}

Why is it safer to run MCP Servers with Docker?⁠

Manual installation

You can install the MCP server using:

​

Installation for

Related servers

© 2025 Docker, Inc. All rights reserved. | Terms of Service | Subscription Service Agreement | Privacy | Legal