The San Francisco 49ers agreed to a contract with former New York Giants running back Brandon Jacobs on Wednesday, a league source said Wednesday.