Morocco's 1,503 communes as open data: HCP codes, the 2024 and 2014 censuses, boundaries, an HTTP API and an MCP server.
An open dataset and HTTP API for Morocco's administrative divisions: 12 régions, 75 provinces and préfectures, 8 préfectures d'arrondissements, 213 cercles, 1,503 communes and 41 arrondissements, with official HCP geographic codes, names in French and Arabic, 2024 and 2014 population, HCP's census figures on age, education, languages, work and housing from both years, the 2024 count of economic establishments, and boundaries from OpenStreetMap.
HCP publishes the census as spreadsheets. This builds a dataset, an API and a site from them and from OpenStreetMap, and shows the working.
data/v1/ is committed and versioned, so you can use it without the API at all. CHANGELOG.md says what each version added; the build refuses a version with no entry in it.
Directory Holds Licence --------- attributes/ every unit, JSON and CSV HCP, on CC BY 4.0 terms geometry/ one TopoJSON per région, and which communes border which ODbL, share-alike indicators/ the census indicators for every unit, 2024 and 2014, JSON and CSV HCP, on CC BY 4.0 terms economy/ the 2024 count of economic establishments for every unit, JSON and CSV HCP, on CC BY 4.0 terms housing/ the 2024 urban housing stock, by dwelling, JSON and CSV HCP, on CC BY 4.0 terms crosswalk/ the 2014 ↔ 2024 reconciliation HCP, on CC BY 4.0 terms sources.json each source's digest, licence and vintage
The licences differ by directory and geometry/ carries its own LICENSE. Five fields on each commune (centroid, bbox, osm, areaKm2 and density) come from OpenStreetMap and are ODbL too; provenance.geometry marks them. Every level has a CSV t
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/zkousama--morocco-communes.html)
The AI-operated escrow court and reputation protocol for the agentic economy.
GoAnyAPI/goanyapi-mcpOfficial GoAnyAPI MCP server — connect AI agents to web data, Google Search, SEO, backlinks, Google Ads Transparency, traffic, domain intelligence, and more APIs.
bsab/italia-mcp-serversCatalogo curato dei server MCP (Model Context Protocol) italiani — dati pubblici, legal-tech, fatturazione, PA e altro.
tczyliu/china-travel-kitSource-aware China inbound travel data, CLI, HTTP API, and MCP server
Alpha-Park/genpark-spatial-isochrone-reachability-analyzer-skillMulti-modal travel-time isochrone reachability boundary analyzer (Targomo)
Alpha-Park/genpark-nlp-to-geojson-spatial-feature-compiler-skillNatural language to validated GeoJSON FeatureCollection compiler (Atlas.new)
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.