pREST

io.github.prestPublished by GitHub account prestv0.1.3Updated Oct 24, 2026

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

VerifiedSTDIODesktop onlyDatabasesDeveloper Tools

Overview

AI-generated overview

A stdio bridge that lets MCP clients reach a running pREST instance's HTTP MCP endpoint for PostgreSQL APIs.

What you can do
This adapter is a small transport bridge: it speaks newline-delimited JSON-RPC over stdio to the MCP client and forwards requests by HTTP POST to a pREST instance's /_mcp endpoint. It does not introspect schemas, generate SQL, or implement MCP tools itself; those capabilities live in pREST. Logs are written only to stderr.
When to use it
Use it when your MCP client or AI IDE only supports stdio servers but you want to work against a pREST instance that already exposes an HTTP MCP endpoint. It is not useful on its own without a running pREST deployment.
Requirements
A running pREST instance with the /_mcp route available, plus the required environment variable PREST_MCP_URL pointing at that endpoint. Optional: PREST_MCP_TOKEN when pREST auth is enabled, and PREST_MCP_TIMEOUT_MS (default 30000). Runs as a local process; can be installed from source with Go 1.26+ or pulled as an OCI image.
Before you install
The adapter can reach whatever the pREST endpoint permits, so write operations depend on the database user behind pREST; a read-only PostgreSQL user is recommended unless write access is explicitly needed. Do not expose unauthenticated MCP endpoints publicly, and prefer local or private-network endpoints. PREST_MCP_TOKEN is a bearer credential (a JWT when pREST auth is enabled) and should be kept secret.

Installation

In SourceWeft

  1. Open pREST in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

pREST MCP Adapter

Official stdio adapter for pREST’s HTTP MCP endpoint.

This adapter lets MCP clients that require stdio connect to a running pREST instance exposing an HTTP MCP endpoint at /_mcp.

text
MCP client / AI IDE        ↓ stdio (NDJSON JSON-RPC)prest-mcp        ↓ HTTP POSThttp://localhost:3000/_mcp        ↓pREST

The adapter is a tiny transport bridge. It does not introspect schemas, generate SQL, or implement MCP tools. Those live in pREST.

Requirements

  • A running pREST instance with the /_mcp route available
  • Go 1.26+ (to build from source)

Environment variables

VariableRequiredDefaultDescription
PREST_MCP_URLyes—URL of the pREST HTTP MCP endpoint, e.g. http://localhost:3000/_mcp
PREST_MCP_TOKENno—Bearer token when pREST auth is enabled
PREST_MCP_TIMEOUT_MSno30000HTTP timeout in milliseconds

Install

From source

bash
go install github.com/prest/prest-mcp-adapter/cmd/prest-mcp@latest

Docker / OCI

bash
docker pull ghcr.io/prest/prest-mcp-adapter:0.1.3

Local usage

bash
PREST_MCP_URL=http://localhost:3000/_mcp prest-mcp

With token

bash
PREST_MCP_URL=https://api.example.com/_mcp \PREST_MCP_TOKEN=secret \prest-mcp

Docker usage

bash
docker run --rm -i \  -e PREST_MCP_URL=http://host.docker.internal:3000/_mcp \  ghcr.io/prest/prest-mcp-adapter:0.1.3

MCP client configuration

Cursor

Add to your MCP settings (e.g. .cursor/mcp.json):

json
{  "mcpServers": {    "prest": {      "command": "prest-mcp",      "env": {        "PREST_MCP_URL": "http://localhost:3000/_mcp"      }    }  }}

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "prest": {      "command": "prest-mcp",      "env": {        "PREST_MCP_URL": "http://localhost:3000/_mcp"      }    }  }}

Generic MCP client

Any client that can launch a stdio MCP server:

bash
PREST_MCP_URL=http://localhost:3000/_mcp prest-mcp

Protocol messages are newline-delimited JSON-RPC on stdin/stdout. Logs go only to stderr.

Security recommendation

Use a read-only PostgreSQL user for AI/MCP workflows unless write access is explicitly required.

Do not expose unauthenticated MCP endpoints publicly.

Prefer local or private-network pREST MCP endpoints.

When pREST auth is enabled, set PREST_MCP_TOKEN to a valid JWT.

Development

bash
make test       # go test -race ./... and overall coverage >= 80%make coverage   # coverage gate onlymake vetmake build      # writes bin/prest-mcp

License

MIT — see LICENSE.

Source: README.md at commit f35ab01

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.3LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts