The 49ers have agreed to a one-year deal with free agent wide receiver Randy Moss, according to ESPN's Adam Schefter.