Kopi luwak, or civet coffee, is coffee that includes partially digested coffee cherries, eaten and defecated by the Asian palm civet (Paradoxurus hermaphroditus). Fermentation occurs as the cherries pass through a civet's intestines, and after being defecated with other fecal matter, they are collected. Kopi luwak is produced mainly on the Indonesian islands of Sumatra, Java, Bali, Sulawesi, and in East Timor. It is also widely gathered in the forest or produced in farms in the islands of the Philippines, where the product is called kape motit in the Cordillera region, kapé alamíd in Tagalog areas, kapé melô or kapé musang in Mindanao, and kahawa kubing in the Sulu Archipelago.
The coffee beans swollen then defecated by such animals is Najis. Any material made of Najis item is Najis and Haraam to consume.
As you know, when it comes to an animal that we as Muslims are not allowed to eat, its urine and faeces are najis.
If such an animal was to swallow something solid, like a coin, and then it comes out with the animal's waste, the only thing that we would need to do is wash it to make the coin tahir.
The problem with this coffee been is that although it is 'solid', but when it is in the digestive system of this animal, the Asian palm civet, there is a change in the structure and affect in the flavour of the coffee bean.
The coffee bean before being digested is different to after it has been defacated by the animal.
This is why some of our esteeemed Fuqaha, like Ayatullah al-Udhma Seyid al-Sistani consider it to be haram.
Please refer to the fatwa of your own Marja' Taqleed.
And Allah knows best.