call518/MCP-PostgreSQL-Ops
AIにPostgreSQLの読み取り専用監視を提供
解決する課題
ない場合、AIはPostgreSQLの遅いクエリやロック、膨張などを直接確認できない。
- 読み取り専用で任意SQLなし
- 遅いクエリ・ロック・膨張
- PG 12–18対応、拡張不要
対応クライアント
- claude-desktop
- cli
インストール
docker compose up -d docker compose ps --all # wait for mcp-server to be healthy and init to exit 0 docker compose -f docker-compose.custom-db.yml up -d uvx --python 3.12 mcp-postgresql-ops --type stdio 設定(コピー可)
{
"mcpServers": {
"mcp-postgresql-ops": {
"command": "uv",
"args": [
"run",
"python",
"-m",
"mcp_postgresql_ops"
],
"env": {
"POSTGRES_HOST": "127.0.0.1",
"POSTGRES_PORT": "15432",
"POSTGRES_USER": "postgres",
"POSTGRES_PASSWORD": "changeme",
"POSTGRES_DB": "ecommerce"
}
}
}
} {
"mcpServers": {
"Postgresql-A": {
"command": "uvx",
"args": [
"--python",
"3.12",
"mcp-postgresql-ops"
],
"env": {
"POSTGRES_HOST": "a.foo.com",
"POSTGRES_PORT": "5432",
"POSTGRES_USER": "postgres",
"POSTGRES_PASSWORD": "postgres",
"POSTGRES_DB": "postgres"
}
},
"Postgresql-B": {
"command": "uvx",
"args": [
"--python",
"3.12",
"mcp-postgresql-ops"
],
"env": {
"POSTGRES_HOST": "b.bar.com",
"POSTGRES_PORT": "5432",
"POSTGRES_USER": "postgres",
"POSTGRES_PASSWORD": "postgres",
"POSTGRES_DB": "postgres"
}
}
}
} {
"mcpServers": {
"mcp-postgresql-ops": {
"type": "streamable-http",
"url": "http://your-server:8000/mcp",
"headers": {
"Authorization": "Bearer replace-with-a-strong-random-secret"
}
}
}
} セキュリティ表示
- API キー必須: 未記載
- ローカル実行: はい
- ネットワーク接続: はい
- root 権限: いいえ
メンテナンス状況
| 最終コミット | 2026-12-05(0d) |
|---|---|
| スター | 165 |
| 未対応 issue | 0 |
| ライセンス | MIT |
| アーカイブ済み | いいえ |
| データ取得日時 | 2026-12-05 |
原文抜粋
以下はリポジトリ README の原文です(改変なし)。上の要約と照合できます。
MCP-PostgreSQL-Ops lets Claude, OpenWebUI, and other MCP clients inspect a PostgreSQL server through natural-language questions.