Stdio MCP adapter bridging AI clients to pRESTโs HTTP /_mcp endpoint for PostgreSQL APIs.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
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.
The adapter is a tiny transport bridge. It does not introspect schemas, generate SQL, or implement MCP tools. Those live in pREST.
/_mcp route available| Variable | Required | Default | Description |
|---|---|---|---|
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 |
Add to your MCP settings (e.g. .cursor/mcp.json):
Add to claude_desktop_config.json:
Any client that can launch a stdio MCP server:
Protocol messages are newline-delimited JSON-RPC on stdin/stdout. Logs go only to stderr.
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.
MIT โ see LICENSE.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/prest)<a href="https://allmcps.com/mcp/prest"><img src="https://allmcps.com/api/badge/prest?style=directory" alt="PREST on AllMCPs" /></a>