"I am always happy to play at The Hurlingham Club and be close to UK tennis fans," the 33-year-old Spaniard said in a statement.
"It is a prestigious ground in one of the best settings in the UK, making it the perfect way to warm up for Wimbledon."
The tournament will also feature last year's Wimbledon runner-up Kevin Anderson, Nick Kyrgios, Marin Cilic, Lucas Pouille, Felix Auger-Aliassime and Marcos Baghdatis.
Nadal, a 18-times Grand Slam winner, will be bidding for his third title at Wimbledon, which kicks off on July 1, after winning the tournament in 2008 and 2010.
He reached the semi-finals last year where he was beaten by rival Novak Djokovic in a five-set thriller.
(Reporting by Hardik Vyas in Bengaluru; editing by Sudipto Ganguly)