It's a bit more than a biography, but I'd recommend "The Metaphysical Club: A Story of Ideas in America" by Louis Menand. It's about the lives and history surrounding Oliver Wendell Holmes, William James, Charles Peirce, and John Dewey, and the pragmatist philosophy they were involved in creating.