Morocco Communes

•
53
•

Provides open data, an HTTP API, and a website for Morocco's administrative divisions, including HCP codes, census figures, economic establishments, and geographical boundaries.

Morocco Communes offers a comprehensive, open-source resource for Morocco's administrative geography. It compiles official data from the High Commission for Planning (HCP) and OpenStreetMap into a standardized dataset, accessible via a robust HTTP API and a dedicated documentation site. The platform includes detailed information on 12 régions, 75 provinces, 1,503 communes, and other divisions, featuring names in French and Arabic, population statistics from the 2014 and 2024 censuses, age, education, language, work, housing figures, and counts of economic establishments. Boundary data sourced from OpenStreetMap is also integrated, making it an invaluable tool for developers, researchers, and data scientists working with Moroccan geographical and demographic information.

主な機能

01Comprehensive open dataset with HCP codes, census data (2014, 2024), economic establishments, and boundaries
02Multi-tiered HTTP API (pre-rendered, alias, computed) for flexible data access, including search, proximity, and sorted list queries
03Integrated MCP server offering 9 read-only tools for AI clients like Claude Code, enabling direct data querying
04Detailed documentation site with interactive maps, charts, and filtering capabilities for all administrative units
05Data available as standalone npm and PyPI packages for programmatic and analytical use
060 GitHub stars

ユースケース

01Conducting data analysis and research on demographic and economic trends in Morocco using provided datasets
02Integrating Moroccan administrative and census data into web or mobile applications via API
03Developing AI applications and agents that can query specific Moroccan geographical and statistical information through an MCP client