Mecha in modern setting
Anime
Mecha that takes place in modern/modern-ish/near-future times relative to their release date.

TV, 2014,
24 eps
Me:-
Author:6
This anime takes place in a strangereal type setting, meaning it is an alternate version of Earth. However, the tech-level of the setting is on par to modern-day humans minus the mecha.

TV, 2021,
11 eps
Me:-
Author:10
Takes place in a strangereal type world. Technologically the setting is on-par with 21st century humans.

TV, 1999,
26 eps
Me:-
Author:8
Diesel-punk setting that is reminiscent of mid-20th century New York.

TV, 2016,
12 eps
Me:-
Author:9
Takes place in an alternate history where Earth was invaded by aliens in the 1960s. Part of the Muv-Luv series, Schwarzesmarken takes place In East Germany in the early 1980s.

TV, 2006,
25 eps
Me:-
Author:8
Takes place in an alternate universe where the British Empire continued to grow and conquer much of the Earth. Despite taking place in 2010, Code Geass features major fantastical elements. However, the technology is mostly grounded minus the floating battleships. Even the mecha is pretty grounded for most of the first season.

TV, 1982,
36 eps
Me:-
Author:8
Even though it is a space-opera, it takes place in 2009, which is only 27 years after its airing date, so it qualifies for the list of near-future mecha.

TV, 1985,
38 eps
Me:-
Author:-
Like Macross, Layzner is also a mecha that is often off-Earth and takes place in the near future. Taking place in 1996, Layzner does not shy away from then-topical Cold War politics, making the USA and USSR key factions in it's story.

TV, 2003,
12 eps
Me:-
Author:-
Like Muv-Luv, Gunparade is another alternate history mecha where aliens invaded right after WWII ended. It takes place in 1999.