프로토타입 · 미리 보기: 공식 레지스트리의 모든 서버를 담고 있으며 30분마다 동기화해요. 리뷰와 계정 기능은 다음 단계에서 열려요.
PopNx MCPAI를 쓰는 사람을 위한 MCP 서버 · 쉬운 말로 설명해요

Morocco communes

제작자: zkousama버전 1.9.1i★ –i클라우드에서 실행
레지스트리 이름io.github.zkousama/morocco-communes

설치

개요

제작자가 쓴 설명(영어 원문)

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

PopNx MCP의 세 기둥

이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.

할 수 있는 일

이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.

  • 연결 방식: 클라우드에서 실행
  • 전송 방식: Streamable HTTP
  • 카테고리: 법률 및 정부 데이터

설치

쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.

설치하기 전에

  • 기본 점검: 1개 중 1개 통과
  • 제작자의 서버에서 실행돼요. 내가 요청한 내용은 제작자의 서버를 거쳐요.
  • 레지스트리에 입력해야 할 키가 나와 있지 않아요.

필요한 것

어떤 앱을 쓰세요?

위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.

웹, 데스크톱, 모바일의 Claude에서 쓸 수 있어요:

  1. Settings → Connectors 열기
  2. Add custom connector 누르기
  3. 아래 주소를 붙여 넣고 Add 누르기
  4. 로그인하라고 하면 제작자의 서비스에 로그인하기
SettingsConnectors1+ Add2https://…3
https://communes.pages.dev/mcp

터미널에서 이 명령어를 실행하세요

claude mcp add --transport http morocco-communes https://communes.pages.dev/mcp

Cursor에서 열기

또는 설정을 직접 복사하기

프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요

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

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

VS Code에서 열기

또는 설정을 직접 복사하기

프로젝트의 .vscode/mcp.json에 붙여 넣으세요

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

브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.

ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요:

  1. 웹에서 ChatGPT 열기 → Settings → Connectors (Apps)
  2. Create 또는 Add 누르기(일부 요금제는 먼저 Advanced에서 Developer mode를 켜야 해요)
  3. 아래 주소를 붙여 넣고 이름을 정한 뒤 저장하기
  4. 로그인하라고 하면 제작자의 서비스에 로그인하기
SettingsConnectors1+ Create2https://…3
https://communes.pages.dev/mcp

메뉴 이름은 요금제나 시기에 따라 조금 다를 수 있어요.

선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.

이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.

할 수 있는 일

아직 이 서버의 도구 목록을 읽지 않았어요. 엔드포인트는 차례대로 돌아가며 점검해요.

기본 점검i

누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 8일 점검

  • ✓ 통과

    제작자와 저장소 일치

    레지스트리 이름이 GitHub 계정 zkousama 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요

  • … 아직 점검 안 함

    계속 관리되고 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    라이선스 있음

    아직 GitHub에서 이 저장소를 읽어 오지 않았어요

  • … 아직 점검 안 함

    엔드포인트 응답

    아직 점검하지 않았어요. 엔드포인트는 차례대로 돌아가며 점검해요

  • … 아직 점검 안 함

    OAuth로 로그인

    아직 점검하지 않았어요. 엔드포인트는 차례대로 돌아가며 점검해요

  • … 아직 점검 안 함

    도구 설명에 숨겨진 지시 없음

    아직 점검하지 않았어요. 엔드포인트를 점검할 때 도구 목록을 읽어요

법률 및 정부 데이터 카테고리의 다른 서버와 비교i

  • 이 카테고리의 다른 서버 1746개 중 0%보다 스타가 많아요
  • 이 카테고리의 다른 서버 1746개 중 45%보다 최근에 레지스트리에 공개됐어요
  • 기본 점검 결과가 이 카테고리의 다른 서버 1746개 중 100%와 같거나 더 좋아요

레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.

자주 묻는 질문

Morocco communes, 안전한가요?

해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.

