MCP PostgreSQL Server
MCP PostgreSQL 서버
MCP 도구를 통해 PostgreSQL 데이터베이스 작업을 제공하는 MCP(Model Context Protocol) 서버입니다.
특징
사용자 및 게시자 엔터티에 대한 CRUD 작업
Prisma를 사용한 유형 안전 데이터베이스 작업
MCP 호환 도구 인터페이스
유형 안전을 위해 TypeScript로 구축됨
Related MCP server: pg-mcp
설치
저장소를 복제합니다
종속성 설치:
지엑스피1
PostgreSQL 데이터베이스 설정:
docker-compose up -d데이터베이스 마이그레이션 실행:
npx prisma migrate dev프로젝트를 빌드하세요:
npm run build용법
서버를 실행합니다:
npm start사용 가능한 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 스키마를 사용합니다.
model User {
id String @id @default(cuid())
email String @unique
name String?
age Int?
createdAt DateTime @default(now())
posts Post[]
}
개발
시청 모드:
npm run watch종속성
@modelcontextprotocol/sdk - MCP 서버 SDK
Prisma - 유형 안전 데이터베이스 클라이언트
TypeScript - 유형 검사
특허
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
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 Connectors
- SupabaseOAuthcom.supabase
MCP server for interacting with the Supabase platform
A Model Context Protocol (MCP) server for Selise Blocks Cloud integration
A basic MCP server to operate on the Postman API.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server implementation that provides a simple interface to interact with PostgreSQL databases, enabling SQL queries, database operations, and schema management through MCP.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server for PostgreSQL that enables database operations like querying, schema inspection, performance analysis, and administration through a JSON-RPC 2.0 interface.MIT
- FlicenseNot gradedqualityDmaintenanceA standardized Model Context Protocol server for interacting with PostgreSQL databases, enabling full CRUD operations, schema management, and database introspection.1-
- FlicenseNot gradedqualityBmaintenanceMCP server for managing users in PostgreSQL, enabling CRUD operations and search via natural language commands.-
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/a21071/mcp-postgres'
If you have feedback or need assistance with the MCP directory API, please join our Discord server