The answer is a pencil. It contains graphite, which is mined. The pencil is placed in a box (a pencil case), and the mind uses it for writing, solving, and creating - essentially an extension of your thoughts.
This riddle tests your ability to connect abstract clues logically.