Costco does not offer on-site parking. The closest parking is at 367 12th Street, San Francisco. See more here.
There is no free parking near Costco.