It's kind of confusing since the LOC serves Congress, but the Librarian of Congress is a President-appointed and Senate-confirmed position. They're supposed to serve for 10-year terms (she was appointed in September 2016) though, and my understanding is it's a open question whether the President can legally fire a LOC before their term is up.