Skip to content
MCP server
Registry

Wilayah Indonesia MCP Server

Indonesian regions (provinsi to desa) with Kemendagri codes: search, details, children, validate.

Wilayah Indonesia scores 66 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 4 tools. Filed under Uncategorized. GitHub shows 0 stars. Package registries report about 96 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by ezkielynagroupMITJavaScript0 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity0 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 0 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "ezkielynagroup-mcp-wilayah-indonesia": {      "command": "npx",      "args": [        "-y",        "mcp-wilayah-indonesia@1.0.0"      ],      "env": {        "WILAYAH_DATA_FILE": ""      }    }  }}

Environment variables

NameRequiredNotes
WILAYAH_DATA_FILEOptionalOptional path to another data file (.json or .json.gz, same shape as the bundled one)

Tools4Tool docs quality grade B

All capabilities
  • Search by name, typo tolerant. Extra words can name a parent ("sukamaju garut"), a leading kab/kota/kec/desa/kel is used as a hint, common short names work (jogja, DKI, jatim, NTT). Filters: tingkat (1–4), jenis (provinsi, kabupaten, kota,

  • Direct children of a code (province → kabupaten/kota → kecamatan → desa/kelurahan), paginated with offset and batas (max 200). Without a code it lists the 38 provinces.

  • Code → name, kind, every parent from the province down, and how many regions sit below it.

  • Checks the format (2/4/6/10 digits, segment rules such as kota = 71–79, kelurahan = 1xxx, desa = 2xxx, desa adat = 3xxx) and whether the code exists. For an unknown code it names the nearest parent that does exist; island codes (xx.xx.4xxxx

About

mcp-wilayah-indonesia

npm CI MCP Registry License: MIT

An MCP server that lets your AI assistant look up Indonesian administrative regions and their Kemendagri codes: provinsi, kabupaten/kota, kecamatan (distrik) and desa/kelurahan. It works offline from a bundled copy of the current code list (Kepmendagri No. 300.2.2-2430 Tahun 2025, 91,599 regions) and tolerates typos.

Example: "What is the Kemendagri code of Kelurahan Kemayoran in Jakarta Pusat, and which BMKG adm4 code do I use for its weather forecast?"

🇮🇩 Bahasa Indonesia: lihat bagian di bawah.

  • One file, no dependencies: only Node.js 18 or newer. The data (≈ 660 KB gzip) ships with the package.
  • No API key, no network calls, no cost. Read-only: the server never writes files.
  • Full path in every answer, e.g. Kel. Kemayoran, Kec. Kemayoran, Kota Adm. Jakarta Pusat, Prov. Daerah Khusus Ibukota Jakarta.
  • Accepts codes with or without dots (31.71.03.1001 or 3171031001).

Tools

ToolWhat it does
cari_wilayahSearch by name, typo tolerant. Extra words can name a parent ("sukamaju garut"), a leading kab/kota/kec/desa/kel is used as a hint, common short names work (jogja, DKI, jatim, NTT). Filters: tingkat (1–4), jenis (provinsi, kabupaten, kota, kecamatan, kelurahan, desa), kode_induk (search inside a parent), batas (max 50). Returns code, kind, level, full path and a score.
detail_kodeCode → name, kind, every parent from the province down, and how many regions sit below it.
daftar_anakDirect children of a code (province → kabupaten/kota → kecamatan → desa/kelurahan), paginated with offset and batas (max 200). Without a code it lists the 38 provinces.
validasi_kodeChecks the format (2/4/6/10 digits, segment rules such as kota = 71–79, kelurahan = 1xxx, desa = 2xxx, desa adat = 3xxx) and whether the code exists. For an unknown code it names the nearest parent that does exist; island codes (xx.xx.4xxxx) are recognised and explained.

Every tool is read-only (readOnlyHint: true, openWorldHint: false). Answers are JSON text plus structuredContent.

Code format

LevelKindDigitsExample
1provinsi232 Jawa Barat
2kabupaten (01–69) / kota (71–79)2.232.73 Kota Bandung
3kecamatan (called distrik in the Papua provinces)2.2.232.73.01 Sukasari
4kelurahan (1xxx) / desa (2xxx; 3xxx for the 14 desa adat in Kab. Jayapura)2.2.2.431.71.03.1001 Kemayoran

Works with BMKG weather (adm4)

BMKG's public weather forecast API identifies villages by the same level-4 Kemendagri code with dots, as the adm4 parameter, e.g. https://api.bmkg.go.id/publik/prakiraan-cuaca?adm4=31.71.03.1001 (checked 11 Nov 2026). Level-4 results therefore include a bmkg_adm4 field. Pair this server with mcp-bmkg so the assistant can go from "weather in Kemayoran tomorrow" to the right village code to the forecast.

Install

With npx (recommended): nothing to install. The configs below run npx -y mcp-wilayah-indonesia, which downloads the package (one .mjs file plus the data file, no dependencies) on first start.

From source:

git clone https://github.com/EzkielynaGroup/mcp-wilayah-indonesia.git
cd mcp-wilayah-indonesia
node --test test/        # optional, offline

Then use "command": "node" with "args": ["/full/path/to/mcp-wilayah-indonesia.mjs"] instead of npx.

On Windows, if the app cannot start npx, use "command": "cmd" with "args": ["/c", "npx", "-y", "mcp-wilayah-indonesia"]. Write paths in JSON with forward slashes (C:/Users/you/mcp-wilayah-indonesia/mcp-wilayah-indonesia.mjs) or double backslashes.

Claude Desktop

Settings → Developer → Edit Config (claude_desktop_config.json), then fully quit and reopen Claude Desktop.

{
  "mcpServers": {
    "wilayah-indonesia": {
      "command": "npx",
      "args": ["-y", "mcp-wilayah-indonesia"]
    }
  }
}

Claude Code

claude mcp add wilayah-indonesia -- npx -y mcp-wilayah-indonesia

Add --scope user to make it available in every project. Check with claude mcp list.

Cursor

~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project), same JSON as Claude Desktop.

OpenCode

opencode.json in the project, or ~/.config/opencode/opencode.json for all projects.

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "wilayah-indonesia": {
      "type": "local",
      "command": ["npx", "-y", "mcp-wilayah-indonesia"],
      "enabled": true
    }
  }
}

