That's actually Marisa, with Meiling's hat, being Metal Gear Marisa... At least her clothes says so.
After infiltrating Scarlet Devil Mansion, she meets up with Marisa, entrusts her as a guide, and arrives at the Great Library.She speaks to the library's administrator, Patchouli Knowledge, and upon receiving permission, acquires the target book.