# PH Civic Data

Query Philippine public data through an MCP server, from population figures to procurement and hazards. Useful when an agent needs to examine a place or compare regions.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: xmpuspus
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/xmpuspus/ph-civic-data-mcp
- Updated: 2026-10-15
- HTML: https://affpapa.org/en/nevibecode/mcp/ph-civic-data

## What it does

The server gives agents tools for 19 public Philippine data sources. They can look up PSA statistics, population and poverty figures, procurement notices, infrastructure spending, earthquakes, typhoons and weather. For a place-based overview, `get_area_profile` combines information on demographics, the economy, procurement and hazards.

There are 41 tools, exposed over stdio through `uvx ph-civic-data-mcp`. The install commands include `PAGASA_API_TOKEN` for weather-related setup, so configure that token before relying on weather queries. PSA table requests need a value code for each dimension and are capped at 1000 cells. Inspect the dataset structure first.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `PAGASA_API_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add ph-civic-data-mcp -e PAGASA_API_TOKEN=<PAGASA_API_TOKEN> -- uvx ph-civic-data-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from ph-civic-data-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add ph-civic-data --env PAGASA_API_TOKEN=<PAGASA_API_TOKEN> -- uvx ph-civic-data-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from ph-civic-data-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "ph-civic-data": {
            "command": "uvx",
            "args": [
                "ph-civic-data-mcp"
            ],
            "env": {
                "PAGASA_API_TOKEN": "<PAGASA_API_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from ph-civic-data-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "ph-civic-data": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "ph-civic-data-mcp"
            ],
            "env": {
                "PAGASA_API_TOKEN": "<PAGASA_API_TOKEN>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from ph-civic-data-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e PAGASA_API_TOKEN=<PAGASA_API_TOKEN> ph-civic-data uvx ph-civic-data-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from ph-civic-data-mcp <command>

## When to use it
- look up a city's population
- compare poverty or employment across regions
- check nearby earthquakes and a volcano's status
- search procurement notices by topic or location
- retrieve PSA figures for selected indicators

## Example prompts
- Compare population and poverty in Cebu City and Davao City.
- Check recent earthquakes near Legazpi and summarize the bulletin.
- Find PSA tables about poverty and retrieve island-group figures for 2023.

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89899
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16730
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40459
- [dbx](https://affpapa.org/en/nevibecode/mcp/dbx.md) — MCP server · ★ 27844
- [Metabase](https://affpapa.org/en/nevibecode/mcp/metabase.md) — MCP server · ★ 49863

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
