MCP server for interacting with PostgreSQL databases, with support for multiple schemas
MCP server for interacting with PostgreSQL databases, with support for multiple schemas. The postgres multi schema mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 7 defined tools rather than through you.
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.
mcp-server-postgres-multi-schema on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Everything the assistant can do here goes through one of these:
query — Execute read-only SQL queries against the connected databaseInput — sql (string): The SQL query to executedatabase-url — PostgreSQL connection string (e.g., postgresql://localhost/mydb)schemas — Comma-separated list of schemas to expose (defaults to 'public' if not specified)Tools — The Tools tool exposed by this serverResources — The server provides schema information for each table across authorized schemas:Examples — The Examples tool exposed by this serverThis sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Postgres Multi Schema's toolset — query, Input, database-url and 4 more — is a fair guide to whether it matches your workflow. It is maintained by HarjjotSinghh; worth a glance at recent repository activity before you build anything load-bearing on it.
We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.
| Tool | What it does |
|---|---|
| query | Execute read-only SQL queries against the connected database |
| Input | sql (string): The SQL query to execute |
| database-url | PostgreSQL connection string (e.g., postgresql://localhost/mydb) |
| schemas | Comma-separated list of schemas to expose (defaults to 'public' if not specified) |
| Tools | The Tools tool exposed by this server. |
| Resources | The server provides schema information for each table across authorized schemas: |
| Examples | The Examples tool exposed by this server. |
{
"mcpServers": {
"server-postgres-multi-schema": {
"command": "npx",
"args": ["-y", "mcp-server-postgres-multi-schema"]
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
Read-only SQL access to Postgres — let your assistant inspect schemas and answer questions from real data.
Manage your whole Supabase project in conversation — database, auth, storage, Edge Functions and branches.
Query, modify and analyse local SQLite databases in conversation — the fastest way to chat with a data file.
Metabase ships its own MCP endpoint — search your BI content, build and run queries, and save questions and dashboards without leaving the chat.
Official MongoDB server covering data, schemas and Atlas management — from find queries to spinning up clusters.
Serverless Postgres with database branching — point your assistant at Neon and let it work on disposable copies.