Morocco communes
Morocco's régions, provinces and communes: HCP codes, names, census population and boundaries
Status: Listed — passed its latest tests · Score: 78.9/100 · Category: Government & public records, Real estate & property, Security & identity · Ranked: #6 in gov-records/statistics-open-data (MCP)
Connect: https://communes.pages.dev/mcp (streamable-http)
Score breakdown
| latency | 95.4 |
|---|---|
| tool docs | 100 |
| breadth | 67.1 |
| freshness | 100 |
| license | 100 |
| adoption | 42.9 |
| protocol | 100 |
Live test results
| tested at | 2026-11-24T21:41:23.981Z |
|---|---|
| http status | 200 |
| initialize | ok |
| tools list | ok |
| tool count | 13 |
| latency ms | 424 |
| tools list ms | 485 |
| protocol version | 2025-06-18 |
| oauth discovery | missing |
| server info | {"name":"morocco-communes","version":"1.10.0"} |
| error | missing |
Usage and freshness signals
| github stars | 51 |
|---|---|
| license | MIT |
| repo pushed at | 2026-11-14T02:13:18Z |
| repo archived | false |
| npm downloads 30d | missing |
| adoption note | missing |
| registry updated at | 2026-09-29T21:07:17.886241Z |
| registry published at | 2026-09-29T21:07:17.886241Z |
| pypi downloads | missing |
Tools (13)
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: تشديرت and Tachdirt b |
|---|---|
search | Find régions, provinces and préfectures, cercles, communes and arrondissements of Morocco by name. Takes French or Arabic, a slug, or another name a place is kn |
get_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 it borders and how mu |
communes_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 the one that contains t |
commune_at | The commune whose boundary contains a point, with its names, type, parents and population, and in Casablanca, Rabat, Fès, Marrakech, Salé and Tanger the arrondi |
list_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 order with its value, |
get_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 units it holds, and |
get_indicators | HCP's census figures for Morocco or any région, province or préfecture, cercle, commune or arrondissement: age, marital status, fertility, disability, schooling |
get_economy | HCP's 2024 count of economic establishments for Morocco or any région, province or préfecture, cercle, commune or arrondissement: how many establishments were m |
get_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 second homes, what kind |
get_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 communes since 2014, o |
get_neighbourhoods | The neighbourhoods OpenStreetMap and Poste Maroc name in a commune, a city's arrondissements included, with the arrondissement each was placed in where it has a |
get_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 Arabic only. Each ha |
Links: repository · JSON · first seen 2026-11-24 · days passed 2/2 · registry name io.github.zkousama/morocco-communes