postgres-explorer
Allows querying and exploring a PostgreSQL database in read-only mode, providing tools to get schema and execute SELECT queries.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@postgres-explorerlist all tables in the public schema"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🐘 Postgres-Explorer MCP Server
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)
Related MCP server: MCP PostgreSQL Server
🔐 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 |
| 📋 Lista todas las tablas y sus columnas del esquema |
| 🔍 Ejecuta una consulta |
🔒 Seguridad: solo permite
SELECT. Conexiones en modo read-only.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mathewsls/mcp-postgresql'
If you have feedback or need assistance with the MCP directory API, please join our Discord server