The Bundeszentralamt für Steuern maintains and publishes a list of all available tax offices in Germany.
GemFA
An XML file is available of the so called: Gemeinde- und Finanzamtsauskunft (abbreviated: GemFA). The file gemfa_xml_export_datei.zip can be found on the following webpage.