An optical connector 200 for an endoscope has a first holding member 310 which holds a first waveguide 311 therein, a second holding member 410 which holds a second waveguide 411 therein and replaceable replacement members 320,420 which intervenes between the first holding member 310 and the second holding member 410 so that replacement waveguides 321,421 intervenes between the waveguides 311,411 and is optically coupled to the waveguides 311,411. The optical connector 200 has attachment members 330,430 and a positioning mechanism 500 which positions the holding members 310,410 and the replacement members 320,420 relative to one another.