Can MX records point to an IP address, or only to a domain name?
Only to a host name, such as mail.yourdomain.com. That name then needs its own A record (or AAAA for IPv6) with the server's IP address.
If you only have an IP address for your mail server, create an A record for a name like mail, and point the MX record to that name.