Integrations
Provides database operations for PostgreSQL, enabling CRUD operations on User and Post entities with type-safe queries through the MCP interface
Utilizes Prisma for type-safe database operations, providing a structured interface to interact with the PostgreSQL database schema
MCP PostgreSQL Server
-
A Model Context Protocol (MCP) server that provides PostgreSQL database operations through MCP tools.
Features
- CRUD operations for User and Post entities
- Type-safe database operations using Prisma
- MCP-compatible tool interface
- Built with TypeScript for type safety
Installation
- Clone the repository
- Install dependencies:
Copy
- Set up PostgreSQL database:
Copy
- Run database migrations:
Copy
- Build the project:
Copy
Usage
Run the server:
Copy
Available MCP Tools
- getData: Retrieve user data from PostgreSQLCopy
- addUserData: Add new user to databaseCopy
- deleteUserData: Delete user by ID, email or nameCopy
- updateUserData: Update user informationCopy
Database Schema
The server uses the following Prisma schema:
Copy
Development
- Watch mode:
Copy
Dependencies
- @modelcontextprotocol/sdk - MCP server SDK
- Prisma - Type-safe database client
- TypeScript - Type checking
License
MIT
This server cannot be installed
A Model Context Protocol server that enables performing PostgreSQL database operations (create, read, update, delete) on User and Post entities through MCP tools.