Jonjo Shelvey made an impressive debut for Newcastle as he helped his side move out of the relegation zone with a win over West Ham.
Shelvey had a hand in both goals as Ayoze Perez curled in a low shot before Georginio Wijnaldum side-footed in from six yards to make it 2-0.
A stray backpass by Chancel Mbemba let Nikica Jelavic score for the Hammers.
Newcastle squandered a number of chances but held on for a first win in six league games.
Magpies striker Aleksandar Mitrovic produced a hard-working performance but was denied by Hammers keeper Adrian three times.
Missed opportunities almost cost the home side, but keeper Rob Elliot kept out a 90th-minute Cheikhou Kouyate header with his knee.
Relive all the action from St James' Park here.
Follow reaction to Saturday's games here.
Very good. The 23-year-old midfielder, signed for £12m from Swansea, showed the kind of passing, creativity and energy which helped him break into the England squad earlier this season.
With just six minutes on the clock, Shelvey found Wijnaldum, who laid the ball off for Perez to open the scoring.
The new signing then helped set up his side's second with a raking 60-yard ball to Daryl Janmaat, who crossed for Wijnaldum to score his ninth Magpies goal of the season.
Victory moved Newcastle out of the relegation zone at the expense of Swansea, where Shelvey said he had been "hung out to dry".
"I've enjoyed every minute I've been up here," said Shelvey. "It's nice to get out there and show what I am about.
"It's not about me. It is about the team. We are out of the relegation zone and it's onwards and upwards from here.
"I'm very shocked this team is in and around the relegation places. Normally it is hard coming into a new team and slotting straight in, but credit to the players and staff here."
Steve McClaren was cruelly dubbed the 'wally with the brolly' when his England side were beaten by a Croatia team managed by Slaven Bilic in 2007.
That defeat ended England's hopes of qualifying for Euro 2008, and McClaren duly lost his job.
Bilic also came out on top when the Hammers won the reverse fixture earlier this season, but McClaren deservedly emerged victorious this time.
The visitors were overwhelmed in the first half and, despite improving after the break, would have been beaten more convincingly had it not been for Adrian.
Newcastle manager Steve McClaren: "They must have gone in at half-time thinking 'wow, get in' because it was only 2-0.
"Then we gifted them a goal, but we didn't get nervous. We kept playing, we had chances that we didn't take but defended well and saw the game through.
"Jonjo is a very, very good player with real potential and it will suit him playing in this team, a team of footballers."
West Ham boss Slaven Bilic: "They scored two goals very early and it gave them confidence, but from the first minute of the game they were getting to second balls and looked hungrier, sharper, quicker.
"In the second half, we improved a lot. In the end we could have nicked a point when we had a great chance to equalise. But, overall, they deserved to beat us."
Newcastle are away at Watford on 23 January, while West Ham play host to Manchester City on the same day.
Full Time Match ends, Newcastle United 2, West Ham United 1.
90:00 +7:06 Full timeFull Time Second Half ends, Newcastle United 2, West Ham United 1.
90:00 +6:22Yoan Gouffran (Newcastle United) wins a free kick in the defensive half.
90:00 +6:22Foul by Angelo Ogbonna (West Ham United).
90:00 +5:22Attempt saved. Yoan Gouffran (Newcastle United) right footed shot from outside the box is saved in the centre of the goal. Assisted by Georginio Wijnaldum.
90:00 +4:54Corner, Newcastle United. Conceded by Angelo Ogbonna.
90:00 +4:32 SubstitutionSubstitution Substitution, Newcastle United. Jamaal Lascelles replaces Aleksandar Mitrovic.
90:00 +3:51Attempt missed. Jonjo Shelvey (Newcastle United) right footed shot from outside the box is high and wide to the right. Assisted by Georginio Wijnaldum.
90:00 +3:34Attempt saved. Aleksandar Mitrovic (Newcastle United) right footed shot from a difficult angle on the left is saved in the centre of the goal. Assisted by Fabricio Coloccini.
90:00 +2:51Foul by Moussa Sissoko (Newcastle United).
90:00 +2:51Mark Noble (West Ham United) wins a free kick in the defensive half.
90:00 +0:55Attempt missed. Jack Colback (Newcastle United) left footed shot from outside the box is close, but misses to the left. Assisted by Georginio Wijnaldum.
90:00 +0:08 BookingBooking Robert Elliot (Newcastle United) is shown the yellow card.
89:47Attempt missed. Nikica Jelavic (West Ham United) right footed shot from outside the box is just a bit too high. Assisted by Victor Moses.
88:52Attempt missed. Moussa Sissoko (Newcastle United) right footed shot from the right side of the box is high and wide to the right. Assisted by Aleksandar Mitrovic.
88:46Attempt blocked. Aleksandar Mitrovic (Newcastle United) right footed shot from the centre of the box is blocked. Assisted by Moussa Sissoko.
88:28Attempt saved. Cheikhou Kouyaté (West Ham United) header from the right side of the six yard box is saved in the bottom right corner. Assisted by Nikica Jelavic with a cross.
87:40Attempt missed. Jonjo Shelvey (Newcastle United) right footed shot from outside the box misses to the right. Assisted by Yoan Gouffran.
84:08Foul by Nikica Jelavic (West Ham United).
84:08Jack Colback (Newcastle United) wins a free kick in the defensive half.
Delay over. They are ready to continue.
80:39Delay in match Daryl Janmaat (Newcastle United) because of an injury.
79:22 SubstitutionSubstitution Substitution, Newcastle United. Yoan Gouffran replaces Ayoze Pérez.
76:58Attempt saved. Jonjo Shelvey (Newcastle United) right footed shot from outside the box is saved in the centre of the goal. Assisted by Ayoze Pérez.
75:14Attempt saved. Aleksandar Mitrovic (Newcastle United) right footed shot from the left side of the box is saved in the bottom right corner. Assisted by Jonjo Shelvey.
74:09 SubstitutionSubstitution Substitution, West Ham United. Carl Jenkinson replaces James Tomkins because of an injury.
73:51Foul by Jack Colback (Newcastle United).
73:51Nikica Jelavic (West Ham United) wins a free kick in the attacking half.
71:17Attempt blocked. Aaron Cresswell (West Ham United) left footed shot from the left side of the box is blocked. Assisted by Mark Noble.
69:08 SubstitutionSubstitution Substitution, West Ham United. Victor Moses replaces Michail Antonio.
65:39Attempt blocked. Georginio Wijnaldum (Newcastle United) right footed shot from outside the box is blocked. Assisted by Aleksandar Mitrovic.
64:19Corner, Newcastle United. Conceded by Adrián.
64:17Attempt saved. Aleksandar Mitrovic (Newcastle United) right footed shot from the right side of the box is saved in the top centre of the goal.
64:14Attempt blocked. Jonjo Shelvey (Newcastle United) left footed shot from outside the box is blocked. Assisted by Aleksandar Mitrovic.
59:46Attempt missed. Aleksandar Mitrovic (Newcastle United) left footed shot from the centre of the box is close, but misses to the right. Assisted by Daryl Janmaat with a cross.
58:49Offside, Newcastle United. Aleksandar Mitrovic tries a through ball, but Georginio Wijnaldum is caught offside.
57:29Attempt missed. Georginio Wijnaldum (Newcastle United) right footed shot from outside the box is close, but misses to the left. Assisted by Ayoze Pérez.
56:15 SubstitutionSubstitution Substitution, Newcastle United. Henri Saivet replaces Paul Dummett because of an injury.
55:15Delay over. They are ready to continue.
54:06Delay in match Cheikhou Kouyaté (West Ham United) because of an injury.
53:41Corner, West Ham United. Conceded by Fabricio Coloccini.
50:23Fabricio Coloccini (Newcastle United) wins a free kick in the defensive half.
50:23Foul by Enner Valencia (West Ham United).
48:16 Goal scoredGoal! Goal! Newcastle United 2, West Ham United 1. Nikica Jelavic (West Ham United) left footed shot from the left side of the six yard box to the bottom left corner.
47:33Attempt missed. Georginio Wijnaldum (Newcastle United) right footed shot from the centre of the box misses to the left. Assisted by Moussa Sissoko.
45:00Second Half begins Newcastle United 2, West Ham United 0.
45:00 SubstitutionSubstitution Substitution, West Ham United. Nikica Jelavic replaces Pedro Obiang.
45:00 +2:04 Half timeHalf Time First Half ends, Newcastle United 2, West Ham United 0.
45:00 +2:02Corner, Newcastle United. Conceded by Aaron Cresswell.
45:00 +1:22Corner, West Ham United. Conceded by Paul Dummett.
45:00 +0:15Offside, Newcastle United. Robert Elliot tries a through ball, but Aleksandar Mitrovic is caught offside.
43:54Attempt missed. Michail Antonio (West Ham United) left footed shot from outside the box misses to the right. Assisted by James Tomkins.
42:33Attempt blocked. Pedro Obiang (West Ham United) right footed shot from outside the box is blocked.
42:15Attempt saved. Cheikhou Kouyaté (West Ham United) right footed shot from the centre of the box is saved in the centre of the goal. Assisted by Pedro Obiang.
40:50Foul by Aleksandar Mitrovic (Newcastle United).
40:50Mark Noble (West Ham United) wins a free kick in the defensive half.
37:30Foul by Moussa Sissoko (Newcastle United).
37:30Aaron Cresswell (West Ham United) wins a free kick in the defensive half.
36:41Attempt missed. Cheikhou Kouyaté (West Ham United) right footed shot from the centre of the box is close, but misses to the right. Assisted by Dimitri Payet following a set piece situation.
35:53Foul by Jack Colback (Newcastle United).
35:53Aaron Cresswell (West Ham United) wins a free kick in the attacking half.
34:12Offside, West Ham United. Adrián tries a through ball, but Enner Valencia is caught offside.
33:01Attempt blocked. Moussa Sissoko (Newcastle United) right footed shot from the centre of the box is blocked.
32:59Attempt blocked. Moussa Sissoko (Newcastle United) right footed shot from the centre of the box is blocked. Assisted by Aleksandar Mitrovic.
30:12Attempt missed. Paul Dummett (Newcastle United) left footed shot from the left side of the box misses to the right.
29:32Foul by Aleksandar Mitrovic (Newcastle United).
29:32Cheikhou Kouyaté (West Ham United) wins a free kick in the attacking half.
27:33Attempt missed. Enner Valencia (West Ham United) header from the centre of the box misses to the left. Assisted by Dimitri Payet with a cross.
18:41Attempt saved. Aleksandar Mitrovic (Newcastle United) left footed shot from the centre of the box is saved in the centre of the goal.
17:49Aleksandar Mitrovic (Newcastle United) wins a free kick in the defensive half.
17:49Foul by James Tomkins (West Ham United).
14:32 Goal scoredGoal! Goal! Newcastle United 2, West Ham United 0. Georginio Wijnaldum (Newcastle United) right footed shot from the centre of the box to the high centre of the goal. Assisted by Daryl Janmaat with a cross.
12:41Attempt missed. Mark Noble (West Ham United) right footed shot from outside the box is high and wide to the right. Assisted by Dimitri Payet following a corner.
12:14Corner, West Ham United. Conceded by Fabricio Coloccini.
11:33Hand ball by Moussa Sissoko (Newcastle United).
10:48Foul by Jonjo Shelvey (Newcastle United).
10:48Angelo Ogbonna (West Ham United) wins a free kick in the attacking half.
6:31Corner, Newcastle United. Conceded by Adrián.
6:29Attempt saved. Aleksandar Mitrovic (Newcastle United) right footed shot from long range on the left is saved in the top centre of the goal. Assisted by Ayoze Pérez.
5:10 Goal scoredGoal! Goal! Newcastle United 1, West Ham United 0. Ayoze Pérez (Newcastle United) right footed shot from outside the box to the bottom right corner. Assisted by Georginio Wijnaldum.
4:41Attempt saved. Ayoze Pérez (Newcastle United) right footed shot from the left side of the box is saved in the bottom right corner. Assisted by Aleksandar Mitrovic.
0:53Aaron Cresswell (West Ham United) wins a free kick in the defensive half.
0:53Foul by Aleksandar Mitrovic (Newcastle United).
0:00First Half begins.
0:00Lineups are announced and players are warming up.
Live data and text provided by our data suppliers