mcp-server-postgres-multi-schema
A Model Context Protocol server that provides read-only access to PostgreSQL databases with enhanced multi-schema support.
Install / Use
claude mcp add HarjjotSinghh -- npx -y github:HarjjotSinghh/mcp-server-postgres-multi-schemaIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of mcp-server-postgres-multi-schema
mcp-server-postgres-multi-schema scores 67/100 on our quality scale, 560th of 595 Data & Analytics skills we index.
Its MCP Server is 2.5 KB long, well organised into 12 sections with 3 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 1.7 years ago. Expect some instructions to reference tool versions or APIs that have since changed.
- Our last check on 2026-09-14 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 80/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-29. Automated pattern scan on 2026-09-29. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mcp-server-postgres-multi-schema compared with similar skills
All 4 of these similar skills score higher than mcp-server-postgres-multi-schema; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-server-postgres-multi-schema (this skill)by HarjjotSinghh | 67 | 3 | 20mo ago | MCP Server |
| claude-memby thedotmack | 100 | 102.9k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 101.9k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 77.7k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.6k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-server-postgres-multi-schema?
- Run
claude mcp add HarjjotSinghh -- npx -y github:HarjjotSinghh/mcp-server-postgres-multi-schema. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-server-postgres-multi-schema work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-server-postgres-multi-schema safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 80/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-server-postgres-multi-schema still maintained?
- The repository was last updated about 1.7 years ago. Expect some instructions to reference tool versions or APIs that have since changed.
Skill content
View source on GitHubPostgreSQL Multi-Schema MCP Server
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.
Key Features
- 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
Components
Tools
- query
- Execute read-only SQL queries against the connected database
- Input:
sql(string): The SQL query to execute - All queries are executed within a READ ONLY transaction
- Schema context maintained through search_path restriction
Resources
The server provides schema information for each table across authorized schemas:
- Table Schemas (
postgres://<host>/<db_schema>/<table>/schema)- JSON schema information for each table
- Includes column names, data types, and type modifiers
- Automatically discovered from database metadata
- Multi-schema support with explicit schema allow-list
Usage
The server requires a database URL and accepts a comma-separated list of schemas to expose:
npx -y mcp-server-postgres-multi-schema <database-url> [schemas]
- database-url: PostgreSQL connection string (e.g.,
postgresql://localhost/mydb) - schemas: Comma-separated list of schemas to expose (defaults to 'public' if not specified)
Examples
# Connect with default public schema
npx -y mcp-server-postgres-multi-schema postgresql://localhost/mydb
# Connect with multiple schemas
npx -y mcp-server-postgres-multi-schema postgresql://localhost/mydb public,analytics,staging
Usage with Claude Desktop
Configure the "mcpServers" section in your claude_desktop_config.json:
NPX
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": [
"-y",
"mcp-server-postgres-multi-schema",
"postgresql://localhost/mydb",
"public,audit"
]
}
}
}
License
This multi-schema MCP server is licensed under the MIT License. You may use, modify, and distribute the software according to the terms in the LICENSE file.
Related Skills
claude-mem
102.9kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
101.9kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
77.7kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.6kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
