MCP.so
登录
P

Philippine Standard Geographic Code MCP Server

@johndavedecano

基本信息

分类

开发工具

传输方式

stdio

作者

johndavedecano

提交者

John Dave Decano

关于 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.

#philippines#geographic-code#mcp-server

Philippine Standard Geographic Code MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

Philippine Standard Geographic Code MCP Server 工具

41

List all island groups in the Philippines

Get specific island group by code

Get all regions within a specific island group

Get all provinces within a specific island group

Get all cities within a specific island group

Get all municipalities within a specific island group

Get all barangays within a specific island group

List all regions in the Philippines

Get specific region by code

Get all provinces within a specific region

Get all districts within a specific region

Get all cities within a specific region

Get all municipalities within a specific region

Get all cities and municipalities within a specific region

Get all sub-municipalities within a specific region

Get all barangays within a specific region

List all provinces in the Philippines

Get specific province by code

Get all cities within a specific province

Get all municipalities within a specific province

Get all cities and municipalities within a specific province

Get all sub-municipalities within a specific province

Get all barangays within a specific province

List all cities in the Philippines

Get specific city by code

Get all barangays within a specific city

List all municipalities in the Philippines

Get specific municipality by code

Get all barangays within a specific municipality

List all barangays in the Philippines

Get specific barangay by code

List all districts in the Philippines

Get specific district by code

Get all cities within a specific district

Get all municipalities within a specific district

Get all cities and municipalities within a specific district

Get all sub-municipalities within a specific district

Get all barangays within a specific district

Search for geographic entities by name across all levels (regions, provinces, cities, municipalities, barangays)

Get complete geographic hierarchy for a specific code (shows parent entities)

Validate if a geographic code exists and return its type

概览

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

常见问题

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.

评论

开发工具 分类下的更多 MCP 服务器