Feedback

Philippine Standard Geographic Code Mcp Server

@johndavedecano Claim

Basic information

Category
License
ISC
Transports
stdio
Author
johndavedecano
Submitted by
Community
Quality
25

About Philippine Standard Geographic Code Mcp Server

A Model Context Protocol (MCP) server that provides access to the Philippine Standard Geographic Code (PSGC) API, offering hierarchical geographic data for the Philippines.

Philippine Standard Geographic Code Mcp Server is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by johndavedecano. It exposes 41 tools, including get_island_groups, get_island_group, get_island_group_regions, get_island_group_provinces and more. Supported transport: stdio. License: ISC. Source code is hosted on github.com. Related topics: geographic-code, mcp-server, philippines.

Setup

{
    "mcpServers": {
        "psgc-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "psgc-mcp"
            ],
            "transport": "stdio"
        }
    }
}

Philippine Standard Geographic Code Mcp Server config

Add this server to your MCP-compatible client using the configuration below.

{
    "mcpServers": {
        "psgc-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "psgc-mcp"
            ],
            "transport": "stdio"
        }
    }
}

Philippine Standard Geographic Code Mcp Server tools

  • get_island_groups — List all island groups in the Philippines
    (no parameters)
  • get_island_group — Get specific island group by code
    code:string*
  • get_island_group_regions — Get all regions within a specific island group
    islandGroupCode:string*
  • get_island_group_provinces — Get all provinces within a specific island group
    islandGroupCode:string*
  • get_island_group_cities — Get all cities within a specific island group
    islandGroupCode:string*
  • get_island_group_municipalities — Get all municipalities within a specific island group
    islandGroupCode:string*
  • get_island_group_barangays — Get all barangays within a specific island group
    islandGroupCode:string*
  • get_regions — List all regions in the Philippines
    (no parameters)
  • get_region — Get specific region by code
    code:string*
  • get_region_provinces — Get all provinces within a specific region
    regionCode:string*
  • get_region_districts — Get all districts within a specific region
    regionCode:string*
  • get_region_cities — Get all cities within a specific region
    regionCode:string*
  • get_region_municipalities — Get all municipalities within a specific region
    regionCode:string*
  • get_region_cities_municipalities — Get all cities and municipalities within a specific region
    regionCode:string*
  • get_region_sub_municipalities — Get all sub-municipalities within a specific region
    regionCode:string*
  • get_region_barangays — Get all barangays within a specific region
    regionCode:string*
  • get_provinces — List all provinces in the Philippines
    (no parameters)
  • get_province — Get specific province by code
    code:string*
  • get_province_cities — Get all cities within a specific province
    provinceCode:string*
  • get_province_municipalities — Get all municipalities within a specific province
    provinceCode:string*
  • get_province_cities_municipalities — Get all cities and municipalities within a specific province
    provinceCode:string*
  • get_province_sub_municipalities — Get all sub-municipalities within a specific province
    provinceCode:string*
  • get_province_barangays — Get all barangays within a specific province
    provinceCode:string*
  • get_cities — List all cities in the Philippines
    (no parameters)
  • get_city — Get specific city by code
    code:string*
  • get_city_barangays — Get all barangays within a specific city
    cityCode:string*
  • get_municipalities — List all municipalities in the Philippines
    (no parameters)
  • get_municipality — Get specific municipality by code
    code:string*
  • get_municipality_barangays — Get all barangays within a specific municipality
    municipalityCode:string*
  • get_barangays — List all barangays in the Philippines
    (no parameters)
  • get_barangay — Get specific barangay by code
    code:string*
  • get_districts — List all districts in the Philippines
    (no parameters)
  • get_district — Get specific district by code
    code:string*
  • get_district_cities — Get all cities within a specific district
    districtCode:string*
  • get_district_municipalities — Get all municipalities within a specific district
    districtCode:string*
  • get_district_cities_municipalities — Get all cities and municipalities within a specific district
    districtCode:string*
  • get_district_sub_municipalities — Get all sub-municipalities within a specific district
    districtCode:string*
  • get_district_barangays — Get all barangays within a specific district
    districtCode:string*
  • search_by_name — Search for geographic entities by name across all levels (regions, provinces, cities, municipalities, barangays)
    name:string*, type:string, limit:integer
  • get_hierarchy — Get complete geographic hierarchy for a specific code (shows parent entities)
    code:string*
  • validate_code — Validate if a geographic code exists and return its type
    code:string*

Overview

What is Philippine Standard Geographic Code Mcp Server?

A Model Context Protocol (MCP) server that provides access to the Philippine Standard Geographic Code (PSGC) API, offering hierarchical geographic data for the Philippines. It is intended for developers and applications needing to look up or validate Philippine administrative divisions.

How to use Philippine Standard Geographic Code Mcp Server?

Install globally via npm install -g psgc-mcp and configure any MCP client (e.g., Cursor, Claude Desktop) with command: "npx", args: ["-y", "psgc-mcp"], transport: "stdio". Invoke tools such as get_regions, search_by_name, or get_hierarchy to query geographic data.

Key features of Philippine Standard Geographic Code Mcp Server

  • Complete geographic hierarchy (island groups to barangays)
  • Search geographic entities by name across all levels
  • Validate PSGC codes and retrieve hierarchy information
  • Real‑time access to the official PSGC API
  • Type‑safe data structures (TypeScript)

Use cases of Philippine Standard Geographic Code Mcp Server

  • List all regions and their provinces
  • Find all barangays within a specific city
  • Validate a PSGC code to confirm an administrative division
  • Search for a city or municipality by name
  • Retrieve the full hierarchy for a given geographic code

Frequently asked questions

1 Which PSGC code formats are supported?

Codes follow hierarchical formats: island groups (e.g., 010000000), regions (130000000), provinces (133900000), cities/municipalities (133903000), and barangays (133903001).

2 How do I install Philippine Standard Geographic Code Mcp Server?

Install globally via npm with npm install -g psgc-mcp, then configure your MCP client with command: "npx", args: ["-y", "psgc-mcp"] and transport: "stdio".

3 What are the runtime requirements?

Node.js 18 or higher and npm or yarn.

4 Where does the geographic data come from?

The server connects directly to the official PSGC API at https://psgc.gitlab.io/api/ for real‑time data.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