Ideally, for Stanford's MS in Computer Science, which is a very competitive program, one should aim for a GPA of 3.7 or above on a 4.0 scale. Stanford MS&E looks for applicants who have good academic records; therefore, a higher GPA definitely strengthens your application, but they do not have a strict minimum GPA requirement. They review the applications as a whole and consider work experiences, research projects, submission of GRE scores, a couple of recommendation letters, and a personal statement of purpose.
If you have good marks, less than a little below 3.7 GPA, your chances might improve significantly. This can increase your possibilities if you show strong achievement in other fields like research interest and related work experience or published articles. Do not forget that Stanford values students who demonstrate different problem-solving skills with full commitment towards their fields.
For more information or any doubts, you can Book a Free Strategy Session to discuss with the experts.