What protocol does iOS use to sync Notes to a server
You can host your own notes if you run an IMAP server. There are additional details in knowledge base article HT4191. A great IMAP server is Dovecot.