You can eat the coconuts and they'll restore like a bunch of thirst and a little hunger, just put them on your hotbar and left click. I'm not sure if they have more uses though.
They produce seeds after eating them that you can replant to grow more trees.