On-farm Energy Production Act of 2007 - Amends the Food Security Act of 1985 to require the Secretary of Agriculture to make cost-share payments for on-farm energy production (including solar and wind energy and renewable fuel) under the environmental quality incentives program.