Categories › Knowledge & Everyday › Government & public data
Morocco's régions, provinces and communes: HCP codes, names, census population and boundaries
Remote server: your requests and data go to communes.pages.dev. Claude Code: claude mcp add --transport http morocco-communes https://communes.pages.dev/mcp · Claude app: Settings → Connectors → Add custom connector.
The tools this server listed when we connected to it, in its own words.
search_douars — Find douars, the villages and hamlets of Morocco's rural communes as HCP's 2024 census lists them, by name, in Arabic or in Latin letters: تsearch — Find régions, provinces and préfectures, cercles, communes and arrondissements of Morocco by name. Takes French or Arabic, a slug, or anotheget_commune — One commune's names, type, région, province and cercle, 2024 and 2014 population, the change between them, a point inside it, the communes icommunes_near — Communes within a radius of a point, nearest first. Distance is measured to each commune's centroid, so the nearest commune isn't always thecommune_at — The commune whose boundary contains a point, with its names, type, parents and population, and in Casablanca, Rabat, Fès, Marrakech, Salé anlist_communes — Which commune has the most or the least of something is one call here: sort by that figure, and every commune in the filter comes back in orget_unit — One région, province, préfecture or cercle: its name in French and Arabic, its 2024 population and households, the units above it, how many get_indicators — HCP's census figures for Morocco or any région, province or préfecture, cercle, commune or arrondissement: age, marital status, fertility, dget_economy — HCP's 2024 count of economic establishments for Morocco or any région, province or préfecture, cercle, commune or arrondissement: how many eget_housing — HCP's 2024 count of urban dwellings for Morocco or any unit that has an urban area: how many there are, how many are occupied, vacant or secget_insights — For a commune, up to 3 of its 2024 census figures that stand out: among the highest or lowest communes, moved far more or less than other coget_neighbourhoods — The neighbourhoods OpenStreetMap and Poste Maroc name in a commune, a city's arrondissements included, with the arrondissement each was placget_douars — The douars of a rural commune from HCP's 2024 census, the villages and hamlets it's made of, grouped in its fractions (mashyakha), named in Not tested by KitScout yet. When our harness runs it, pros, cons and the tasks we tried appear here, with the date and evidence.