[verb (dictionary form)] + 必要がある [noun] + の + 必要がある
必要がある means "need to", "it is necessary to": there is a need for the action. The verb before it is in the dictionary form, and ある changes for polite speech and for the past.
"There's no need to" takes は instead of が: 必要はない, polite ひつよう必要はありません. It tells someone they can skip something, and it is common in speech as well as writing.
A noun for an action, such as しゅじゅつ手術 or かくにん確認, takes の before 必要がある. For a thing you need, the usual sentence is [noun] + がひつよう必要だ.