# Morocco communes (remote · communes.pages.dev)

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

- Trust score: 65/100 (medium)
- Registry status: active
- Liveness: live
- Owner verified: no
- Last scored: 2026-09-26

## Components

- remote · `communes.pages.dev`: 65/100 (this document), [markdown](https://verifymcp.io/servers/zkousama-morocco-communes/communes.md), [page](https://verifymcp.io/servers/zkousama-morocco-communes/communes)

## Channel facts

- Endpoint: `https://communes.pages.dev/mcp`
- Transports: `streamable-http`
- Auth: `none`
- Version: `1.8.0`

## Trust breakdown

How this component scores in each security and reliability category. Every signal is checked automatically against the live server, and we only credit what we can confirm. Scores are 0–100 per category. Scoring method: https://verifymcp.io/docs/scoring (what has changed: https://verifymcp.io/docs/scoring/changelog)

Scored 2026-09-26.

- **Endpoint Security**: 57/100
  - The endpoint's TLS certificate is valid, in date, and uses a strong key.
  - Authorisation not fully verified: no authorisation is required to call this server, and 9 tool(s) never declared a destructiveHint. The MCP spec treats an absent hint as destructive by default, so we cannot call this surface safe.
  - HTTPS is enforced; there's no plaintext access path.
  - HSTS check failed: the Strict-Transport-Security header is absent.
  - DNSSEC check failed: this domain isn't protected by DNSSEC.
- **Transport & Reachability**: 100/100
  - Verified streamable-http transport via a live MCP handshake.
- **Schema Quality & AI Usability**: 65/100
  - AI-judged instruction clarity (excellent).
  - Context-footprint check failed: tool/resource definitions use about 2608 tokens (~289/item across 9 items; 9 tools + 0 resources), over budget; trim descriptions and params.
  - Usage-examples check failed: none of the tools include examples.
- **Stability & Change Management**: 17/100
  - Stability observed for 5 of 30 days with no destabilising changes; credit accrues until the full window elapses.
- **Tool Coverage**: 100/100
  - 100% of tools have a non-trivial description (not blank, and not just the tool's name).
  - 100% of tool parameters carry a description.
  - Structured output schemas are declared (100% of tools); any adoption earns full credit.
- **Tool Safety**: 100/100
  - No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.
  - We read all 9 captured tool definition(s), and no name or description among them implies an irreversible operation.
  - An AI judge read all 10 captured unit(s) of tool text and found none that tries to manipulate the model reading it.
- **Capabilities**: 100/100
  - Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.

## Install

### How do I install the Morocco communes MCP server?

Morocco communes is a hosted endpoint at https://communes.pages.dev/mcp, so there is nothing to install locally. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

### Claude

```bash
claude mcp add --transport http zkousama-morocco-communes 'https://communes.pages.dev/mcp'
```

### Cursor

```json
{
  "mcpServers": {
    "zkousama-morocco-communes": {
      "url": "https://communes.pages.dev/mcp"
    }
  }
}
```

### VS Code

```json
{
  "servers": {
    "zkousama-morocco-communes": {
      "type": "http",
      "url": "https://communes.pages.dev/mcp"
    }
  }
}
```

### Codex

```toml
[mcp_servers.zkousama-morocco-communes]
url = "https://communes.pages.dev/mcp"
```

### opencode

```json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "zkousama-morocco-communes": {
      "type": "remote",
      "url": "https://communes.pages.dev/mcp",
      "enabled": true
    }
  }
}
```

### OpenClaw

```bash
openclaw mcp add zkousama-morocco-communes --url 'https://communes.pages.dev/mcp' --transport streamable-http
```

### Hermes

```yaml
mcp_servers:
  zkousama-morocco-communes:
    url: "https://communes.pages.dev/mcp"
```

### Netclaw

```json
{
  "McpServers": {
    "zkousama-morocco-communes": {
      "Transport": "http",
      "Url": "https://communes.pages.dev/mcp"
    }
  }
}
```

### Vellum

```bash
assistant mcp add zkousama-morocco-communes -t streamable-http -u 'https://communes.pages.dev/mcp'
```

### Other

```json
{
  "mcpServers": {
    "zkousama-morocco-communes": {
      "type": "http",
      "url": "https://communes.pages.dev/mcp"
    }
  }
}
```

The mcpServers block is a cross-client convention. Remote transports vary, so check your client's docs.

## Changelog

Every change recorded for this component, newest first. Days that predate change tracking, or that we cannot explain, say so: "we were watching and nothing happened" and "we were not watching" are different claims.

### 2026-09-26 (score 65, +1)

No change was recorded against any check on this day. Stability & Change Management went from 13 to 17. That category is still filling its 30-day observation window: 4 days of observed history at the previous scan, 5 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-09-25 (score 64, 0)

- [functional] We updated how we score, so this day's move reflects our rubric, not a change to the server

### 2026-09-24 (score 64, +1)

No change was recorded against any check on this day. Stability & Change Management went from 7 to 10. That category is still filling its 30-day observation window: 2 days of observed history at the previous scan, 3 at this one. The score rises as the window fills, whether or not the server changes.

### 2026-09-22 (score 63, 0)

- [functional improvement] Stability: unverified → 0.03
- [cosmetic] “search” reworded the description of “query”

### 2026-09-21 (score 63)

First indexed and scored.

## MCP tools (9)

### `search` (~141 tokens)

Search Moroccan administrative units

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.

Input parameters:

- `levels` (array): Only these levels. Every level when left out.
- `limit` (integer): How many results. 10 when left out, at most 50.
- `query` (string, required): The name to look for, in French, Arabic or as a slug, or a unit's code.

Output parameters:

- `results` (array)

### `get_commune` (~119 tokens)

Get one 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).

Input parameters:

- `id` (string, required): An HCP code, the code as digits, or a slug.

Output parameters:

- `arrondissements` (array): Casablanca, Rabat, Fès, Marrakech, Salé and Tanger's arrondissements, most populous first; empty elsewhere.
- `commune` (object)
- `neighbours` (array): The communes this one borders, longest shared boundary first. Measured on the OpenStreetMap boundaries, so it is under ODbL.

### `communes_near` (~115 tokens)

Communes near a point

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.

Input parameters:

- `lat` (number, required): Latitude, in degrees.
- `limit` (integer): How many results. 10 when left out, at most 50.
- `lng` (number, required): Longitude, in degrees.
- `radius_km` (number): Radius in km. 10 when left out, at most 100.

Output parameters:

- `results` (array)

### `commune_at` (~112 tokens)

Commune at a point

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.

Input parameters:

- `lat` (number, required): Latitude, in degrees.
- `lng` (number, required): Longitude, in degrees.

Output parameters:

- `arrondissement`
- `commune` (object)

### `list_communes` (~385 tokens)

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.

Input parameters:

- `cercle` (string): A cercle, by code or slug.
- `max_population` (integer): Only communes with at most this many people in 2024.
- `min_population` (integer): Only communes with at least this many people in 2024.
- `page` (integer): Page number, from 1.
- `province` (string): A province or préfecture, by code or slug.
- `region` (string): A région, by code or slug.
- `sort` (string): A field to order by: code, name, population, change, density, area, or a census indicator by its path, such as labour.unemploymentRate or amenities.runningWater, as get_indicators names them. Put 201…
- `type` (string): Urban or rural communes only.

Output parameters:

- `communes` (array)
- `page` (number)
- `total` (number)
- `total_pages` (number)

### `get_unit` (~171 tokens)

A région, province or cercle

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.

Input parameters:

- `level` (string): The level, where a name is shared: Tiznit is a commune and a province, and a name alone means the commune.
- `unit` (string, required): A région, province, préfecture or cercle, by code or slug.

Output parameters:

- `children` (array): The units directly under it. Empty for a cercle, whose communes come from list_communes.
- `counts` (object): How many units of each level this one holds.
- `unit` (object)

### `get_indicators` (~616 tokens)

Census 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.

Input parameters:

- `area` (string): The whole unit (total), its urban or rural part, or each of the three. total when left out.
- `census` (string): Which census. 2024 when left out. both gives the two together, to see what changed.
- `level` (string): With a unit, the level it's at, where a name is shared: Tiznit is a commune and a province, and a name alone means the commune. Without a unit, region, province or arrondissement gives every one of t…
- `sex` (string): Everyone (all), men, women, or each of the three. all when left out. Household figures have no sex.
- `topics` (array): Only these topics. Every topic when left out. Two are easy to confuse: labour holds the labour force, the activity rate and the unemployment rate, while employmentStatus is how the people in work are…
- `unit` (string): A région, province or préfecture, cercle, commune or arrondissement, by code or slug. Morocco as a whole when left out.

Output parameters:

- `results` (array)

### `get_economy` (~441 tokens)

Economic establishments

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.

Input parameters:

- `level` (string): With a unit, the level it's at, where a name is shared: Tiznit is a commune and a province, and a name alone means the commune. Without a unit, region, province or arrondissement gives every one of t…
- `topics` (array): Only these topics. Every topic when left out.
- `unit` (string): A région, province or préfecture, cercle, commune or arrondissement, by code or slug. Morocco as a whole when left out.

Output parameters:

- `results` (array)

### `get_housing` (~237 tokens)

Urban housing stock

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.

Input parameters:

- `level` (string): With a unit, the level it's at. Without one, region, province or arrondissement gives every one of that level.
- `topics` (array): Only these topics. Every topic when left out.
- `unit` (string): A unit by code or slug. Morocco as a whole when left out.

Output parameters:

- `results` (array)

## Diagnostics

Captured diagnostic sections: TLS, DNSSEC, Authorisation, Transports. The full working is on the page: https://verifymcp.io/servers/zkousama-morocco-communes/communes#diagnostics

## Score history

- 2026-09-26: 65
- 2026-09-25: 64
- 2026-09-24: 64
- 2026-09-23: 63
- 2026-09-22: 63
- 2026-09-21: 63

## Common questions

### What is the Morocco communes MCP server?

Morocco communes is an MCP server listed in the public MCP registry as io.github.zkousama/morocco-communes. Morocco's régions, provinces and communes: HCP codes, names, census population and boundaries. This page covers its hosted endpoint (https://communes.pages.dev/mcp).

### Is the Morocco communes MCP server safe to use?

Morocco communes scores 65 out of 100 on VerifyMCP. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

### What tools does the Morocco communes MCP server expose?

Morocco communes exposes 9 tools: search, get_commune, communes_near, commune_at, list_communes, and 4 more. Their descriptions and schemas cost roughly 2,337 tokens of context every time the server is loaded.

### Does the Morocco communes MCP server require authentication?

No. We connected to Morocco communes without credentials and it answered, so anything it exposes is reachable by anyone who knows the address.

### Is the Morocco communes MCP server still maintained?

Morocco communes is still listed as active in the MCP registry. We last reached this channel on 26 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

## Links

- Remote endpoint: https://communes.pages.dev/mcp
- Repository: https://github.com/zkousama/morocco-communes
- Changelog RSS feed: https://verifymcp.io/servers/zkousama-morocco-communes/communes.xml
- Changelog JSON feed: https://verifymcp.io/servers/zkousama-morocco-communes/communes.json
- HTML version of this page: https://verifymcp.io/servers/zkousama-morocco-communes/communes
