Railway is a deployment platform that offers managed PostgreSQL (and MySQL). QueryBear connects over the standard wire protocol, giving your AI clients safe, read-only access through QueryBear’s security gateway.Documentation Index
Fetch the complete documentation index at: https://docs.querybear.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your Railway connection details
- Open your project in the Railway dashboard.
- Click the Postgres service → Variables (or Connect).
- Use the public connection variables — Railway exposes a TCP proxy host and port for external access:
PGHOST/ proxy host (e.g.containers-us-west-xxx.railway.app)PGPORT(the proxy port, not5432)PGDATABASE,PGUSER,PGPASSWORD
Create a read-only role
Use the PostgreSQL read-only role SQL viapsql or Railway’s query interface.
Add the connection to QueryBear
In the QueryBear dashboard → Connections → New connection → PostgreSQL. Use the public proxy host and port, yourquerybear role, and SSL mode require.
Railway-specific notes
- Use the public proxy host/port, not the internal hostname.
- The proxy port is not 5432 — Railway assigns a random external port. Copy it exactly.
- MySQL on Railway works the same way — choose MySQL in QueryBear and use the public proxy details.