MCP PostgreSQL Server
MCP PostgreSQLサーバー
-
MCP ツールを通じて PostgreSQL データベース操作を提供するモデル コンテキスト プロトコル (MCP) サーバー。
特徴
User および Post エンティティの CRUD 操作
Prisma を使用した型安全なデータベース操作
MCP互換ツールインターフェース
型安全性のためにTypeScriptで構築
Related MCP server: pg-mcp
インストール
リポジトリをクローンする
依存関係をインストールします:
git clone https://github.com/a21071/mcp-postgres.git
cd mcp-postgres
npm installPostgreSQL データベースをセットアップします。
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 - 型チェック
ライセンス
マサチューセッツ工科大学
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
- 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.
Related MCP Connectors
MCP server for managing Prisma Postgres.
MCP server for interacting with the Supabase platform
A basic MCP server to operate on the Postman API.
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