API Indonesia README

The full upstream README, mirrored for reference. Install config, tool schemas, adoption signals and our own overview live on the API Indonesia listing page.

API Indonesia examples

Code examples for API Indonesia, a REST API and MCP server for Indonesian public data, built by Khaisa Studio (Khairul Muhtadin).

Agent skill and plugin

This repo is also an installable agent package:

Install in Claude Code

sh
/plugin marketplace add khmuhtadin/api-indonesia-examples
/plugin install api-indonesia --marketplace khmuhtadin/api-indonesia-examples

The plugin adds the api-indonesia MCP server (https://mcp.apiindonesia.id/mcp, 84 tools) plus the api-indonesia skill. Sign in with OAuth when Claude Code prompts you, or export API_INDONESIA_KEY with a key from https://dashboard.apiindonesia.id before you start a session.

Install in Hermes Agent

sh
echo 'API_INDONESIA_KEY=aip_live_xxx' >> ~/.hermes/.env
hermes plugins install https://github.com/khmuhtadin/api-indonesia-examples
hermes plugins enable api-indonesia

Portable packages stay disabled until you enable them. In Hermes Desktop you can also paste the key in the plugin's settings form instead of editing .env. Start a new session (or run /reload-mcp) and the api-indonesia MCP tools are available, along with the api-indonesia:api-indonesia skill.

Disclosure:

  • Every tool call, with its arguments, goes to API Indonesia's hosted server (mcp.apiindonesia.id). The tool list is served by that server at runtime.
  • Each successful call spends credits from the account that owns the key. Failed calls are free.
  • The key is read from API_INDONESIA_KEY in your Hermes profile .env and sent as an Authorization: Bearer header. The package has no local code, runs no shell commands and stores nothing.
  • All tools are read-only lookups (data queries, format checks and calculators). None of them change anything in your API Indonesia account.

Install in Kiro

Add to Kiro

Or add it to .kiro/settings/mcp.json and sign in when Kiro asks:

config.json
{ "mcpServers": { "api-indonesia": { "url": "https://mcp.apiindonesia.id/mcp" } } }

Install in Cline

bash
cline mcp install api-indonesia --transport http https://mcp.apiindonesia.id/mcp

Cline opens an API Indonesia sign-in page to approve access, and the entry is also in the Cline marketplace (cline/marketplace#437).

What's in the API

30 API products, including:

  • Wilayah: 38 provinsi, 514 kabupaten/kota, 7,285 kecamatan, 83,762 desa/kelurahan (Kemendagri codes)
  • Kode pos: 83,762 records mapped per desa/kelurahan
  • Hari libur nasional and cuti bersama
  • Jadwal sholat per kabupaten/kota
  • BMKG: gempa terkini, cuaca, peringatan dini
  • Sekolah (93,500+ by NPSN), perguruan tinggi (4,200+), rumah sakit (2,900+)
  • UMP 1997 to 2026 (all 38 provinces for 2026)
  • Kurs, Bank Indonesia exchange rates, Al-Quran, Alkitab, KBBI, plat nomor, halal, BPOM, hijriah, validasi NIK/NPWP/rekening bank, and Rupiah/QRIS utilities

The full endpoint list is in the OpenAPI spec.

Pricing

API Indonesia is pay per successful call with prepaid credits. New accounts get free signup credits, no credit card needed, and failed requests are not charged. Current rates are on https://apiindonesia.id/#harga.

Authentication

Send your key in the x-api-key header:

Terminal
curl -H "x-api-key: YOUR_API_KEY" https://use.apiindonesia.id/api/v1/wilayah/provinsi

The MCP server takes the same key as a bearer token: Authorization: Bearer YOUR_API_KEY.

Never commit a real key. The examples read it from the API_INDONESIA_KEY environment variable.

Examples

FolderWhat it shows
examples/curlShell requests for wilayah, kode pos, hari libur, jadwal sholat, gempa
examples/javascriptfetch (Node 18+ or browser)
examples/pythonrequests
examples/phpcURL extension, no dependencies
examples/n8nUsing the n8n community node
examples/mcpClaude Desktop and Cursor config for the MCP server

server.json is the same entry published to the official MCP Registry.

Privacy and support

What the package sends: tool calls and their arguments go to the hosted server at mcp.apiindonesia.id. No telemetry, no local storage. See the privacy policy for retention and third-party sharing.

License

MIT for the code in this repository. Data returned by the API comes from its original public sources; see https://apiindonesia.id for details.