Create a user interface action plugin. Details on creating plugins are in user manual.
http://calibre-ebook.com/user_manual/customize.html and
http://calibre-ebook.com/user_manual...erface-actions
Currently you cannot customize what appears in the context menu, but that functionality will be added in the next release.