If you want to watch the fireworks from inside the Magic Kingdom you won't make it. The Magic Kingdom closes in waves on the 4th of July and it's usually in it's final phase of closing well before firework time.
It would probably be possible to view them from somewhere outside of the park, but that's even a hard guarantee to make because the 4th of July is so busy.