2013 Volkswagen CC - Code

check engine light came on and when i put the code reader on it it throws the cod P2187

The P2187 OBD-II fault code means the vehicle’s on-board computer has detected a lean fuel mixture at an idle in either Bank 1 or Bank 2 (the side of the engine with the corresponding number on the cylinder, if applicable). A lean fuel mixture means there is an excess of air and a shortage of fuel.

To follow up, too much air and not enough fuel could be caused by a vacuum leak or an injector problem or there might be a bad sensor. An actual mechanic with hands on the vehicle can diagnose it and tell you what needs to be done.