MCP server
Morocco communes
io.github.zkousama/morocco-communes
Checked 26 Oct 2026, 08:29 UTC · Connected to it and listed its tools
Morocco's régions, provinces and communes: HCP codes, names, census population and boundaries
Working at last checkAbout 5,259 tokens per request once connected13 tools
https://communes.pages.dev/mcp
At a glance
- Type
- MCP server
- Publisher
- Not verified
- Status
- Working at last check
- Tools
- 13
- Token cost
- About 5,259 tokens per request
- Sets up in
- Claude Code, Claude Desktop, Codex, Gemini CLI, Cursor, VS Code, Antigravity, ChatGPT, OpenAI API, Grok
- Last checked
- 26 Oct 2026, 08:29 UTC
Connect it to your agent
Opens the app, which shows the server and asks you to confirm. For other apps, copy the setup below.
Claude Code
claude mcp add --transport http morocco-communes https://communes.pages.dev/mcp
Claude Desktop
Settings → Connectors → Add custom connector, and paste the URL.
Codex (config.toml)
[mcp_servers.morocco-communes] url = "https://communes.pages.dev/mcp"
Gemini CLI
{"mcpServers":{"morocco-communes":{"httpUrl":"https://communes.pages.dev/mcp"}}}
Cursor
{"mcpServers":{"morocco-communes":{"url":"https://communes.pages.dev/mcp"}}}
VS Code
{"servers":{"morocco-communes":{"type":"http","url":"https://communes.pages.dev/mcp"}}}
Antigravity
agy mcp add morocco-communes https://communes.pages.dev/mcp
ChatGPT
Settings → Apps & Connectors → Advanced settings: turn on Developer mode, then Create a connector and paste the URL. Which plans can do this varies.
OpenAI API (Responses tools)
{"type":"mcp","server_label":"morocco-communes","server_url":"https://communes.pages.dev/mcp","require_approval":"always"}
Grok (xAI API tools)
{"type":"mcp","server_label":"morocco-communes","server_url":"https://communes.pages.dev/mcp"}
Tools
commune_at~196 tokens
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 arrondissement too. Use it to turn coordinates, from a map or a device, into a commune. Sidi Mohamed Benmansour has no boundary, and neither do abocommunes_near~225 tokens
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 the point: commune_at gives that one.get_commune~174 tokens
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 much boundary it shares with each, and in the 6 cities divided into them, its arrondissements with their population. Identify it by HCP code (get_douars~385 tokens
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 has its kind (grouped, split into sub-douars, or dispersed), its households and its people. A douar has its name in Latin where a source writeget_economy~647 tokens
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 mapped, how many are public services, how many are associations in premises of their own, how many are businesses, and how many permanent jobget_housing~466 tokens
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 they are (villa, apartment, traditional or modern Moroccan house, slum, rural-type), how old they are, what their walls and roofs are madeget_indicators~1012 tokens
HCP's census figures for Morocco or any région, province or préfecture, cercle, commune or arrondissement: age, marital status, fertility, disability, schooling, illiteracy, the languages people read and write and the local languages they use, education, work, employment status and how people get toget_insights~427 tokens
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, or far from its province's figure. Each comes with its context as numbers, worked out from the census: the commune's other figures here, theget_neighbourhoods~248 tokens
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 point, where its name comes from, and the postcodes Poste Maroc lists under it; and the commune's postcodes. The census publishes nothing bget_unit~262 tokens
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 the ones directly under it, named: a région's provinces, a province's cercles. This is the tool for a question about a unit above the communlist_communes~623 tokens
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, with no need to look them up one by one. Communes filtered by région, province or préfecture, cercle, type or population, 50 to a page, in csearch~344 tokens
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 known by: Fez finds Fès, Mogador finds Essaouira. A neighbourhood's name finds the arrondissement or commune it's in, with matched neighbourhosearch_douars~250 tokens
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 both find the douar of Asni. HCP names douars in Arabic only; the Latin name comes from a source where one writes it, and is otherwise spelt
Browse
Related MCP servers
- UpGrowth: business data for Algeria, Tunisia and Morocco
Official business data for Algeria, Tunisia and Morocco: activity codes, legal forms, tax, gazettes. - France Geodata
France Geodata MCP — point/radius questions on French public geodata. - CodePostalPro
Postal lookups for 120 countries with cited sources; deep US tier: demographics, climate, area codes - TrustyData
French address quality, geocoding, routing, company lookup & catchment stats (BAN, INSEE, OSM). - Kuongeo
Japan: next bus/tram/boat from 26 places, RTK bases, JMA warnings, municipality facts. No key. - CaLesVaut
Is this listing too expensive? French property sales (DVF), crime, rents, risks, schools - Invokely official statistics
Query official statistics through MCP, with periods, places and citable sources in every answer. - IranTools (paid)
Persian and Iranian utilities for agents plus text tooling. Paid via x402 or MPP.
Badge for your README
[](https://aptlynx.net/servers/io.github.zkousama/morocco-communes)
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents