メインコンテンツにスキップ

postgresの使用記録

官方文档

  • dockerモード
{
  "mcpServers": {
    "postgres": {
      "command": "docker",
      "args": [
        "run", 
        "-i", 
        "--rm", 
        "mcp/postgres", 
        "postgresql://host. ocker.internal:5432/mydb"]
    }
  }
}