Morocco communes — Claude Code MCP server: features and setup
Give an AI agent access to Morocco’s administrative areas, census figures and boundaries. Useful for looking up communes and comparing their recorded statistics.
claude mcp add --transport http morocco-communes https://communes.pages.dev/mcpWhat Morocco communes does
Morocco communes provides information on Morocco’s regions, provinces, communes and other administrative divisions. The dataset includes HCP codes, French and Arabic names, census figures from 2014 and 2024, counts of economic establishments, and boundaries sourced from OpenStreetMap. The MCP server makes this information available to an agent; an HTTP API is provided as well.
Census indicators cover population, age, education, languages, work and housing. The collection also includes rural douars and a crosswalk between administrative units in the two census years. Licensing varies by dataset section. Geometry and some OpenStreetMap-derived fields use ODbL, so check those terms before reusing them.
Claude Code connects over HTTP with claude mcp add. Codex and Cursor are among the other listed platforms. The two census vintages make year-to-year comparisons possible without treating the figures as a single snapshot.
What it helps with
- Find a commune by name or code
- Look up a commune’s census population
- Compare indicators from 2014 and 2024
- Identify neighbouring communes
Example prompts for the agent
- Find the commune of Tanger and show its code and population.
- Compare this commune’s employment figures in the 2014 and 2024 censuses.
- Which communes border this one? Show their boundaries.
How to install Morocco communes
Platform CLI: remote server
claude mcp add --transport http morocco-communes https://communes.pages.dev/mcpPlatform CLI: remote server
codex mcp add morocco-communes --url https://communes.pages.dev/mcpConfig file
{
"mcpServers": {
"morocco-communes": {
"url": "https://communes.pages.dev/mcp"
}
}
}Config file
{
"servers": {
"morocco-communes": {
"type": "http",
"url": "https://communes.pages.dev/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http morocco-communes https://communes.pages.dev/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Morocco communes
How do I install Morocco communes in Claude Code?
Run claude mcp add --transport http morocco-communes https://communes.pages.dev/mcp. This registers the MCP server over HTTP.
What does Morocco communes do?
It gives an agent access to information about Morocco’s administrative divisions, census indicators and geographic boundaries. Place search is also available.
Which census figures can I compare?
The dataset has indicators for 2014 and 2024, including age, education, languages, work and housing.