mcp-postgresql
A production-oriented MCP server for PostgreSQL that exposes database operations like query execution, schema introspection, and table metadata to MCP clients such as Claude Desktop and VS Code.
データベース
npm 0 プラットフォーム
0 機能
インストール
npx -y mcp-postgresql
上記の設定をMCPクライアントの設定ファイル(Claude Desktop は claude_desktop_config.json)に追記し、クライアントを再起動してください。
{
"mcpServers": {
"mcp-postgresql": {
"command": "npx",
"args": [
"-y",
"mcp-postgresql"
],
"env": {
"PGSSL": "<PGSSL>",
"PGHOST": "<PGHOST>",
"PGPORT": "<PGPORT>",
"PGUSER": "<PGUSER>",
"PGDATABASE": "<PGDATABASE>",
"PGPASSWORD": "<PGPASSWORD>",
"PGPOOL_MAX": "<PGPOOL_MAX>",
"POSTGRES_DB": "<POSTGRES_DB>"
}
}
}
}上記の設定をMCPクライアントの設定ファイル(Claude Desktop は claude_desktop_config.json)に追記し、クライアントを再起動してください。
出典:公開されているMCPサーバーカタログ。当サイトは独立した第三者ディレクトリであり、各MCPサーバーの提供元との提携や推奨関係はありません。