# pREST

> pREST is an open-source MCP server. Stdio MCP adapter bridging AI clients to pREST’s HTTP /_mcp endpoint for PostgreSQL APIs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/prest/prest-mcp-adapter
- **MCP Registry name:** io.github.prest/prest
- **Listing updated:** 2026-11-13

## About

Stdio MCP adapter bridging AI clients to pREST’s HTTP /_mcp endpoint for PostgreSQL APIs.

## Install

### Claude Code (Terminal)

```sh
claude mcp add prest --env PREST_MCP_URL='<PREST_MCP_URL>' --env PREST_MCP_TOKEN='<PREST_MCP_TOKEN>' -- docker run -i --rm -e PREST_MCP_URL -e PREST_MCP_TOKEN ghcr.io/prest/prest-mcp-adapter:0.1.3
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "prest": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PREST_MCP_URL",
        "-e",
        "PREST_MCP_TOKEN",
        "ghcr.io/prest/prest-mcp-adapter:0.1.3"
      ],
      "env": {
        "PREST_MCP_URL": "<PREST_MCP_URL>",
        "PREST_MCP_TOKEN": "<PREST_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "prest": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PREST_MCP_URL",
        "-e",
        "PREST_MCP_TOKEN",
        "ghcr.io/prest/prest-mcp-adapter:0.1.3"
      ],
      "env": {
        "PREST_MCP_URL": "<PREST_MCP_URL>",
        "PREST_MCP_TOKEN": "<PREST_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "prest": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PREST_MCP_URL",
        "-e",
        "PREST_MCP_TOKEN",
        "ghcr.io/prest/prest-mcp-adapter:0.1.3"
      ],
      "env": {
        "PREST_MCP_URL": "<PREST_MCP_URL>",
        "PREST_MCP_TOKEN": "<PREST_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "prest": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PREST_MCP_URL",
        "-e",
        "PREST_MCP_TOKEN",
        "ghcr.io/prest/prest-mcp-adapter:0.1.3"
      ],
      "env": {
        "PREST_MCP_URL": "<PREST_MCP_URL>",
        "PREST_MCP_TOKEN": "<PREST_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "prest": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PREST_MCP_URL",
        "-e",
        "PREST_MCP_TOKEN",
        "ghcr.io/prest/prest-mcp-adapter:0.1.3"
      ],
      "env": {
        "PREST_MCP_URL": "<PREST_MCP_URL>",
        "PREST_MCP_TOKEN": "<PREST_MCP_TOKEN>"
      }
    }
  }
}
```

## FAQ

### Is pREST free?

Yes. pREST is open source, so you can use and self-host it for free.

### How do I add pREST to Claude Code?

Run this command in your terminal: claude mcp add prest --env PREST_MCP_URL='<PREST_MCP_URL>' --env PREST_MCP_TOKEN='<PREST_MCP_TOKEN>' -- docker run -i --rm -e PREST_MCP_URL -e PREST_MCP_TOKEN ghcr.io/prest/prest-mcp-adapter:0.1.3

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/prest
