MONGO_URL
should be the variable you want
https://docs.railway.app/databases/mongodbif your package expects a different syntax, then you could create a meta URL variable with a specific syntax using templated variables
https://docs.railway.app/develop/variables#templated-variables