Arthur Blaine (A. B.) Cunningham, 87, a retired landscape gardener with the Interior Department who was active in church and civic work, died Thursday at the Culpett-Weeks Nursing Home in Oakland, Md., following a stroke.

Mr. Cunningham was born in Huntersville, W.Va., and graduated from West Virginia State Institute in 1916. He served in the Army in France during World War I and then settled in Huntington, W.Va., where he was a landscape gardener.

In 1946, following his marriage to the former Eva G. Patterson, he moved to Washington. Mr. Cunningham was employed as a garden engineer by Howard University and later by the Interior Department, where he did landscaping and groundskeeping unitl his retirement in 1963.

In his retirement, Mr. Cunningham, who held a patent on a plant watering device, grew prize roses, continuted to play tennis until he was past 65, raised hunting dogs, and hunted.

He was a member of the Anacostia Civic Association, the Metropolitan Police Boys Club and the Shiloh Baptist Church, where he was active in the Grady Little John Bible Class, the Sunrise Prayer Service Group and the Phoebe Circle.

In addition to his wife of Washington, survivors include a stepson, Hubert T. Patterson of Oakland, Calif.

The family suggests that expressions of sympathy be in the form of contributions to the Building Expansion Fund, Shiloh Baptist Church, 9th and P streets NW, Washington, D.C. 20001