bps-webapi-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
BPS WebAPI MCP Server ๐ฎ๐ฉ
Menghubungkan Claude langsung ke data statistik resmi BPS Indonesia via Model Context Protocol (MCP).
Dengan server ini, Claude bisa menjawab pertanyaan seperti:
"Berapa nilai ekspor kopi Indonesia ke Amerika Serikat pada Agustus 2025?"
"Tunjukkan data inflasi Indonesia tahun 2024 per bulan"
"Apa indikator kemiskinan terbaru nasional?"
"Cari publikasi BPS tentang ketenagakerjaan 2024"
...semua langsung dari sumber resmi, tanpa halusinasi!
Prasyarat
Node.js โฅ 18
Token API BPS โ daftar di webapi.bps.go.id
Claude Desktop (untuk integrasi langsung)
Related MCP server: mcp-singstat-sg
Instalasi
# Clone / copy folder ini
cd bps-webapi-mcp
# Install dependencies
npm installKonfigurasi Claude Desktop
Tambahkan ke file konfigurasi Claude Desktop:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bps-webapi": {
"command": "node",
"args": ["/GANTI/DENGAN/PATH/ABSOLUT/bps-mcp/index.js"],
"env": {
"BPS_API_KEY": "TOKEN_API_BPS_ANDA_DISINI"
}
}
}
}โ ๏ธ Ganti path dan token sesuai kondisi lokal. Restart Claude Desktop setelah edit.
Tools yang Tersedia (14 tools)
๐ข Data Statistik Utama
Tool | Deskripsi |
| Utama โ ambil angka statistik dari tabel dinamis (PDB, inflasi, kemiskinan, dll) |
| Utama โ data ekspor/impor berdasarkan kode HS, negara, periode |
| Indikator strategis nasional/provinsi (IPM, Gini, dll) |
| Cari var_id dataset dengan kata kunci |
| Daftar ID tahun/periode yang valid |
| Dimensi baris (wilayah, kategori, dll) |
๐ Dokumen & Publikasi
Tool | Deskripsi |
| Daftar Berita Resmi Statistik (BRS) terbaru |
| Detail + abstrak satu BRS |
| Daftar buku/publikasi statistik |
| Daftar infografis statistik |
| Berita dari website BPS |
๐๏ธ Referensi
Tool | Deskripsi |
| Kode domain semua wilayah BPS |
| Kelompok topik statistik |
| Definisi resmi istilah statistik |
๐ SIMDASI (Statistik Dalam Angka)
Tool | Deskripsi |
| Kode wilayah 7 digit MFD |
| Daftar bab/subjek publikasi |
| Daftar tabel dan tahun tersedia |
| Isi tabel berdasarkan wilayah + tahun |
Alur Kerja Contoh
Mendapatkan Data Dinamis
1. bps_list_variable(keyword="kemiskinan") โ temukan var_id
2. bps_list_period(var=104) โ temukan th_id tahun yang tersedia
3. bps_get_dynamic_data(var=104, th="125") โ data aktual!Mendapatkan Data Ekspor/Impor
bps_foreign_trade(
sumber = "1", // Ekspor
periode = "1", // Bulanan
kodehs = "09", // HS 09 = Kopi, teh, rempah
jenishs = "1",
tahun = 2025,
bulan = 8,
ctry = "US" // ke Amerika Serikat
)Kode HS Umum untuk ekspor/impor
Kode | Komoditas |
| Kopi, teh, rempah-rempah |
| Serealia (gandum, beras, jagung) |
| Lemak & minyak nabati/hewani (CPO) |
| Bijih logam, terak |
| Bahan bakar mineral (batu bara, minyak) |
| Karet |
| Kayu & produk kayu |
| Pulp kayu |
| Pakaian jadi rajut |
| Mesin & peralatan listrik |
Troubleshooting
"BPS_API_KEY belum di-set" โ Pastikan env var sudah diset di konfigurasi
HTTP 401 โ Token tidak valid, cek di profil webapi.bps.go.id
Data kosong โ Coba kurangi filter, atau cek var_id dengan bps_list_variable
Referensi
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
Related MCP Connectors
BPS โ Badan Pusat Statistik (Statistics Indonesia) WebAPI MCP.
Public Data Ukraine Mcp connects AI agents to real public APIs via MCP. Tools include
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI clients to access official Indonesian statistical data from Badan Pusat Statistik (BPS) through natural language queries. It provides over 20 tools for retrieving demographic, economic, and trade data with support for bilingual responses and fuzzy domain matching.3432 npm7MIT
- AlicenseNot gradedqualityCmaintenanceProvides access to Singapore's official statistics from the Department of Statistics (SingStat) via MCP tools, allowing users to query data using natural language or direct tool calls.312 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables access to Badan Pusat Statistik (Statistics Indonesia) data through natural language queries via the Pipeworx gateway.1 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides AI assistants with direct access to economic statistics, high-frequency US equity bars, and patent/innovation measures, enabling search, metadata retrieval, and data download through MCP tools.MIT