技能潮 SkillTide 提交收录
官方说明7 个来源MCP 服务8 天前
JaviMaligno/postgres_mcp

JaviMaligno/postgres_mcp

🐍 🏠 - PostgreSQL querying, schema exploration and table analysis, read-only by default with SQL injection…
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add postgres-mcp -- npx -y postgres_mcp
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
12 ★ · JaviMaligno/postgres_mcp · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 7 个来源列出
评分构成
综合分 703 · 12 ★ · 7 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 JaviMaligno/postgres_mcp;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

PostgreSQL MCP Server

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

MCP server for PostgreSQL database operations. Works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible client.
Language Versions
This repository contains both **TypeScript** and **Python** implementations:
| Version | Directory | Status | MCP protocol | Installation |
|---------|-----------|--------|--------------|--------------|
| **TypeScript** | /typescript | ✅ Recommended (Smithery) | 2026-07-28 (SDK v2) | npm install -g @javiagui/postgresql-mcp |
| Python | /python | ✅ Stable | 2026-07-28 (SDK v2) | pipx install postgresql-mcp |
> **Note**: The TypeScript version is used for Smithery deployments. Both versions provide identical functionality.
> **Protocol compatibility**: both servers speak the
> 2026-07-28 revision and are
> **dual-era** — clients that still open with the 2025-era initialize handshake are served
> exactly as before, so no client needs upgrading. The TypeScript package requires Node.js 20+;
> the Python package requires Python 3.10+.
Features
- **Query Execution**: Execute SQL queries with read-only protection by default
- **Schema Exploration**: List schemas, tables, views, and functions
- **Table Analysis**: Describe structure, indexes, constraints, and statistics
- **Performance Tools**: EXPLAIN queries and analyze table health
- **Security First**: SQL injection prevention, credential protection, read-only by default
- **MCP Prompts**: Guided workflows for exploration, query building, and documentation
- **MCP Resources**: Browsable database structure as markdown
Quick Start
TypeScript (Recommended for Smithery)
Python
**Full Installation Guide** - Includes database permissions setup, remote connections, and troubleshooting.
Configuration
Environment Variables
| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| POSTGRES_HOST | | localhost | Database host |
| POSTGRES_PORT | | 5432 | Database port |
| POSTGRES_USER | ✅ | | Database user |
| POSTGRES_PASSWORD | ✅ | | Database password |
| POSTGRES_DB | ✅ | | Database name |
| POSTGRES_SSLMODE | | prefer | SSL mode |
| ALLOW_WRITE_OPERATIONS | | false | Enable INSERT/UPDATE/DELETE |
| QUERY_TIMEOUT | | 30 | Query timeout (seconds) |
| MAX_ROWS | | 1000 | Maximum rows returned |
Multiple databases
Most real work touches more than one database. Instead of editing this config and
restarting your client every time, declare several connections and pick one per
call by **alias**:
- **list_databases** returns the configured aliases with host, database name,
write permission and which is the default. **Credentials are never returned.**
- Every other tool takes an optional **database** argument naming an alias.
Omit it and you get the default connection — so an existing single-database
setup keeps working with no changes at all.
- **allowWrite is per connection**, falling back to ALLOW_WRITE_OPERATIONS.
A production replica stays read-only while a local database allows writes.
- default: true marks the connection used when database is omitted;
otherwise it is the first one declared. At most one connection may be marked
default.
- Each connection accepts either discrete fields (host, port, user,
password, database, sslmode) or a url DSN — and discrete fields
override the DSN, so you can reuse a URL and change one part of it.
- One pool per alias, opened lazily: a configured but unused database never
opens a socket.
POSTGRES_CONNECTIONS and the plain POSTGRES_* variables are **mutually
来源
awesome · https://github.com/JaviMaligno/postgres_mcp
按领域浏览
MCP 服务
Traction
12 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引