James Edward Cokes, 41, a retired management analyst in the broadcast bureau of the Federal Communications Commission, died Tuesday at his home in Woodbridge, Va. He had a brain tumor.

Mr. Cokes, who was born in Philadelphia, grew up in Suffolk, Va. He graduated from Virginia State College in 1963 and was commissioned in the Army. In addition to serving at various posts in the United States, he was assigned to France. He left the service in 1970 with the rank of captain and settled in the Washington area.

He joined the State Department as a Foreign Service Reserve officer and was assigned to the U.S. Embassy in Paris. He then studied Spanish at the Foreign Service Institute here and was assinged to the U.S. embassy in La Paz, Bolivia.

In 1976, Mr. Cokes left State and joined the Commerce Department. About a year later, he transferred to the FCC and remained there until his retirement earlier this year for reasons of health.

His marriage to the former Leola Blair ended in divorce.

Survivors include his wife, Marilyn Varona Cokes, and their son, Jamie Michel Cokes, both of Woodbridge; two children by his first marriage, Sherri Jacqueline Cokes and Marvin Dexter Cokes, both of Philadelphia; his mother, Ethel V. Cokes of Suffolk; a brother, Solomon, of Woodbridge, and two sisters, Patricia Cokes of Suffolk and Ann Sadler of Columbia, Md.