postgres-schema-mcp
Provides an AI agent with read-only PostgreSQL access, enabling schema browsing, foreign-key exploration, column search across tables, capped SELECT queries, and offline data dictionary export while rejecting write operations.
データベース
npm 0 プラットフォーム
0 機能
インストール
npx -y postgres-schema-mcp
上記の設定をMCPクライアントの設定ファイル(Claude Desktop は claude_desktop_config.json)に追記し、クライアントを再起動してください。
{
"mcpServers": {
"postgres-schema-mcp": {
"command": "npx",
"args": [
"-y",
"postgres-schema-mcp"
],
"env": {
"DATABASE_URL": "<DATABASE_URL>",
"PGSM_MAX_POOL": "<PGSM_MAX_POOL>",
"PGSM_MAX_ROWS": "<PGSM_MAX_ROWS>",
"PGSM_HTTP_HOST": "<PGSM_HTTP_HOST>",
"PGSM_HTTP_PORT": "<PGSM_HTTP_PORT>",
"PGSM_MAX_BYTES": "<PGSM_MAX_BYTES>",
"PGSM_TOKENS_FILE": "<PGSM_TOKENS_FILE>",
"PGSM_REDACT_PATTERN": "<PGSM_REDACT_PATTERN>"
}
}
}
}上記の設定をMCPクライアントの設定ファイル(Claude Desktop は claude_desktop_config.json)に追記し、クライアントを再起動してください。
出典:公開されているMCPサーバーカタログ。当サイトは独立した第三者ディレクトリであり、各MCPサーバーの提供元との提携や推奨関係はありません。