BetterGov.ph
BETTERGOV.PH · PUBLIC REST API & MCP SERVER

COA LGU Financial Statements API & MCP

Public, read-only, CORS-open REST API (/api/v1) and stateless Streamable HTTP MCP server (/mcp) over 24 years of Commission on Audit (COA) Annual Financial Reports on Philippine Local Governments (CY 2002–2025).

24-Year Normalization & PSGC Enrichment: Covers 1,927 unified Provinces, Cities, and Municipalities across NGAS (2002–2014), PPSAS (2015–2019), and IPSAS (2020–2025), including granular 2002–2007 sub-accounts, Barangay aggregates (2010–2025), COA audit opinions, and PSA PSGC Q2 2024 populations. All monetary values are normalized to exact Philippine Pesos (PHP).
REST API Base /api/v1
MCP Endpoint (Streamable HTTP) /mcp
OpenAPI 3.1 Spec /api/v1/openapi.json

1. Connect via MCP (AI Agents)

Stateless Streamable HTTP transport (JSON-RPC 2.0 over POST /mcp). No API key required.

Claude Code / CLI

claude mcp add --transport http ph-lgu-financials https://audits.bettergov.ph/mcp

Claude Desktop / Cursor / MCP Client Config

{
  "mcpServers": {
    "ph-lgu-financials": {
      "url": "https://audits.bettergov.ph/mcp"
    }
  }
}

Available MCP Tools (9)

ToolPurpose
search_lgusSearch, filter, and sort 1,927 unified LGUs by name, province, region, PSGC code, tier, income class, or latest audit opinion.
get_lguFull 24-year financial dossier, reconstructed Balance Sheet / Performance / Cash Flows (with 2002–2007 sub-accounts), Barangay aggregates, COA opinions with itemized CY 2017–2025 findings, and per-capita peer benchmarks.
compare_lgusSide-by-side 24-year comparison of 2–5 LGUs (total PHP or per-resident).
get_overviewNational 24-year trends by tier, 18-region summaries, audit opinion trends, and FY 2025 leaders.
get_regionsSummary metrics, FY 2025 Unmodified opinion rates, and 24-year series for all 18 regions.
get_regionSingle region 24-year tier breakdown and constituent LGU roster.
get_year_summarySingle-year nationwide snapshot (CY 2002–2025) with LGU and optional Barangay rows.
get_audit_opinionsAudit opinion distribution over time and filterable LGU opinion list.
get_sources_and_r2Accounting era guide, PSA PSGC Q2 2024 match coverage, and Cloudflare R2 archive links.

2. REST API Endpoints (/api/v1)

EndpointDescription
GET /api/v1/lgus Search & paginate 1,927 LGUs. Params: q, type, region, province, income_class, opinion, sort, order, limit, offset. Alias: /api/v1/directory.
GET /api/v1/lgus/{slug_or_psgc} 24-year financial dossier & reconstructed statements (Balance Sheet, Income, Cash Flow, Barangays, Opinions + itemized CY 2017–2025 COA findings, Per Capita). Optional: ?year=2006 for expanded 2002–2007 line items.
GET /api/v1/compare Compare 2–5 LGUs side-by-side. Params: slugs, year, metric (assets, revenue, expenses, equity, surplus, assets_per_capita, revenue_per_capita).
GET /api/v1/overview Macro 24-year national overview, regional summaries, opinion trends, and FY 2025 top LGUs.
GET /api/v1/regions All 18 Philippine regions summary & 24-year regional series.
GET /api/v1/regions/{code} Single region 24-year tier series and filtered LGU roster (?type=&limit=&offset=).
GET /api/v1/years List all 24 fiscal year summaries (CY 2002–2025).
GET /api/v1/years/{year} Single-year nationwide snapshot + LGU & optional Barangay tables (?type=&region=&q=&include_barangays=true).
GET /api/v1/opinions National COA audit opinion trends (2008–2025), CY 2017–2025 findings category summary, and filterable LGU opinion list.
GET /api/v1/sources Accounting standards timeline, PSA PSGC enrichment coverage, and Cloudflare R2 CSV/SQLite URLs.