PostgreSQL MCP Server
stdiodatabase#postgresql#database#sql
PostgreSQL 데이터베이스에 안전하게 접근하여 쿼리를 실행하는 MCP 서버입니다.
생성된 MCP 설정
아래 JSON을 Claude Desktop이나 Cursor의 설정 파일에 붙여넣으세요.
claude_desktop_config.json
{
"mcpServers": {
"postgresql-mcp-server": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-postgres",
"postgresql://localhost/mydb"
]
}
}
}필요한 환경 변수
POSTGRES_CONNECTION_STRING=postgresql://user:password@localhost:5432/mydb