어떤 키나 코드가 필요한가요?

레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.

내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?

제작자의 클라우드에서 실행돼요. 설치 없이 인터넷으로 연결하지만, 보내는 내용은 제작자의 서버를 거쳐요.

아직 관리되고 있나요?

GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.9.1)은 39일 전 레지스트리에 올라왔어요.

어떤 앱에서 쓸 수 있나요?

Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. URL로 연결되기 때문에, 원격 MCP 서버를 지원하는 앱(예: 개발자 모드의 ChatGPT)에서도 쓸 수 있어요.

대신 쓸 수 있는 건 뭐가 있나요?

같은 카테고리에는: SOS.city public record, USVI Public Records, Korean Government Documents (HWPX)

대안

같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.

카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i

SOS.city public record

Public records for every city: permits, alerts, wildfires, laws and funding, linked to the source.

제작자: Proof-Layer초기오늘 업데이트

클라우드에서 실행

USVI Public Records

Search and read U.S. Virgin Islands public records: laws, court records, audits, hearings, reports.

제작자: usvipublicrecords.com초기오늘 업데이트

클라우드에서 실행✓ usvipublicrecords.com

Korean Government Documents (HWPX)

Turns a draft into a Korean government report or press release as HWPX in each ministry's format

제작자: UpstageAI아주 새로움↓ 103/주오늘 업데이트

내 컴퓨터에서 실행

제작자의 README

README 열기

제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.

Morocco communes

An open dataset and HTTP API for Morocco's administrative divisions: 12 régions, 75 provinces and préfectures, 8 préfectures d'arrondissements, 213 cercles, 1,503 communes and 41 arrondissements, with official HCP geographic codes, names in French and Arabic, 2024 and 2014 population, HCP's census figures on age, education, languages, work and housing from both years, the 2024 count of economic establishments, the douars of the rural communes, and boundaries from OpenStreetMap.

HCP publishes the census as spreadsheets. This builds a dataset, an API and a site from them and from OpenStreetMap, and shows the working.

The dataset

data/v1/ is committed and versioned, so you can use it without the API at all. CHANGELOG.md says what each version added; the build refuses a version with no entry in it.

DirectoryHoldsLicence
attributes/every unit, JSON and CSVHCP, on CC BY 4.0 terms
geometry/one TopoJSON per région, and which communes border whichODbL, share-alike
indicators/the census indicators for every unit, 2024 and 2014, JSON and CSVHCP, on CC BY 4.0 terms
economy/the 2024 count of economic establishments for every unit, JSON and CSVHCP, on CC BY 4.0 terms
housing/the 2024 urban housing stock, by dwelling, JSON and CSVHCP, on CC BY 4.0 terms
douars/the 33,189 douars of the rural communes in 2024, each in its fraction, JSON and CSVHCP, on CC BY 4.0 terms
crosswalk/the 2014 ↔ 2024 reconciliationHCP, on CC BY 4.0 terms
insights/each commune's 2024 figures that stand out, with its neighbours and 2014 beside each, JSONthe lines this repository's own; the figures HCP, on CC BY 4.0 terms
sources.jsoneach source's digest, licence and vintage

The licences differ by directory and geometry/ carries its own LICENSE. Five fields on each commune (centroid, bbox, osm, areaKm2 and density) come from OpenStreetMap and are ODbL too; provenance.geometry marks them. Every level has a CSV that opens cleanly in Excel, Arabic included.

Rebuild it with pnpm dataset:build. From the same cache the output is byte-identical.

pnpm build also writes the boundaries as GeoJSON from the TopoJSON above: each commune, and each province and région outlined from its communes. They're served beside it rather than committed.

The API

Three tiers, and which one served a response is in its X-Api-Tier header.

Pre-rendered. 12,723 files written at build time and served straight from Cloudflare Pages, without running any code. Free and unmetered.

GET /api/regions.json                        GET /api/regions/01.json