Configuration (environment)

VariableRequiredDefaultNotes
WILAYAH_DATA_FILEnobundled data/wilayah.json.gzUse another data file (.json or .json.gz) with the same shape, e.g. a newer build made with scripts/build-data.mjs.

Safety and limits

  • Offline and read-only: no network requests, no file writes. Logs go to stderr; stdout carries only MCP messages.
  • Input limits: names up to 200 characters, up to 50 search results and 200 children per page.
  • Errors come back as short tool errors (Indonesian + English) without stack traces or local paths.
  • The data is a snapshot. Codes and names change when regions split or are renamed; check the decree itself for legal or administrative use.

Data source and license

Legal basisKeputusan Menteri Dalam Negeri No. 300.2.2-2430 Tahun 2025 (amends No. 300.2.2-2138 Tahun 2025), as stated by the upstream dataset
Datasetcahyadsn/wilayah, file db/wilayah.sql, commit d68e8d5 (last data change 13 Feb 2026), downloaded 11 Nov 2026
Dataset licenseMIT, Copyright (c) 2017-2025 Cahya DSN. The full notice ships as data/LICENSE-DATA.txt.
Contents38 provinsi, 416 kabupaten, 98 kota, 7,285 kecamatan, 8,496 kelurahan, 75,266 desa (91,599 rows). These totals were checked against the table in the upstream README.
ChangesConverted to compact JSON + gzip; 5 names had a trailing space removed. Nothing else changed.

Notes: the comment header inside the upstream SQL file still mentions No. 300.2.2-2138 while the upstream README and its change notes say the data follows No. 300.2.2-2430; we follow the README. The province name for Jakarta is kept as it appears in the list (Daerah Khusus Ibukota Jakarta). This project has not compared every row against the decree PDF itself.

