Is there way how to open Microsoft SQL Server Database File (.mdf) in DataGrip?
Please understand that unlike CSV/TSV, the .mdf file is MS proprietary format and should/cannot be readable by any software not developed by MS.
To access data using datagrip either export data in non-proprietary format like TSV/CSV or import the .mdf file to local sql server instance.
You can then connect to local sql server instance from Datagrip using this tutorial