Here is a list of fees you should typically expect to pay at closing; there may be more or fewer:
Credit report
-- done by an independent credit association, to establish your credit rating
Appraisal-- done by an independent appraiser, to establish the value of the house
Inspection -- done by an independent home inspector, to provide information about the integrity of the house (typically not required by the lender)
Title -- to disclose whether there are any liens and encumbrances
Recording fees -- to record the transfer of property with the appropriate government bodies
Courier fees -- to cover the cost of transporting documents between the escrow service and various other entities
Loan origination fee -- this is a fee imposed by a lender to cover certain processing expenses in connection with making a real estate loan
Discount points -- prepaid finance charges tied to interest rate (the higher the interest rate, the lower the discount points)