To rebuild after an upstream update:

curl -sL -o /tmp/wilayah.sql https://raw.githubusercontent.com/cahyadsn/wilayah/master/db/wilayah.sql
node scripts/build-data.mjs /tmp/wilayah.sql --commit <upstream sha> --date <YYYY-MM-DD>
node --test test/

FAQ

What is the Kemendagri code of my village (kode desa / kode kelurahan)? Ask your assistant with this server enabled, e.g. "kode wilayah Desa Sukamaju, Kec. Cilawu, Garut". cari_wilayah returns the 10-digit code (32.05.19.2014) and the full path.

Is this the same code BMKG uses for weather (adm4)? Yes. BMKG's forecast API takes the level-4 Kemendagri code with dots as adm4, so bmkg_adm4 can be passed straight to it or to mcp-bmkg.

How many provinces, regencies and villages does Indonesia have in the current list? Per Kepmendagri 300.2.2-2430/2025: 38 provinces, 416 kabupaten, 98 kota, 7,285 kecamatan, 8,496 kelurahan and 75,266 desa.

Is this the same as the postal code (kode pos) or the BPS code? No. Kemendagri region codes are different from postal codes, and from BPS (statistics) codes below the province level, which can differ (for example Kota Jakarta Pusat). This server only knows Kemendagri codes.

Does it need internet or an API key? No. The data is bundled; after npx has downloaded the package once, everything runs locally and costs nothing.

Is this data published by the government? The codes come from a Kemendagri decree, but this package uses an MIT-licensed community compilation of it, not a government service. For legal or administrative documents, check the decree published by Kemendagri.

Development

node --test test/

11 tests spawn the server over stdio against a 46-row fixture taken from the real data (every tool, filters, typos, pagination, error paths, broken data files) and check that the bundled full list loads with the published totals. No network.

License

Code: MIT, Copyright (c) 2026 Ezekiel Lieberhart (Ezkielyna). Data: MIT, Copyright (c) 2017-2025 Cahya DSN (see data/LICENSE-DATA.txt). This project is not affiliated with Kemendagri, BMKG or the upstream dataset author.

Made by Ezkielyna, an independent AI API gateway for Indonesian developers (QRIS).


Bahasa Indonesia

Server MCP agar asisten AI (Claude Desktop, Claude Code, Cursor, OpenCode, dan klien MCP lain) bisa mencari wilayah administrasi Indonesia beserta kode Kemendagri-nya: provinsi, kabupaten/kota, kecamatan (distrik) dan desa/kelurahan. Berjalan offline dari salinan daftar kode terbaru (Kepmendagri No. 300.2.2-2430 Tahun 2025, 91.599 wilayah) dan tahan salah ketik.

Contoh pertanyaan: "Apa kode wilayah Kelurahan Kemayoran, Jakarta Pusat? Kode adm4 BMKG-nya apa?"

  • Cukup Node.js 18+, tanpa dependensi, tanpa API key, tanpa internet setelah paket terunduh, gratis.
  • Setiap hasil memuat path lengkap, misalnya Desa Sukamaju, Kec. Cilawu, Kab. Garut, Prov. Jawa Barat.
  • Kode boleh ditulis dengan atau tanpa titik (31.71.03.1001 atau 3171031001).

Tool

ToolFungsi
cari_wilayahCari berdasarkan nama (tahan salah ketik). Kata tambahan bisa berupa nama induk ("sukamaju garut"); awalan kab/kota/kec/desa/kel dipakai sebagai petunjuk; singkatan umum dikenali (jogja, DKI, jatim, NTT). Filter: tingkat (1–4), jenis, kode_induk, batas (maks 50).
detail_kodeKode → nama, jenis, semua induk dari provinsi ke bawah, dan jumlah wilayah di bawahnya.
daftar_anakDaftar wilayah satu tingkat di bawah kode, dengan halaman (offset, batas maks 200). Tanpa kode: 38 provinsi.
validasi_kodeCek format (2/4/6/10 digit, kota = 71–79, kelurahan = 1xxx, desa = 2xxx, desa adat = 3xxx) dan apakah kode ada. Untuk kode yang tidak ada, disebutkan induk terdekat yang ada. Kode pulau (xx.xx.4xxxx) dikenali.

