SuperAPIAI Directory

ph-civic-data-mcp

github.com · AI developer platforms

Philippine government data: PHIVOLCS earthquakes and volcano alerts, PAGASA weather and typhoons, PhilGEPS procurement, PSA census data and AQICN air quality.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

ph-civic-data-mcp is an open-source project that packages Philippine public data into MCP tools that AI agents can call. It runs over stdio, with no hosting costs and no API keys. Philippine public data portals publish open data in different forms, including scraped HTML tables, PXWeb JSON, and undocumented APIs, and these data lack a unified interface for agents to use. This server solves that problem by integrating data from multiple sources into a unified toolset.

Main capabilities: The server provides 41 tools covering 19 public sources. Core features include: getting an area profile (get_area_profile), which can combine demographics, economy, procurement, disasters, and a three-day weather forecast in one call, and normalizes infrastructure notices per 100,000 residents; comparing multiple areas (compare_areas); querying earthquakes, volcano status, active typhoons, flood forecasts, and historical typhoons; searching government procurement and infrastructure projects (search_procurement, search_infra_projects, summarize_infra_spending, flag_infra_anomalies); querying the PSA statistical catalog (search_psa_catalog, browse_psa_catalog, describe_psa_dataset, query_psa_dataset); getting weather, air quality, solar radiation, and vegetation indices; reading 2025 election results; and tracking the Official Gazette and open datasets. In addition, it provides three MCP prompts (area_briefing, infra_accountability_scan, psa_data_explorer) and two MCP resources (data://ph-civic/source-catalog, data://ph-civic/civic-framing).

Usage: All clients run the same package over stdio via uvx ph-civic-data-mcp. It supports Claude Desktop, Codex, Cursor, VS Code, and Docker. For example, in Claude Desktop, the configuration needs to be added to claude_desktop_config.json; in Cursor, add it to mcp.json; in VS Code, add it to .vscode/mcp.json. The Docker method requires building the image first, then running it with the -i parameter to support stdio. The image runs as a non-root user and includes a health check. PAGASA_API_TOKEN is the only environment variable, and it is optional; without it, weather forecasts use Open-Meteo. All 41 tools work without a token.

Use cases: Suitable for AI agent applications that need to query Philippine public data, such as getting an area's population, poverty rate, employment rate, weather, air quality, seismic activity, volcano alerts, typhoon information, government procurement projects, infrastructure spending, election results, and more. It is also suitable for researchers, journalists, or developers doing data exploration and comparative analysis.

Limitations and cautions: All data comes from public records, heuristic indicators are statistical only, and specific allegations require independent investigation and a second source. query_psa_dataset requires explicit value codes for each dimension, rejects "all" and "*", and caps queries at 1000 cells; PSA returns HTTP 403 for full-cube requests, so describe_psa_dataset must be used first. Procurement data is not real-time, the public portal does not provide a filterable API, and the server reads the latest roughly 100 notices and filters them locally; the per-100,000-resident ratio requires a sample of at least 500 notices, and below that threshold get_area_profile keeps the number and explains why in caveats. Population data reads the 2024 census by default and can go down to the barangay level; poverty data is for full-year 2023; the election profile is frozen at 2025-05-16. Flagged notices are only a starting point for investigation and are by no means evidence of wrongdoing. This tool is not a life-safety system; in emergencies, use ndrrmc.gov.ph and official PHIVOLCS and PAGASA channels. The project uses the MIT license, was built by Xavier Puspus, and is not affiliated with PSA, PHIVOLCS, PAGASA, PhilGEPS, DPWH, NASA, NOAA, or the World Bank.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools