What are the small crabs found inside oysters? Are they harmful to oysters? May humans eat them?

These are "pea" crabs. They live, often in pairs, inside the oyster shell, eating food collected on mucous strands in the oyster. Because they do cause damage to oyster mantle and gills, the crabs are considered parasites. Pea crabs are not harmful to man.