Pasangan dengan BMKG

API prakiraan cuaca publik BMKG memakai kode desa/kelurahan Kemendagri bertitik sebagai parameter adm4, misalnya https://api.bmkg.go.id/publik/prakiraan-cuaca?adm4=31.71.03.1001. Hasil tingkat 4 punya kolom bmkg_adm4. Pakai bersama mcp-bmkg: asisten mencari kode desa di sini, lalu mengambil prakiraan cuacanya di sana.

Pasang

Tambahkan ke konfigurasi aplikasi (sama seperti contoh di atas):

{
  "mcpServers": {
    "wilayah-indonesia": { "command": "npx", "args": ["-y", "mcp-wilayah-indonesia"] }
  }
}

Claude Code: claude mcp add wilayah-indonesia -- npx -y mcp-wilayah-indonesia. Di Windows, bila npx tidak jalan, pakai "command": "cmd" dan "args": ["/c", "npx", "-y", "mcp-wilayah-indonesia"].

Sumber data dan lisensi

Data diambil dari repositori cahyadsn/wilayah (lisensi MIT, Copyright (c) 2017-2025 Cahya DSN), file db/wilayah.sql commit d68e8d5 (perubahan data terakhir 13 Feb 2026, diunduh 11 Nov 2026), yang menurut README-nya mengikuti Kepmendagri No. 300.2.2-2430 Tahun 2025. Jumlahnya cocok dengan tabel di README sumber: 38 provinsi, 416 kabupaten, 98 kota, 7.285 kecamatan, 8.496 kelurahan, 75.266 desa. Kami tidak mencocokkan setiap baris dengan PDF Kepmendagri. Untuk keperluan hukum atau administrasi, rujuk dokumen Kepmendagri yang diterbitkan Kemendagri.

Tanya jawab

  • Bagaimana cara cari kode desa? Tanyakan ke asisten, misalnya "kode wilayah Desa Sukamaju Cilawu Garut"; cari_wilayah memberi kode 10 digit dan path lengkap.
  • Apakah sama dengan kode pos? Tidak. Kode wilayah Kemendagri berbeda dengan kode pos dan kode BPS.
  • Perlu internet atau API key? Tidak. Data ikut dalam paket dan semuanya gratis.

Kode: MIT. Data: MIT (Cahya DSN). Dibuat oleh Ezkielyna, gateway API AI independen untuk developer Indonesia (bayar pakai QRIS).


Part of the Ezkielyna developer toolkit

Open-source tools from Ezkielyna, an independent OpenAI- and Anthropic-compatible AI API gateway (pay with QRIS, USDT or Binance Pay; no credit card).

No API key neededWith an Ezkielyna key
mcp-bmkg · mcp-wilayah-indonesia · mcp-hari-libur-indonesia · mcp-rupiah · mcp-qris · ai-model-status-mcpezkielyna-mcp · ezkielyna-image-mcp · ezkielyna-audio-mcp · n8n-nodes-ezkielyna

More: all repositories · awesome-mcp-indonesia · awesome-ai-indonesia

Frequently asked questions

What is Wilayah Indonesia MCP Server?

Indonesian regions (provinsi to desa) with Kemendagri codes: search, details, children, validate.

How do I install Wilayah Indonesia MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Wilayah Indonesia MCP Server runs locally from the npm package mcp-wilayah-indonesia with the command npx -y mcp-wilayah-indonesia@1.0.0.

Is Wilayah Indonesia MCP Server free and open source?

Yes. Wilayah Indonesia MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Wilayah Indonesia MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Wilayah Indonesia MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Wilayah Indonesia MCP Server provide?

Wilayah Indonesia MCP Server provides 4 tools: cari_wilayah, daftar_anak, detail_kode, and validasi_kode. See the full tool list for descriptions and parameters.

How is Wilayah Indonesia MCP Server's trust score calculated?

Wilayah Indonesia MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server