Indonesia Gov APIs
๐ฎ๐ฉ 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
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
Maintainer
Works with
Installation
Manual Installation
npx indonesia-gov-apisConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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-apisInstall 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 pdfplumberConnect 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/mcpQuery 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}
)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.
Indonesia Gov APIs Alternatives โ Similar Search & Data Extraction Servers
Looking for alternatives to Indonesia Gov APIs? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
โ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
โ 52.7k๐ท๏ธ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
โ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - ๅบไบ AI ๅฎๆดไฟ็ๆ็็ PDF ๆๆกฃๅ จๆๅ่ฏญ็ฟป่ฏ๏ผๆฏๆ Google/DeepL/Ollama/OpenAI ็ญๆๅก๏ผๆไพ CLI/GUI/MCP/Docker/Zotero
GPT Researcher
โ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
โ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu โ one CLI, zero API fees.
Xiaohongshu
โ 13.7kMCP for xiaohongshu.com
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.
Set Up Indonesia Gov APIs in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.