Harry Potter author J.K. Rowling, shown this April, wrote all the Harry Potter books in Edinburgh. Harry Potter author J.K. Rowling, shown this April, wrote all the Harry Potter books in Edinburgh. (Associated Press)

Harry Potter author J.K. Rowling will receive the 2008 Edinburgh Award in recognition of her contributions to Scotland's capital.

Rowling has often described how she wrote the first book of the Harry Potter series in an Edinburgh café while still a struggling single mother.

She was the unanimous choice to receive the award by a panel of Edinburgh luminaries from arts, business and science.

Rowling is "a tremendous asset to the city, not least for her writing prowess but also for her philanthropy and the vast amount of support she gives to numerous charities," said Edinburgh's ceremonial head, Lord Provost George Grubb.

Last year's winner was crime writer Ian Rankin.

Rowling said she was honoured to be chosen and pointed out that the series about the boy wizard was all written in the city.

"Edinburgh is very much home for me and is the place where Harry evolved over seven books and many, many hours of writing in its cafés," Rowling said.

"So much has happened to me both professionally and personally since I moved here nearly 15 years ago, that to receive this recognition is particularly meaningful and special."