Read/write raw NFC data on a mac
For programming your own macOS application, you have multiple options. As you mention Android, you might want to go the Catalyst way in order to create an app for both iOS and macOS at the same time. In that case, you want to use the Core NFC framework from Apple to access the NFC reader.
If you want really raw access without a framework, you'll want to start from a specific set of hardware. For example a popular choice is the ACR122U NFC reader/writer, which is connected through USB. It comes with Mac software, which might be enough for your needs - and if not, it can be programmed at the lowest level if need be. You can read the details in the API documentation.
Another option is to install pcsc-lite from HomeBrew and use their implementation as a stepping stone in creating your own implementation.