A Massachusetts man accused of hitting a DEA agent with his car during an undercover drug operation appeared in court Friday.