Install pREST MCP Adapter
Install prest-mcp, the official stdio adapter for pRESTβs HTTP MCP endpoint. Use it when your MCP client expects a stdio process instead of calling /_mcp over HTTP directly.
Repository: prest/prest-mcp-adapter Β· Homebrew: prest/homebrew-tap
Requires pREST v2.1.0+ with /_mcp available. The adapter is a transport bridge only β tools and SQL live in pREST (MCP Overview).
Homebrew (recommended on macOS)
brew install prest/tap/prest-mcpOr tap first:
brew tap prest/tap
brew install prest-mcpStep-by-step: Install adapter with Homebrew. For prestd itself, see Start with Homebrew.
Go
go install github.com/prest/prest-mcp-adapter/cmd/prest-mcp@latestEnsure $(go env GOPATH)/bin is on your PATH.
Docker / OCI
Run against pREST on the host (Docker Desktop):
MCP Registry
Published name: io.github.prest/prest
Use this identifier when installing from the MCP Registry or clients that resolve registry packages.
Environment variables
PREST_MCP_URL
yes
β
URL of the pREST HTTP MCP endpoint, e.g. http://localhost:3000/_mcp
PREST_MCP_TOKEN
no
β
Bearer token when pREST auth is enabled
PREST_MCP_TIMEOUT_MS
no
30000
HTTP timeout in milliseconds
Local usage
With a JWT (when auth is enabled):
Protocol messages are newline-delimited JSON-RPC on stdin/stdout. Logs go only to stderr.
MCP client configuration
Minimal stdio server entry (Cursor, Claude Desktop, and similar clients):
VS Code / Copilot uses "servers" and "type": "stdio" instead β see Use with VS Code and Copilot.
Add PREST_MCP_TOKEN when auth is enabled. If prest-mcp is not on PATH, set "command" to the absolute binary path (Homebrew: typically /opt/homebrew/bin/prest-mcp on Apple Silicon, /usr/local/bin/prest-mcp on Intel Mac).
Client walkthroughs:
Troubleshooting
Adapter exits immediately mentioning PREST_MCP_URL
Environment variable not set
Client shows server disconnected / failed to start
prest-mcp not on PATH, or wrong absolute path in config
401 / 403 from tools
Auth enabled but PREST_MCP_TOKEN missing or invalid
Connection refused / timeout
pREST not running, wrong host/port, or Docker networking (host.docker.internal)
Empty tool list
ACL hides all tables β see Permissions and MCP over HTTP
Next steps
Protocol reference: MCP over HTTP
Related documentation
Last updated