Not really a Node-RED question - I used mapserver so had to create the required tile index files from the tiles I had using gdaltindex Tile Indexes — MapServer 7.6.2 documentation - that creates the .shp and dbx files used by the map file etc. Where you get you georeferenced map tiles (usually large geotiffs) from is down to you.
There are probably other tiling map servers now available but I haven't used them so can't comment.