Codeabien Nest MCP PostgreSQL
Provides tools for interacting with a PostgreSQL database, enabling AI agents to query and manage data in a PostgreSQL instance.
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., "@Codeabien Nest MCP PostgreSQLlist all tables in the database"
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.
Codeabien Nest.js MCP para PostgreSQL DB
Este es un proyecto de demostración que muestra cómo usar un servidor MCP (Model-driven Co-programming) con una base de datos PostgreSQL en una aplicación NestJS.
MIRA LA IMPLEMENTACIÓN COMPLETA EN NUESTRO CANAL DE YOUTUBE Codea Bien
Prerrequisitos
Asegúrate de tener instaladas las siguientes herramientas en tu sistema:
Related MCP server: Cloudflare Remote PostgreSQL MCP Server
Empezando
Sigue estos pasos para poner en marcha el proyecto:
1. Clona el repositorio
git clone <URL_DEL_REPOSITORIO>
cd codeabien-nest-mcp-postgresdb2. Instala las dependencias
Usa pnpm para instalar las dependencias del proyecto:
pnpm install3. Configuración de la Base de Datos
Este proyecto utiliza Docker para ejecutar una base de datos PostgreSQL.
Ejecutar con Docker Compose
El archivo docker-compose.yml incluido configurará y ejecutará el contenedor de la base de datos.
docker compose up -dEsto iniciará un servidor PostgreSQL en el puerto 5436.
4. Configuración del Servidor MCP
Para interactuar con la base de datos usando las herramientas de IA en Cursor, necesitas configurar un servidor MCP.
Añade la siguiente configuración a tu archivo .vscode/settings.json en la raíz de tu proyecto:
{
"mcpServers": {
"postgres": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"mcp/postgres",
"postgresql://postgres:P@5tgr3s_Db!2025@host.docker.internal:5436/app_sales_db"
]
}
}
}Puedes encontrar la imagen de Docker para el servidor MCP de Postgres en Docker Hub.
5. Ejecutar la aplicación
Una vez que la base de datos esté en funcionamiento, puedes iniciar la aplicación NestJS en modo de desarrollo:
pnpm run start:devLa aplicación estará disponible en http://localhost:3000.
Scripts Disponibles
pnpm run build: Compila la aplicación para producción.pnpm run format: Formatea el código con Prettier.pnpm run start: Inicia la aplicación en modo producción.pnpm run start:dev: Inicia la aplicación en modo de desarrollo con seguimiento de cambios.pnpm run lint: Analiza el código en busca de errores de estilo.pnpm run test: Ejecuta las pruebas unitarias.
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
- Alicense-qualityFmaintenanceEnables interaction with PostgreSQL databases through MCP, supporting queries, DDL, DML, and schema inspection.Last updated6MIT
- Alicense-qualityBmaintenanceEnables natural language interaction with PostgreSQL databases through MCP tools, with GitHub OAuth authentication and role-based access control.Last updatedMIT
- Flicense-qualityDmaintenanceEnables chatting with PostgreSQL databases via MCP, with GitHub OAuth authentication and role-based access for read/write operations.Last updated2
- Flicense-qualityCmaintenanceExposes database queries (Users, Products, Orders) from a NestJS backend to AI agents via MCP, enabling real-time database interactions in chat sessions.Last updated6
Related MCP Connectors
MCP server for managing Prisma Postgres.
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
GibsonAI MCP server: manage your databases with natural language
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/CodeaBien/codeabien-nest-mcp-postgresdb'
If you have feedback or need assistance with the MCP directory API, please join our Discord server