All the embassies are based in Beijing, the capital of China; but there are several consulates general based in Shanghai:

Argentina
88 Xian Xia Rd, Sun Plaza Building West Tower Office 402,
200336 Shanghai
上海市长宁区 仙霞路88号
+86.21.6278 0300

Australia
1168 Nanjing Rd West, Level 22 CITIC Square,
200041 Shanghai
南京西路1168号中信泰富广场22楼
+86.21. 2215 5200

Austria
1375 Huaihai Zhong Rd, 3A Qihua Tower,
Shanghai 200031
上海市淮海中路1375号靠近复兴中路 启华大厦3楼 邮编 200021
+86.21.6474 0268

Belgium
127 Wu Yi Rd,
200050 Shanghai
上海市长宁区武夷路127号
+86.21.6437 6579

Brazil
188 Jiangning Rd, 7th Floor, ASA Building,
200041 Shanghai
江宁路188号亚盛大厦7楼703单位
+86.21.6437 0110

Canada
1376 Nanjing Xi Rd, Suite 604, Shanghai Center,
20040 Shanghai
上海市南京西路1376号上海商城西峰604室
+86.21.3279 2800

Chili
2299 Yan'an Xi Rd, Room 2501, Shanghai Mart,
200336 Shanghai
上海市延安西路2299号世贸商城办公楼1712室
+86.21.6236 0770

Denmark
2200 Yan'an Xi Rd Room 701, Shanghai International Trade Center,
200336 Shanghai
上海市延安西路2200号国际贸易中心701室
+86.21.6209 0500

Finland
1168 West Nanjing Rd, Room 2501-2505,CITIC Square,
200041 Shanghai
上海市南京西路1168号中信泰富广场2501-05
+86.21.5292 9900

France
689 Guangdong Rd, Room 201, Haitong Securities Building,
200001 Shanghai
上海市广东路689号 海通证券大厦2层
+86.21.6103 2200

Germany
181 Yongfu Rd.
200031 Shanghai
上海市永福路181号
+86.21.3401 0106

Great Britain
1376 Nanjing Xi Rd, Suite 301, Shanghai Center,
200336 Shanghai
上海市南京西路1376号上海商城西峰301室
+86.21.3279 2000

India
2201 Yan’an Xi Rd, Room 1008, Shanghai International Trade Center,
200336 Shanghai
上海市延安西路2201号国贸中心10楼
+86.21.6275 8885

Ireland
1376 NanjingXi Rd, 700A,Shanghai Center,
200040 Shanghai
上海市南京西路1376号上海商城700A室
+86.21.6279 8729

Israel
55 Loushanguan Rd, Room 703, New Town Mansion,
200336 Shanghai
上海市娄山关路55号新虹桥大厦703室
+86.21.6126 4500

Italy
989 Changle Rd, 19th Floor, the Center,
200031 Shanghai
上海市长乐路989号世纪商贸广场19楼
+86.21.5407 5588

Japan
8 Wanshan Rd.
200336 Shanghai
上海市万山路8号
+86.21.5257 4766

Malaysia
1168 Nanjing Xi Rd, Room 1101, CITIC Square,
201103 Shanghai
上海市南京西路1168号中信泰富广场1101室
+86.21.529 25424

Mexico
1375 Huaihai Zhong Lu, 20B, Qihua Tower,
201103 Shanghai
上海市淮海中路1375号启华大厦20B
+86.21.6125 0220

Netherlands
88 Xianxia Lu 4F, East Tower, Sun Plaza,
201103 Shanghai
上海市仙霞路88号太阳广场东楼4层
+86.21.10 8532 0200

New Zealand
989 Changle Rd, 1605-1607A,
200031 Shanghai
上海市长乐路989号世纪商贸广场1605-1607A室
+86.21.5407 5858

Norway
12 Zhong Shan Dong Yi Rd,
200002 Shanghai
上海市中山东一路12号321室
+86.21.6323 9988

Poland
618 Jianguo Xi Rd.
200031 Shanghai
上海市建国西路618号
+86.21.6433 9288

Portugal
567 Weihai Rd, 16C-D, Crystal Century Tower,
200040 Shanghai
威海路567号晶采世纪大厦 16C-D座
+86.21.6288 6767

Russia
20 Huangpu Rd.
200002 Shanghai
上海市黄浦路20号
+86.21.6324 2682

Singapore
89 Wanshan Rd,
200336 Shanghai
上海市万山路89号
+86.21.6278 5566

South Africa
220 Yan'an Dong Rd, R.2706, The Bund Center,
200002 Shanghai
上海市延安东路220号外滩中心2706室
+86.21.5359 4977

South Korea
60 Wan Shan Road
200336 Shanghai
万山路60号
+86.21.6295 2629

Spain
12 Zhongshan Dong Yi Rd, Room 301-303,
200002 Shanghai
上海市中山东一路12号
+86.21.6321 3543

Sweden
381 Huaihai Zhong Rd, Rm. 1530-1541,Central Plaza,
200336 Shanghai
上海市淮海中路381号中环广场1530-1541室
+86.21.5359 9610

Switzerland
319 Xianxia Rd, 22F, Building A, Far East International Plaza,
200051 Shanghai
上海市仙霞路319号远东国际广场A幢22楼
+86.21.6270 0519

Thailand
7 Zhongshan Dong Yi Rd, 3F,
200040 Shanghai
上海市中山东一路7号3楼
+86.21.6288 3030

Turkey
1375 Huaihai Zhong Rd, 13F, Qihua Tower,
200031 Shanghai
上海市淮海中路1375号启华大厦13楼
+86.21.6474 6838

United States of America
1469 Huaihai Zhong Rd.
200031 Shanghai
上海市淮海中路1469号
+86.21.6433 6880

Vietnam
900 Pudong Da Dao, 3F, Huachen Financial Mansion,
200135 Shanghai
浦东大道900号华辰金融大厦304室,电话
+86.21.6855 5871