Here, we present a protocol for high-resolution optical detection of chemical information around implanted medical devices with X-ray excited luminescence chemical imaging (XELCI). This novel imaging technique is developed in our lab which enables studying implant-associated infection biochemistry.