Postgres Explorer
БесплатноНе проверенEnables safe read-only exploration and querying of a PostgreSQL database, listing tables and executing SELECT statements.
Описание
Enables safe read-only exploration and querying of a PostgreSQL database, listing tables and executing SELECT statements.
README
Servidor MCP que permite a Claude Code explorar y consultar una base de datos PostgreSQL de forma segura (solo lectura).
✅ Requisitos
- 🐍 Python >= 3.12
- 🗄️ PostgreSQL accesible
- 🐳 Docker (opcional)
🔐 Variables de entorno
DB_HOST=localhost
DB_NAME=name_example
DB_USER=user_example
DB_PASSWORD=password_example
DB_PORT=5432
⚙️ Configuración para Claude Code
Agrega esto a tu .mcp.json en la raíz del proyecto:
🐳 Opción 1 — Docker (recomendado)
Primero construye la imagen desde la raíz del proyecto:
docker build -t mi-mcp-postgres .
Luego agrega esto a tu .mcp.json:
{
"mcpServers": {
"postgres-explorer": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--network",
"host",
"--env-file",
"/ruta/absoluta/hacia/tu/proyecto/.env",
"mi-mcp-postgres"
]
}
}
}
⚡ Opción 2 — Python directo
{
"mcpServers": {
"postgres-explorer": {
"command": "uv",
"args": ["run", "python", "main.py"]
}
}
}
🛠️ Herramientas disponibles
| Herramienta | Descripción |
|---|---|
get_schema |
📋 Lista todas las tablas y sus columnas del esquema public |
execute_query |
🔍 Ejecuta una consulta SELECT y devuelve resultados |
🔒 Seguridad: solo permite
SELECT. Conexiones en modo read-only.
Установка Postgres Explorer
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/mathewsls/mcp-postgresqlFAQ
Postgres Explorer MCP бесплатный?
Да, Postgres Explorer MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Postgres Explorer?
Нет, Postgres Explorer работает без API-ключей и переменных окружения.
Postgres Explorer — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Postgres Explorer в Claude Desktop, Claude Code или Cursor?
Открой Postgres Explorer на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Postgres Explorer with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
