mcpbeat Sign in

Morocco communes MCP Server

not responding

Morocco communes is listed as active in the registry but did not answer our last check. It exposes 9 tools. Last commit 22 Sep 2026.

Morocco's régions, provinces and communes: HCP codes, names, census population and boundaries

Uptime history 15 hours of history · worst hour 33%
15 hours agonow
87.0%
Uptime 24h
47 of 54 checks
9
Tools
read from the server
235 ms
Response time
average over 24h
0
Stars
last commit 22 Sep 2026

Morocco communes does not always answer

Over the last week it answered 87.0% of our checks. We check every 15 minutes, so you hear about the next outage within the hour — not from your users.

Three servers free · no card

Connect this server

Endpoint below is the one we actually reach during checks — not the one copied from a README. Last verified 10 min ago.

run in your terminal
claude mcp add morocco-communes --transport http https://communes.pages.dev/mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "morocco-communes": {
      "url": "https://communes.pages.dev/mcp"
    }
  }
}
~/.codex/config.toml
[mcp_servers.morocco-communes]
url = "https://communes.pages.dev/mcp"
.cursor/mcp.json
{
  "mcpServers": {
    "morocco-communes": {
      "url": "https://communes.pages.dev/mcp"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "morocco-communes": {
      "url": "https://communes.pages.dev/mcp"
    }
  }
}

Available tools 9

Read directly from the server with tools/list, grouped by what they act on. If a tool disappears, we record the date.

commune
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 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 about 88 km² between Ifrane and Boulemane.
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 much boundary it shares with each, and in the 6 cities divided into them, its arrondissements with their population. Identify it by HCP code (01.511.01.0), the code as digits, or a slug (tanger).
communes
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 the point: commune_at gives that one.
list_communes
Communes filtered by région, province or préfecture, cercle, type or population, 50 to a page, in code order or sorted by name, population, change since 2014, density, area, any census indicator or any establishment count. Filters combine; each unit can be given by code or slug. With no filter it lists every commune, so sort: "-population" alone gives the largest in the country.
economy
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 mapped, how many are public services, how many are associations in premises of their own, how many are businesses, and how many permanent jobs those businesses hold. The businesses are split three ways, each covering all of them: by sector (industry, construction, commerce, services), by how many people work there (1, 2-3, 4-9, 10-49, 50 and over), and by when they were founded (before 1956 through 2020 and later). The weekly souks in use are counted beside them and are not part of the total. Reading them: every figure is a count, taken during the census by field teams who mapped each establishment. Farming is out, the workbook counts every sector but agriculture, and the jobs are the permanent ones. Ranking and comparing: to order communes by one of these, call list_communes with sort set to its path, such as economy.establishments.jobs, or by one of the 3 it works out from them: economy.per1000.establishments, economy.per1000.jobs, economy.perBusiness.jobs. To compare the régions, the provinces or the arrondissements, give level without a unit and get them all in one call. Casablanca and the 5 other cities divided into arrondissements are counted by arrondissement, so their figures are the sum of those, marked basis: arrondissement_sum. Say so when you report one.
housing
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 they are (villa, apartment, traditional or modern Moroccan house, slum, rural-type), how old they are, what their walls and roofs are made of, how many are on the public electricity, water and sewerage networks, and HCP's housing shortfall. Every figure but the count is a percentage of that unit's urban dwellings. This counts dwellings, not households: a vacant flat is here and in nobody's census record, and get_indicators describes the dwelling each household lives in, for the whole country rather than the towns. A unit with no urban area has nothing here.
indicators
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, illiteracy, the languages people read and write and the local languages they use, education, work, employment status and how people get to work, and for households their size, dwelling, occupancy, amenities, wastewater, waste and cooking fuel. Reading them: shares and rates are percentages from 0 to 100. Null means HCP publishes no figure there. Most come from the long questionnaire, which went to a random 20% of households in communes of 2,000 households or more, so there they're estimates. Ranking and comparing: to order communes by one figure, call list_communes with sort set to its path. To compare the régions, the provinces or the arrondissements, give level without a unit and get them all in one call. The 2014 census is here too, under census. Age, education, local languages, illiteracy, fertility, disability, work, the ways of getting to work, dwellings, amenities, wastewater and waste ask what 2024 asks and can be read against it. Where people work and how children get to school are 2014 only. Five topics changed and can't be subtracted: marital status covered everyone rather than people aged 15 and over, schooling ages 7 to 12 rather than 6 to 11, reading and writing was asked as combinations of languages rather than one at a time, a household counted under every cooking fuel it used, and the employment shares took in unemployed people who had worked before. A unit the 2014 census didn't count has null there, Casablanca and the 5 other cities with arrondissements among them, since 2014 published those by arrondissement.
search
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 known by: Fez finds Fès, Mogador finds Essaouira. Returns codes; pass a commune's code to get_commune for its population and parents.
unit
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 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 commune, such as how many cercles a province has. For a commune or an arrondissement, call get_commune; to list a unit's communes, call list_communes with that unit.

Endpoints

URLTransportStateLatencyChecked
https://communes.pages.dev/mcp streamable-http answering 8016 ms 10 min ago

Alternatives to Morocco communes

same job, measured the same way
UK Constituencies MCP Server from MCPBundles
by mcpbundles

Search UK parliamentary constituencies by name, get boundaries and ONS codes

answering
Italy OpenData
by stucchi

Italian open data: municipalities, provinces, regions, postal codes, coordinates.

73 installs/wk local only
Quantaroute Geocoder
by mapdevsaikat

Geocode addresses, lookup administrative boundaries, and process DigiPin codes for India

24 installs/wk local only
Readyorai
by tedoneobichajavascript

Zero-cost MCP server for local code inspection and best-practice recommendations

30 installs/wk local only
Postal Lookup MCP
by lulu-the-narwhal

Free, keyless postal/ZIP code lookup: place name(s), state/region, and coordinates.

1 tools answering
Code Auditor MCP
by benahammond

Code Quality Auditor: Analyze code for SOLID principles, DRY violations, and more

1 545 installs/wk local only
Datahub Countries MCP
by mrfentmen

Country codes, names, and regions from the DataHub country catalog. No key required.

local only
Boltwork
by squidboy30

AI services via Bitcoin Lightning — PDF summarisation, code review, translation and more.

180 installs/wk local only

Morocco communes — questions

Answers built from our own checks of this server.

What can Morocco communes do?
It exposes 9 tools, read directly from the server on our last check. Among them: commune_at, communes_near, get_commune, get_economy, get_housing, get_indicators and 3 more. The full list with descriptions is on this page — we take it from the server itself via tools/list, not from a README. How MCP servers expose tools in the first place →
What is Morocco communes mostly used for?
Its tools cluster around commune and communes. That is what this server is built to work with — the grouping comes from the actual tool names, not from a category we assigned.
Is Morocco communes working right now?
We send a real MCP handshake every 15 minutes. Over the last 24 hours 47 of 54 checks got a reply (87.0%), average response time 235 ms. The bar chart above shows every period we have measured.
The registry lists Morocco communes as active — why does it not respond?
The official MCP registry stores what the author submitted; it does not verify that the server still runs. We check the endpoint ourselves, and this one does not answer. Catalogues that copy the registry without checking will show it as working.
How do I connect Morocco communes?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It is a remote server, so there is nothing to install — the client connects to the address.
Does Morocco communes need an API key?
No. Morocco communes completed a full MCP handshake with us as an anonymous client and listed its tools without asking for anything. All 9 of them are readable on this page. This is what we observed, not what the docs claim.
How fast is Morocco communes?
It answers our handshake in 235 ms on average, which is faster than 64% of all working MCP servers we measure. The comparison comes from our own checks across the whole registry, every 15 minutes.
Is Morocco communes open source?
Yes — it is published under the MIT licence, written in TypeScript and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.