Indonesia Gov APIs

v1.0.0โ€ขSearch & Data Extractionโ€ขstable

๐Ÿ‡ฎ๐Ÿ‡ฉ 50+ Indonesian Government APIs & Data Sources โ€” BPS, OJK, BPJPH, BPOM, Bank Indonesia, IDX, BMKG + MCP servers. Python examples, scraping patterns, and practical gotchas. It's very challenging to keep up with all the breaking and blocking changes

api-referencebpjphbpsdata-indonesiagovernment-api
Share:
147
Stars
0
Downloads
0
Weekly
0/5

What is Indonesia Gov APIs?

Indonesia Gov APIs is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to ๐Ÿ‡ฎ๐Ÿ‡ฉ 50+ indonesian government apis & data sources โ€” bps, ojk, bpjph, bpom, bank indonesia, idx, bmkg + mcp servers. python examples, scraping patterns, and practical gotchas. it's very challenging to...

๐Ÿ‡ฎ๐Ÿ‡ฉ 50+ Indonesian Government APIs & Data Sources โ€” BPS, OJK, BPJPH, BPOM, Bank Indonesia, IDX, BMKG + MCP servers. Python examples, scraping patterns, and practical gotchas. It's very challenging to keep up with all the breaking and blocking changes

This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • ๐Ÿ‡ฎ๐Ÿ‡ฉ 50+ Indonesian Government APIs & Data Sources โ€” BPS, OJK,

Use Cases

Access 50+ Indonesian government datasets
Query economic and financial data
suryast

Maintainer

LicenseMIT
Languagehtml
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx indonesia-gov-apis

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Indonesia Gov APIs

Indonesia Gov APIs is a curated reference repository documenting 50+ Indonesian government data sources and their access patterns, covering agencies like BPS (statistics), OJK (financial services), BPJPH (halal certification), BPOM (food and drug), Bank Indonesia, IDX (stock exchange), and BMKG (meteorology). It includes an MCP server via the pasal.id endpoint that makes Indonesian legal data (legislation, regulations) queryable by AI assistants. The project documents real-world gotchas including IP geo-blocking, CSRF token requirements, and DNS failures affecting many portals.

Prerequisites

  • Python 3.8+ with the requests library for direct API access patterns
  • An MCP-compatible client such as Claude Desktop or Claude Code CLI for the pasal.id MCP server
  • Optional: A residential or Indonesian IP proxy for portals that block datacenter IP ranges (AWS, GCP, DigitalOcean)
  • Optional: API keys for OpenCorporates or SATUSEHAT (Kemenkes) if accessing those specific endpoints
1

Clone the reference repository

Clone the repository to get access to all documented API patterns, Python code examples, and the MCP server integration notes.

git clone https://github.com/suryast/indonesia-gov-apis.git
cd indonesia-gov-apis
2

Install Python dependencies for direct API access

Install the libraries used in the documented examples. These are needed for working with REST endpoints, Excel exports, and PDF data from government portals.

pip install requests openpyxl pdfplumber
3

Connect the pasal.id MCP server

Add the pasal.id hosted MCP server to your Claude installation. This server provides access to Indonesian legal and regulatory documents via natural-language queries.

claude mcp add --transport http pasal-id \
  https://pasal-mcp-server-production.up.railway.app/mcp
4

Query Indonesian government data with Python

Use the documented patterns to query datasets. The CKAN pattern works across data.go.id and most regional portals. For BPOM and OJK scraping, always use requests.Session() to handle CSRF tokens.

import requests

# BMKG latest earthquake
resp = requests.get(
    "https://data.bmkg.go.id/DataMKG/TEWS/autogempa.json"
)
quake = resp.json()["Infogempa"]["gempa"]
print(f"M{quake['Magnitude']} at {quake['Wilayah']}")

# CKAN portal search (works across data.go.id, Jakarta, Jabar, etc.)
resp = requests.get(
    "https://data.go.id/api/3/action/package_search",
    params={"q": "kemiskinan", "rows": 10}
)
5

Query halal certification data from BPJPH

BPJPH halal business data requires a JSON POST request. This pattern retrieves certified businesses from the halal.go.id database.

import requests

resp = requests.post(
    "https://cmsbl.halal.go.id/api/search/data_penyelia",
    json={"length": 20, "start": 0, "nama_penyelia": "A"},
    headers={"Content-Type": "application/json"}
)
print(resp.json()["data"])

Indonesia Gov APIs Examples

Client configuration

MCP configuration to connect the pasal.id legal data server to Claude Desktop using HTTP transport.

{
  "mcpServers": {
    "pasal-id": {
      "type": "http",
      "url": "https://pasal-mcp-server-production.up.railway.app/mcp"
    }
  }
}

Prompts to try

Prompts to query Indonesian government data through an AI assistant connected to the pasal.id MCP server or via the documented API patterns.

- "What are the latest earthquake events reported by BMKG today?"
- "Search for datasets about poverty rates (kemiskinan) on data.go.id"
- "Find halal-certified businesses with 'bakery' in their name from BPJPH"
- "What does Indonesian law say about data privacy obligations for companies?"
- "Show me the latest Bank Indonesia benchmark interest rate"

Troubleshooting Indonesia Gov APIs

Requests to Indonesian government portals return 403 or timeout

Many portals block datacenter IP ranges (AWS, GCP, DigitalOcean). Use a Cloudflare Workers proxy, a residential proxy service, or run requests from a local machine with an Indonesian ISP connection.

BPOM or OJK scraping fails with CSRF or session errors

Always use requests.Session() when accessing BPOM and OJK portals. The session object automatically carries cookies between requests. Fetch the login or landing page first to acquire the CSRF token, then include it in subsequent POST requests.

Portal domain does not resolve (DNS failure)

As of early 2026, approximately 16 of 57 documented portals have non-functional DNS records. Check the repository's issues page for the current status list. For critical data, use the CKAN API on data.go.id as a fallback, as it aggregates datasets from many agencies.

Frequently Asked Questions about Indonesia Gov APIs

What is Indonesia Gov APIs?

Indonesia Gov APIs is a Model Context Protocol (MCP) server that ๐Ÿ‡ฎ๐Ÿ‡ฉ 50+ indonesian government apis & data sources โ€” bps, ojk, bpjph, bpom, bank indonesia, idx, bmkg + mcp servers. python examples, scraping patterns, and practical gotchas. it's very challenging to keep up with all the breaking and blocking changes It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Indonesia Gov APIs?

Follow the installation instructions on the Indonesia Gov APIs GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Indonesia Gov APIs?

Indonesia Gov APIs works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Indonesia Gov APIs free to use?

Yes, Indonesia Gov APIs is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Search & Data Extraction MCP Servers

Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "indonesia-gov-apis": { "command": "npx", "args": ["-y", "indonesia-gov-apis"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide โ†’

Ready to use Indonesia Gov APIs?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides