Search nucleotide query sequences against an uploaded nucleotide sample set using NCBI BLAST+, then align the best matching regions with MAFFT. See an example output here.
Implemented tools and sources
blastn and makeblastdb:
blastn: 2.17.0+