The invention discloses a device for detecting a user interface for compiling a software development kit and a server, and relates to the technical field of user interface detection. The problem that dynamic detection in user interface detection is complicated and changeable is solved. The device for detecting the user interface for compiling the software development kit comprises a source program file, a compiler, an assembler, a linker and an output end, and a server of the device for detecting the user interface of the compilation of the software development kit comprises a client, an extranet server, an intranet server, a private line network and an encryption system. The user interface in the server is detected through the source program file, the compiler, the assembler and the linker generation output end, on one hand, the compiler, the assembler and the linker translate an assembly language into an unexecutable machine language, detection of the user interface is facilitated, on the other hand, success rate of compiling increases. Program errors are avoided, and the stability and safety of the device are improved.