Postgres Multi Schema MCP Server

MCP server for interacting with PostgreSQL databases, with support for multiple schemas

Local serverstdio

What is the Postgres Multi Schema MCP Server?

MCP server for interacting with PostgreSQL databases, with support for multiple schemas

What it actually does

A Model Context Protocol server that provides read-only access to PostgreSQL databases with enhanced multi-schema support. This server enables LLMs to inspect database schemas across multiple namespaces and execute read-only queries while maintaining schema isolation.

  • Multi-Schema Support — Explicitly specify which schemas to expose through command-line configuration
  • Schema Isolation — Strict access control to only authorized schemas listed during server startup
  • Cross-Schema Discovery — Unified view of tables across multiple schemas while maintaining schema boundaries
  • Metadata Security — Filters system catalogs to only expose user-defined tables in specified schemas

Recorded tools

  • query — Execute read-only SQL queries against the connected database
  • database-url — PostgreSQL connection string (e.g., postgresql://localhost/mydb)
  • schemas — Comma-separated list of schemas to expose (defaults to 'public' if not specified)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
queryExecute read-only SQL queries against the connected database

How to install the Postgres Multi Schema MCP Server

{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-postgres-multi-schema",
        "postgresql://localhost/mydb",
        "public,audit"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Postgres Multi Schema to query.”
  • “Use Postgres Multi Schema to Input.”
  • “Use Postgres Multi Schema to database-url.”

Frequently asked questions

MCP server for interacting with PostgreSQL databases, with support for multiple schemas Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.