postgres-mcp-server
Allows executing read-only SELECT queries against a PostgreSQL database.
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-mcp-servershow me the first 10 rows of the users table"
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-mcp-server
Servidor MCP (Model Context Protocol) para consultar bases PostgreSQL en modo solo
lectura. Expone una tool que ejecuta consultas SELECT y las devuelve al agente.
Origen y por qué existe este repo. Es una copia del componente original
@modelcontextprotocol/server-postgresde Anthropic, publicado bajo licencia MIT. Ese paquete fue deprecado por sus autores ("no longer supported"). Como lo usamos en la POC, lo conservamos acá para no depender de que siga publicado en npm y tener el código bajo nuestro control. Se mantiene la licencia y la atribución originales (ver LICENSE).
Requisitos
Node.js >= 18
Una base PostgreSQL accesible
Related MCP server: tusk-mcp
Instalación
git clone https://github.com/negrip/postgres-mcp-server.git
cd postgres-mcp-server
npm installnpm install baja las dependencias (pg y @modelcontextprotocol/sdk), que no
están deprecadas y siguen mantenidas.
Uso
Se ejecuta con node, pasando el connection string de PostgreSQL como argumento:
node dist/index.js "postgresql://usuario:password@host:5432/basededatos"Integración con el proxy GEAI (GLOB.AI OS)
En el archivo de configuración de MCP servers del proxy:
{
"mcpServers": {
"PostgresReportes": {
"command": "node",
"args": [
"C:/ruta/a/postgres-mcp-server/dist/index.js",
"postgresql://usuario:password@localhost:5432/basededatos"
]
}
}
}La tool queda registrada como PostgresReportes__query (nombre del server + __query).
Nota de mantenimiento
Este componente ya no recibe actualizaciones de su autor original. Funciona para uso de solo lectura acotado. Si a futuro se necesita un conector PostgreSQL MCP con mantenimiento activo, evaluar alternativas mantenidas por la comunidad o vendors.
Licencia
MIT — ver LICENSE. Se conserva la licencia y el copyright del proyecto original de Anthropic, PBC.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-qualityAmaintenanceA Model Context Protocol server that provides read-only access to PostgreSQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.Last updated126,03689,188MIT
- Alicense-qualityCmaintenanceA read-only PostgreSQL MCP server that enables AI agents to perform schema introspection and execute SELECT-only queries. It supports secure database connections through SSL and SSH tunnels while offering a structure-only mode to restrict query access.Last updated170MIT
- Alicense-qualityCmaintenanceRead-only PostgreSQL MCP server that enables running SELECT queries, listing tables and schemas, and describing columns, with built-in protection against writes and malicious SQL attacks.Last updated484MIT
- Alicense-qualityCmaintenanceRead-only MCP server for SQL databases (SQLite/PostgreSQL) that enables listing tables, describing schemas, and executing SELECT queries with safety guardrails.Last updatedMIT
Related MCP Connectors
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
MCP server for managing Prisma Postgres.
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/negrip/postgres-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server