MCP PostgreSQL 서버
MCP 도구를 통해 PostgreSQL 데이터베이스 작업을 제공하는 MCP(Model Context Protocol) 서버입니다.
특징
사용자 및 게시자 엔터티에 대한 CRUD 작업
Prisma를 사용한 유형 안전 데이터베이스 작업
MCP 호환 도구 인터페이스
유형 안전을 위해 TypeScript로 구축됨
설치
저장소를 복제합니다
종속성 설치:
지엑스피1
PostgreSQL 데이터베이스 설정:
데이터베이스 마이그레이션 실행:
프로젝트를 빌드하세요:
용법
서버를 실행합니다:
사용 가능한 MCP 도구
getData : PostgreSQL에서 사용자 데이터를 검색합니다.
{ "tableName": "user" }addUserData : 데이터베이스에 새 사용자를 추가합니다.
{ "email": "user@example.com", "name": "John Doe", "age": 30 }deleteUserData : ID, 이메일 또는 이름으로 사용자를 삭제합니다.
{ "id": "clxyz...", "email": "user@example.com", "name": "John Doe" }updateUserData : 사용자 정보 업데이트
{ "id": "clxyz...", "email": "new@example.com", "name": "New Name" }
데이터베이스 스키마
서버는 다음의 Prisma 스키마를 사용합니다.
개발
시청 모드:
종속성
@modelcontextprotocol/sdk - MCP 서버 SDK
Prisma - 유형 안전 데이터베이스 클라이언트
TypeScript - 유형 검사
특허
MIT
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
MCP 도구를 통해 User 및 Post 엔터티에 대한 PostgreSQL 데이터베이스 작업(생성, 읽기, 업데이트, 삭제)을 수행할 수 있는 모델 컨텍스트 프로토콜 서버입니다.
Related MCP Servers
- -security-license-qualityA Model Context Protocol server providing both read and write access to PostgreSQL databases, enabling LLMs to query data, modify records, and manage database schemas.Last updated -6088
- Asecurity-licenseAqualityA Model Context Protocol server that enables powerful PostgreSQL database management capabilities including analysis, schema management, data migration, and monitoring through natural language interactions.Last updated -181,751126AGPL 3.0
- -security-license-qualityA Model Context Protocol server that enables interaction with PostgreSQL databases to list tables, retrieve schemas, and execute read-only SQL queries.Last updated -22MIT License
- Asecurity-licenseAqualityA Model Context Protocol server that enables interaction with PostgreSQL databases for analyzing setups, debugging issues, managing schemas, migrating data, and monitoring performance.Last updated -111MIT License