B737-900
Flight Crew Air Transport Pilot (ATP); Flight Crew Instrument; Flight Crew Multiengine
Flight Crew Last 90 Days 105; Flight Crew Total 4773; Flight Crew Type 4773
Situational Awareness
Conflict NMAC; Deviation / Discrepancy - Procedural Published Material / Policy
Flight Crew Took Evasive Action
Procedure
I wish to report a near mid-air collision.  We were operating Aircraft X; ZZZ-ZZZ1; on a 737-900ER. The FO (First Officer) was the PF (Pilot Flying). I was the PM (Pilot Monitoring). Our IFR clearance was [SID]. Upon takeoff clearance from Runway XXR; we were given a heading of 290 with a initial climb limit of 3;000 [feet]. We received no notification of any traffic that we should be looking for upon takeoff clearance or during our initial climbout. As we were climbing out and cleaning up the aircraft; we received a TA at out 1 to 2 o'clock and high. I stopped my PM duties to search for source of the TA. As I searched; we got the altitude alert for the level off. I found the aircraft. He was not moving in relationship to our direction of travel. I told the PF to stop his climb. As I was saying that; we received the RA. The PF lowered the nose the slow the climb; as he was doing that the TCAS annunciated 'monitor vertical speed.' I glanced at the MFD to see the aircraft was only +200 feet above us. I was still on the 5 mile range and the symbol was inside the 2.5 mile tick mark at our 1 o'clock. The PF executed the RA escape maneuver to comply with the RA. I then told ZZZ Departure that I had the GA aircraft in sight; as we still hadn't been given any traffic alerts. The TCAS announced 'clear of conflict' and we resumed the climb uneventfully.
Aircraft X; ZZZ-ZZZ1 I was the PF (Pilot Flying). Our clearance was [SID]...off Runway XXR heading of 290 with a initial climb limit of 3;000 [feet]. We received a TA at about 2;200 [feet]. There was an aircraft approximately 2;500 feet. No notification from ATC about the traffic. TCAS told us monitor our vertical speed which I did. I performed an RA escape maneuver and TCAS said clear of conflict. We notified approach about the traffic and TCAS RA. It seemed as if there was something going on at ZZZ or surrounding airport with an emergency at the time...rest of the trip was without incident.
B737-900 flight crew reported taking evasive action after receiving a TA and RA.