# Postgres Connector

> Postgres Connector is an MCP server for databases. MCP server for querying PostgreSQL databases. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **MCP Registry name:** io.github.martymarkenson/postgres-connector
- **Categories:** databases
- **Listing updated:** 2026-11-13

## About

MCP server for querying PostgreSQL databases

## Install

### Claude Code (Terminal)

```sh
claude mcp add postgres-connector -- npx -y postgres-connector
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "postgres-connector": {
      "command": "npx",
      "args": [
        "-y",
        "postgres-connector"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "postgres-connector": {
      "command": "npx",
      "args": [
        "-y",
        "postgres-connector"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "postgres-connector": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "postgres-connector"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "postgres-connector": {
      "command": "npx",
      "args": [
        "-y",
        "postgres-connector"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "postgres-connector": {
      "command": "npx",
      "args": [
        "-y",
        "postgres-connector"
      ]
    }
  }
}
```

## FAQ

### How do I add Postgres Connector to Claude Code?

Run this command in your terminal: claude mcp add postgres-connector -- npx -y postgres-connector

### What are the best alternatives to Postgres Connector?

The closest alternatives to Postgres Connector are Midplane, PlatypusDB, Lorebase, Sovaria and model2data studio.

## Alternatives

- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [PlatypusDB](https://ai-powered.com/mcp/platypusdb): PlatypusDB is an open-source MCP server for databases.
- [Lorebase](https://ai-powered.com/mcp/lorebase): Lorebase is an open-source MCP server for knowledge and memory.
- [Sovaria](https://ai-powered.com/mcp/sovaria): Sovaria is a freemium MCP server for databases.
- [model2data studio](https://ai-powered.com/mcp/model2data-studio): model2data studio is a freemium MCP server for databases.
- [semlayer](https://ai-powered.com/mcp/semlayer): semlayer is a free MCP server for databases.
- [bricksentry](https://ai-powered.com/mcp/bricksentry): bricksentry is an open-source MCP server for databases.
- [MCP Toolbox for Databases](https://ai-powered.com/mcp/mcp-toolbox-for-databases-2): MCP Toolbox for Databases is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/postgres-connector
