Feedback

PostgreSQL Multi-Schema MCP Server

@harjjotsinghh Claim

Basic information

Runtime
JavaScript
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
harjjotsinghh
Submitted by
Community
Quality
40
Stars
3

About PostgreSQL Multi-Schema MCP Server

PostgreSQL Multi-Schema offers read-only access with advanced schema support for secure query execution and multi-namespace isolation.

PostgreSQL Multi-Schema is a MCP server in the Databases category listed in the AddMCP.net directory, published by harjjotsinghh. It exposes 1 tool, including query. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 3 GitHub stars. Source code is hosted on github.com. Related topics: analytics-data, community, databases, mcp, mcp-server.

Setup

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

PostgreSQL Multi-Schema MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

PostgreSQL Multi-Schema MCP Server tools

  • query — Run a read-only SQL query
    sql:string

Overview

What is PostgreSQL Multi-Schema?

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

How to use PostgreSQL Multi-Schema?

Run the server via npx -y mcp-server-postgres-multi-schema <database-url> [schemas], where schemas is an optional comma-separated list (defaults to public). For Claude Desktop, add an entry to claude_desktop_config.json under mcpServers with the command and arguments.

Key features of PostgreSQL Multi-Schema

  • Multi-schema support via command-line configuration
  • Schema isolation with strict access control
  • Cross-schema discovery with unified table view
  • Metadata security filtering system catalogs
  • Read-only query execution within READ ONLY transactions
  • Automatic table schema discovery per authorized schema

Use cases of PostgreSQL Multi-Schema

  • Let an LLM browse and query databases with multiple schemas (e.g., public, analytics, staging)
  • Provide read-only database access for AI assistants without write risk
  • Enable cross-schema data discovery for documentation or analysis
  • Use in Claude Desktop to interact with PostgreSQL data via natural language

Frequently asked questions

1 What schemas does the server expose?

The server exposes only the schemas specified via the command-line argument. If none are given, it defaults to the public schema.

2 What type of queries can I execute?

Only read‑only SQL queries are allowed. All queries run inside a READ ONLY transaction, preventing any writes.

3 How do I configure the server with Claude Desktop?

Add an mcpServers entry in claude_desktop_config.json with command npx -y mcp-server-postgres-multi-schema and arguments including the database URL and optional schema list.

4 Does the server expose system tables?

No. The server filters system catalogs to expose only user-defined tables in the authorized schemas.

5 Is the server limited to a single schema?

No. You can pass a comma-separated list of schemas (e.g., public,analytics,staging) to access multiple namespaces.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