Proxy Port
The proxy port is where your application connects to Mori. It’s assigned in this priority order:--portflag — explicit port onmori start --port 5433- Persisted config — port from a previous session (stored in
.mori/) - Auto-assign — starting from
9002, finds the next available port
Engine Default Ports
These are the default ports for each database engine. When connecting your app through Mori, use the proxy port instead.| Engine | Default Prod Port |
|---|---|
| PostgreSQL | 5432 |
| CockroachDB | 26257 |
| MySQL / MariaDB | 3306 |
| MS SQL Server | 1433 |
| Redis | 6379 |
| SQLite | N/A (embedded) |
| DuckDB | N/A (embedded) |
| Firestore | N/A (gRPC) |
MCP Server Port
The MCP server runs on a separate port from the proxy, default9000.
http://127.0.0.1:9000/mcp.
Shadow Container Ports
Shadow database containers use dynamically allocated ports. The OS assigns an available port when the container starts. You don’t need to manage these — Mori handles port allocation and stores the assigned port in.mori/ config.
Shadow ports are internal to Mori. Your application never connects to the shadow directly — it connects to the proxy, which routes to shadow as needed.
Multi-Connection Port Allocation
If you have multiple connections configured (viamori ls), each connection gets its own proxy port. Auto-assignment increments from 9002 for each active connection.
