bps-webapi-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bps-webapi-mcpWhat is Indonesia's inflation rate for 2024?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-comtrade
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
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rasyidarfan/bps-webapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server