# PostgreSQL MCP Server
> Package: `@modelcontextprotocol/server-postgres`
> Tools Exposed: query, list_tables, describe_table
> URL: https://agentnow.in/mcp/postgres-mcp-server

## Description
Read schema schemas, execute read-only queries, and inspect Postgres tables directly in Cursor and Claude.

## Installation CLI
```bash
npx -y @modelcontextprotocol/server-postgres postgresql://user:pass@localhost:5432/db
```

## Claude Desktop Configuration (claude_desktop_config.json)
```json
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://user:pass@localhost:5432/db"
      ]
    }
  }
}
```

## Cursor Configuration (.cursor/mcp.json)
```json
{
  "mcpServers": {
    "postgres": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-postgres",
        "postgresql://user:pass@localhost:5432/db"
      ]
    }
  }
}
```
