If you’d like a simple mountain bike ride within San Francisco, you can try the McLaren Short Track Challenge. I went for a longer version, going into San Bruno Mountain State Park. The track is decent; it has a few sections that are a little challenging, but also a big part of it is on paved roads.
The next day I went running up the hills of SF. I chose a circuit up Corona Heights Park, Buena Vista Park, Mt Olympus, Mt Sutro (the forest there is surreal) and finally Twin Peaks.