The Hammers have been given permission to discuss personal terms with the 27-year-old.
“Boro have accepted an undisclosed bid from Premier League club West Ham for Gary O’Neil,” a statement read.
O’Neil joined Middlesbrough from Portsmouth for £5million in 2007.