A man has had four fingers and part of his thumb severed by a samurai sword during a fight at a caravan park in Brisbane's north.

The 45-year-old suffered the injury after allegedly being attacked by a 40-year-old during a dispute at the caravan park in Aspley on Wednesday night.

The man underwent emergency surgery at a Brisbane hospital, while the alleged attacker would front Pine Rivers Magistrates Court on Thursday after being charged with grievous bodily harm.

AAP