Mister Ed is a fictional talking horse , originally appearing in short stories by Walter R. Brooks , and later in an American television situation comedy produced by Filmways that first aired in syndication from January 5 to July 2, 1961, and then on CBS from October 1, 1961 to February 6, 1966.