Attempted (but I am pretty sure it should work all right

) Firefox/Opensearch plugin attached.
Edit the XML file and replace "calibre-website.com:8080" with the IP address (or permanent host) of your calibre library, which you can find on the Connect/Share dropdown.
Then drop the file in ~/.mozilla/firefox/whatevertheheckismyprofile.default/searchplugins/