{
  "markdown": "# pREST MCP Adapter\n\nOfficial stdio adapter for [pREST](https://github.com/prest/prest)’s HTTP MCP endpoint.\n\nThis adapter lets MCP clients that require stdio connect to a running pREST instance exposing an HTTP MCP endpoint at `/_mcp`.\n\n```text\nMCP client / AI IDE\n        ↓ stdio (NDJSON JSON-RPC)\nprest-mcp\n        ↓ HTTP POST\nhttp://localhost:3000/_mcp\n        ↓\npREST\n```\n\nThe adapter is a **tiny transport bridge**. It does not introspect schemas, generate SQL, or implement MCP tools. Those live in pREST.\n\n## Requirements\n\n- A running pREST instance with the `/_mcp` route available\n- Go 1.26+ (to build from source)\n\n## Environment variables\n\n| Variable | Required | Default | Description |\n|----------|----------|---------|-------------|\n| `PREST_MCP_URL` | yes | — | URL of the pREST HTTP MCP endpoint, e.g. `http://localhost:3000/_mcp` |\n| `PREST_MCP_TOKEN` | no | — | Bearer token when pREST auth is enabled |\n| `PREST_MCP_TIMEOUT_MS` | no | `30000` | HTTP timeout in milliseconds |\n\n## Install\n\n### From source\n\n```bash\ngo install github.com/prest/prest-mcp-adapter/cmd/prest-mcp@latest\n```\n\n### Docker / OCI\n\n```bash\ndocker pull ghcr.io/prest/prest-mcp-adapter:0.1.3\n```\n\n## Local usage\n\n```bash\nPREST_MCP_URL=http://localhost:3000/_mcp prest-mcp\n```\n\n### With token\n\n```bash\nPREST_MCP_URL=https://api.example.com/_mcp \\\nPREST_MCP_TOKEN=secret \\\nprest-mcp\n```\n\n### Docker usage\n\n```bash\ndocker run --rm -i \\\n  -e PREST_MCP_URL=http://host.docker.internal:3000/_mcp \\\n  ghcr.io/prest/prest-mcp-adapter:0.1.3\n```\n\n## MCP client configuration\n\n### Cursor\n\nAdd to your MCP settings (e.g. `.cursor/mcp.json`):\n\n```json\n{\n  \"mcpServers\": {\n    \"prest\": {\n      \"command\": \"prest-mcp\",\n      \"env\": {\n        \"PREST_MCP_URL\": \"http://localhost:3000/_mcp\"\n      }\n    }\n  }\n}\n```\n\n### Claude Desktop\n\nAdd to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"prest\": {\n      \"command\": \"prest-mcp\",\n      \"env\": {\n        \"PREST_MCP_URL\": \"http://localhost:3000/_mcp\"\n      }\n    }\n  }\n}\n```\n\n### Generic MCP client\n\nAny client that can launch a stdio MCP server:\n\n```bash\nPREST_MCP_URL=http://localhost:3000/_mcp prest-mcp\n```\n\nProtocol messages are newline-delimited JSON-RPC on stdin/stdout. Logs go only to stderr.\n\n## Security recommendation\n\nUse a read-only PostgreSQL user for AI/MCP workflows unless write access is explicitly required.\n\nDo not expose unauthenticated MCP endpoints publicly.\n\nPrefer local or private-network pREST MCP endpoints.\n\nWhen pREST auth is enabled, set `PREST_MCP_TOKEN` to a valid JWT.\n\n## Development\n\n```bash\nmake test       # go test -race ./... and overall coverage >= 80%\nmake coverage   # coverage gate only\nmake vet\nmake build      # writes bin/prest-mcp\n```\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n",
  "bytes": 2764,
  "sha": "16dd9bcb71dc4312b3461755c1a18c0d498d5786a58d273cbb64e8bb357beae7",
  "repo_slug": "prest/prest-mcp-adapter",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_prest_prest_23936b79/readme"
}