I haven't actually had anyone try to craft a magic item in a campaign yet, but one suggestion I found online is to look for spells that require material components and have effects at least thematically similar to whatever the magic item does.
Unfortunately, the magic weapon spell doesn't...