The invention discloses a machining device suitable for assembling an inverter shell and a machining method, and belongs to the technical field of inverter machining. According to the machining device, a positioning block, a force bearing block, a pressing claw, a pin mounting unit and a pipe fitting assembling assembly are arranged on the positions, corresponding to the inverter shell to be assembled, on a workbench. By means of corresponding arrangement and mutual matching of the number and the positions of all the components, accurate positioning and clamping of workpieces can be rapidly achieved, and then sequential assembling of pins and pipe fittings is achieved. The machining device suitable for assembling the inverter shell is simple in structure and convenient to assemble and operate, the machining method for assembling through the machining device is simple and convenient, accurate positioning and reliable clamping of the inverter shell can be achieved, pin assembling and pipe fitting assembling are automatically and rapidly completed after positioning and clamping are completed, the assembling precision and the assembling efficiency of the inverter shell of a new energyautomobile are effectively improved, the assembling cost of the inverter shell is reduced, and good application prospects and popularization value are achieved.