GET /api/regions/01/provinces.json GET /api/regions/01/communes/page/1.json GET /api/provinces/01.511.json GET /api/provinces/01.511/cercles.json GET /api/cercles/01.511.05.json GET /api/communes/01.511.01.0.json GET /api/communes/page/1.json GET /api/communes/type/urban/page/1.json GET /api/communes/01.511.01.0/arrondissements.json GET /api/communes/09.581.01.07/neighbours.json GET /api/communes/01.511.01.0/indicators.json GET /api/communes/09.581.01.07/economy.json GET /api/communes/09.163.07.17/douars.json GET /api/communes/01.511.01.0/neighbourhoods.json GET /api/arrondissements/01.511.01.05.json GET /api/indicators.json GET /api/economy.json GET /api/version.json GET /data/v1/**

Alias. The query-string and extensionless shapes. A path-keyed asset store can't match on a query string, so the Worker resolves these to the file that already holds the answer and names it in Content-Location:

GET /api/communes?province=01.511&page=1     GET /api/communes?type=urban

GET /api/communes/tanger GET /api/communes/001511010 GET /api/communes/tanger/indicators GET /api/communes/tiznit/economy

Computed. The answers no file holds:

GET /api/search?q=tanger&levels=commune&limit=10

GET /api/douars/search?q=tachdirt GET /api/communes/near?lat=33.5731&lng=-7.5898&radius=15 GET /api/communes/at?lat=35.786&lng=-5.8125 GET /api/communes?province=01.511&type=urban GET /api/communes?sort=-population&min_population=100000 GET /api/communes?region=01&sort=-labour.unemploymentRate GET /api/communes?sort=-economy.establishments.jobs

A list sorts by any of the census indicators, by its path, and each commune it lists then carries the figure it was sorted by. 2014. before the path sorts by the 2014 figure and change. by how far a commune moved between the censuses. An establishment count goes under economy..

Search takes French, Arabic, a slug or a code. It folds the alef variants, ta-marbuta and alef maqsura the names actually carry, and the tatweel and vowel marks they never do but people type anyway. It matches names spelt another way by their consonants, so titwan finds Tétouan and jdida El Jadida. 01.511.01.0, 001511010, 1511010 and tanger all address one commune, and 18 exonyms are listed by hand because no amount of character folding gets from Fez to Fès or from Port Lyautey to Kénitra. A neighbourhood's name finds the commune or arrondissement it's in, and so does a 5-digit postcode. Douars have a search of their own, in Arabic or Latin letters: tachdirt and tashdirt both find تشديرت.

What's counted. The alias and computed routes and the MCP server count their own use in Workers Analytics Engine: the route with its codes taken out, or an MCP message's tool when it called one and its method otherwise, the name an MCP client gives itself, the first word of the User-Agent, the country, the status and how long it took. Pre-rendered files run no code, so they aren't counted. pnpm stats reads it back, with the npm, PyPI and GitHub numbers.

A second store, in D1, counts 5 kinds of row: a search, a place opened, a tool an assistant calls, the name an MCP client gives itself, and a file downloaded. An assistant connecting through the MCP server is counted by the name it gives itself, and each tool it calls by the tool's name and the place it asks about. A row is a day and a handful of categories, and no row holds a key, a cookie or an address that ties it to another. pnpm demand reads it back; the site's /docs/privacy/ page says exactly what's kept.

pnpm deploy:live switches it on. It applies the migration to the live database, builds the site with the most looked-up page read from that database, deploys it, then deploys the nightly rollup Worker. A plain pnpm build doesn't query the database and leaves that page empty. A failed write is swallowed, so pnpm demand a day after the first deploy is how to see rows are arriving.

Every response is enveloped with data, meta and links. Errors are RFC 9457 problem documents, and a well-formed code that names nothing is a 404 while something unsearchable is a 400. CORS is open.

Full reference: api/README.md.

For programs and agents
  • `/api/openapi.json`: an OpenAPI 3.1 description of every route, built from the same module the Worker reads its limits from, so the defaults and bounds it states are the ones enforced. Most agent frameworks turn it into tools directly.
  • `/llms.txt`: a short markdown map of the API and the dataset, in the llmstxt.org shape, for an LLM reading the site.
  • `/mcp`: an MCP server with 13 read-only tools (search, get_commune, get_unit, communes_near, commune_at, list_communes, get_indicators, get_economy, get_housing, get_insights, get_neighbourhoods, get_douars, search_douars), so Claude, Claude Code and other MCP clients can query the data directly, census figures included. The site's /docs/mcp/ page has the setup for each client.
In a form, or offline
  • `/components/commune-picker.js`: a custom element that fills a région, a province and a commune from the static files, so a form posts the commune's HCP code. It's served with open CORS, and /docs/components/ has a React version beside it.
  • `morocco-communes`: the dataset as an npm package, in packages/morocco-communes/. Codes, names, parents and population as ES modules with types, one per level, and without the OpenStreetMap fields, so it carries no ODbL terms. pnpm npm:build builds it from data/v1, and the package takes the dataset's version number.
  • `morocco-communes` on PyPI: the same dataset for analysts, in packages/morocco-communes-py/. The units, both censuses, the establishments and the crosswalk, each table a pandas DataFrame, or a list of dicts with as_frame=False, which needs nothing but the standard library. pnpm py:build builds its data from data/v1, gzipped, and it takes the dataset's version too.

The docs site

site/ is an Astro site in English, French and Arabic, with a light and dark theme and a control to pick either or follow the system. It builds to static HTML: the home page, the standout figures, the compare page, the douars, 11 docs pages (the API reference, the MCP setup, the components, the npm package, the Python package, the downloads, the census figures, a glossary, how the standout figures are picked, how douars are named, and what the site counts), and a page for every région, province and commune, 4,845 pages in all.

The home page opens on a map of every commune, shaded by density, change since 2014, or urban and rural. Hovering one shows its figures and clicking opens its page. A commune's page has its figures and rank, a map of its province, the communes it borders, where its change sits among all of them, and its census figures: an age pyramid of men and women, headline rates beside the women's and the country's, and the languages its people use. A list of every commune filters as you type, in French or Arabic.

Its JavaScript is the map's hover and switch, the list's filter, the playground (a Solid island that queries whatever API it's deployed beside and shows the X-Api-Tier of each response), the picker on the components page, and the copy buttons.

Everything on it that describes the data or the API is generated at build time, by the scripts under site/scripts/:

  • map.ts draws the home map from the TopoJSON the API serves. Each shared border is one arc, simplified once for both of its communes, so the fills meet without slivers. Its colours were checked for contrast and colour-blind separation in both themes.
  • hierarchy.ts builds the code ladder, a real chain from région down to arrondissement.
  • charts.ts computes population change per région, the distribution of commune sizes, how little land half the population lives on, how many communes lost people, and the growth spread of the 207 crosswalked communes against the 1,286 whose code never changed. That last one is the reconciliation checking itself: the two distributions sit almost on top of each other.
  • downloads.ts lists the files under data/v1 with their real sizes, and fails the build on a file that isn't there.
  • reference.ts builds the API reference from buildOpenApi, with each example a real response from the emitted files or the Worker's own functions, and lists the MCP tools by connecting a client to the server. The French and Arabic pages read a translation of each line of the spec, and the build fails when one is missing or left over.

The région, province and commune pages are built from site/src/lib/places.ts, which reads data/v1 once per build: ranks, the communes each one borders, matched on shared boundary points, and small maps drawn the same way as the home map.

The charts are inline SVG and CSS, so they need no JavaScript and no charting library.

The Arabic pages are under /ar/ and read right to left. They lead with each unit's Arabic name and set HCP's Latin spelling beside it, and write numbers the wa

앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요

PopNx에게 묻기