Thank you for your question.
From the symptoms you have described the pain is coming from imflammation of first metatarsophalangeal joint. Such a localized pain associated with swelling is unlikely to be nerve
related pain. It may be related to intrinsic structure of foot causing metatarsalgia or remote trauma. You will also need blood tests for level of inflammatory markers
in the blood.
Please let me know if you have any questions.