Your average Auto Zone or whatever won't carry parts like that. I tried looking for a part number from Toyota for the alternator wiring, but I think that connector is part of the engine wire harness, which is not something you want to replace as a whole, would take way too long and would be unnecessary.
I think your best bet will be to go to a local salvage yard or pick and pull and clip a undamaged harness off (cut off plenty of wire!). Then cut off your old one (leave plenty of wire!) and solder the new connector on instead of your current broken one.
If you are new to soldering, this is how you solder automotive wire:
https://www.youtube.com/watch?v=Q9G9gaokqvM
I've used this technique and never have a wire fail on me. I actually use silver solder since it has a higher conductivity... but that's because I use it mostly for PC repair, not cars. It's more expensive anyway.