PH Schools MCP Server

io.github.darwinphi由 GitHub 帳號 darwinphi 發布v1.0.3更新於 Oct 25, 2026

Local stdio MCP server for searching and analyzing the Philippine schools masterlist dataset.

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理依地區、分區和 BEIS ID 搜尋並分析菲律賓學校總名錄資料集。

可以做什麼
依關鍵字、地區和分區搜尋學校,並依 BEIS ID 查詢單一學校。列出資料集涵蓋的地區和分區。統計資料集概況,提供總名錄的整體資訊。資料集缺少時,從標準來源同步到本機檔案。
適用情境
適合需要查詢菲律賓學校、確認學校所屬地區或分區,或直接在對話中取得學校總名錄統計摘要的情境。
執行需求
以 stdio 在本機執行,通常透過 npx 使用 npm 套件,或在複製的儲存庫中以 npm install 和 npm start 啟動。需要 Node.js,首次下載需要網路存取。選用環境變數:PH_SCHOOLS_DATA_PATH 指定本機資料集檔案,PH_SCHOOLS_DATA_URL 和 PH_SCHOOLS_DATA_TAG 供 sync-data 使用。
安裝前請注意
若設定的資料集檔案不存在,伺服器會自動從遠端標準來源下載資料集並寫入設定的路徑。將 PH_SCHOOLS_DATA_URL 指向其他來源時,資料將從該位置取得。這些工具對資料集僅做唯讀查詢。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PH Schools MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

PH Schools MCP Server

Local stdio MCP server for querying and analyzing the Philippine schools masterlist dataset.

What This Server Provides

Tools:

  1. search_schools
  2. get_school_by_beis_id
  3. list_regions
  4. list_divisions
  5. dataset_stats

Install and Run

bash
npm installnpm start

Use npm start only when running from this repo manually.

Which Setup to Use

  • VS Code MCP (.vscode/mcp.json): enough for normal usage. If status is Running, VS Code already started the server.
  • Claude Desktop (claude_desktop_config.json): enough for normal usage. Restart Claude after config changes.
  • npx -y @darwinphi/ph-schools-mcp-server ...: one-off CLI usage without cloning repo.
  • npm install && npm start: local development/maintenance in this repository.

Usage Scenarios

  1. mcp.json configured, no manual npx: works for chat tool calls (dataset_stats, search_schools, etc.).
  2. Manual npx -y @darwinphi/ph-schools-mcp-server, no MCP client config: server process starts, but chat clients won't use it automatically.
  3. mcp.json configured plus manual npx start: usually unnecessary; let the MCP client manage start/stop.
  4. One-off commands without MCP chat: use npx ... --help or npx ... sync-data ....

Without MCP client config, automatic VS Code/Claude tool-calling will not work.

When to Use mcp.json

Use mcp.json for normal day-to-day MCP usage in VS Code (or equivalent client config in Claude Desktop).

Use it for:

  1. Automatic server startup and lifecycle management by the MCP client
  2. MCP tool usage directly from chat prompts (dataset_stats, search_schools, etc.)
  3. Team/project-level shared MCP setup in a workspace

If MCP status shows Running, the client already started the server; manual npm start or manual npx start is usually unnecessary.

When to Use npx

Use npx from a terminal when you need one-off CLI actions without cloning or developing this repo.

Use it for:

  1. Sanity check that the published package runs: npx -y @darwinphi/ph-schools-mcp-server --help
  2. Manual dataset download/update: npx -y @darwinphi/ph-schools-mcp-server sync-data --tag v1.0.1 --output "$HOME/.ph-schools/data.json"
  3. Manual debug startup outside client-managed MCP lifecycle: npx -y @darwinphi/ph-schools-mcp-server

Do not use npx start as a replacement for VS Code/Claude MCP config. In normal usage, let the MCP client manage server startup from its config.

When to Use npm install and npm start

Use these when working from this repository (developer/maintainer workflow), not for normal client usage.

Use them for:

  1. Local development while editing source files in this repo
  2. Running tests before commits/releases
  3. Debugging local unpublished changes

Typical local workflow:

bash
npm installnpm testnpm start

If your VS Code/Claude MCP config is already working, you usually do not need to run npm start manually.

CLI (published package)

bash
# Start MCP server over stdionpx -y @darwinphi/ph-schools-mcp-server
# Sync canonical dataset once to a chosen pathnpx -y @darwinphi/ph-schools-mcp-server sync-data --tag v1.0.1 --output "$HOME/.ph-schools/data.json"

Quick Verify

bash
npx -y @darwinphi/ph-schools-mcp-server --helpnpx -y @darwinphi/ph-schools-mcp-server sync-data --tag v1.0.1 --output "$HOME/.ph-schools/data.json"

Dataset Configuration

This server is hybrid by default:

  • If local dataset file exists, it uses that file immediately.
  • If local dataset file is missing, it auto-downloads from the canonical dataset URL and caches locally.

Default canonical URL (pinned tag v1.0.1):

https://raw.githubusercontent.com/darwinphi/ph-schools-dataset/v1.0.1/schools_masterlist_2020_2021.json

Runtime env vars:

  • PH_SCHOOLS_DATA_PATH: preferred local JSON file path (used directly if present; auto-synced to this path if missing)
  • PH_SCHOOLS_DATA_URL: override download URL for sync-data
  • PH_SCHOOLS_DATA_TAG: canonical tag for sync-data when URL is not provided

VS Code MCP Config (Copy/Paste)

Set .vscode/mcp.json:

json
{  "servers": {    "phSchools": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@darwinphi/ph-schools-mcp-server"],      "env": {        "PH_SCHOOLS_DATA_PATH": "/Users/your-user/.ph-schools/data.json"      }    }  }}

If PH_SCHOOLS_DATA_PATH file is missing, the server automatically downloads from canonical source and writes to that path.

Claude Desktop Config (Copy/Paste)

Update Claude config:

json
{  "mcpServers": {    "ph-schools": {      "command": "npx",      "args": ["-y", "@darwinphi/ph-schools-mcp-server"],      "env": {        "PH_SCHOOLS_DATA_PATH": "/Users/your-user/.ph-schools/data.json"      }    }  }}

Alternative if npx is unreliable in your shell: install globally and use "command": "ph-schools-mcp-server".

If PH_SCHOOLS_DATA_PATH file is missing, the server automatically downloads from canonical source and writes to that path.

Typical macOS config file:

~/Library/Application Support/Claude/claude_desktop_config.json

Test Commands

bash
npm testnpm run test:package

Example Prompts

  • Run dataset_stats and summarize key insights.
  • List all divisions in Region I using list_divisions.
  • Search schools in region "Region I" and division "Ilocos Norte".
  • Get school by BEIS ID 100001 using get_school_by_beis_id.
  • Search schools with query "High School".

Publishing and Release Flow

One-time npm setup (Trusted Publishing):

  1. On npmjs.com, open package @darwinphi/ph-schools-mcp-server → Settings → Trusted publishers.
  2. Add GitHub Actions trusted publisher with:
    • Owner/User: darwinphi
    • Repository: ph-schools-mcp-server
    • Workflow filename: cd.yml
  3. Do not use NPM_TOKEN; release workflow uses OIDC (id-token: write).

Manual release flow (v1):

  1. Update pinned dataset tag in src/constants.js.
  2. Bump package version:
bash
npm version patch   # or minor / major

What npm version patch does:

  • Updates package.json version (e.g., 1.0.1 -> 1.0.2)
  • Updates package-lock.json version fields
  • Creates a git commit
  • Creates a git tag (e.g., v1.0.2)
  1. Sync server.json version to match package.json.
  2. Run:
bash
npm cinpm testnpm run test:package
  1. Push commit and tags:
bash
git pushgit push --tags
  1. Create GitHub Release notes from the tag:
bash
gh release create v<new_version> --generate-notes --title "v<new_version>"

Example:

bash
gh release create v1.0.2 --generate-notes --title "v1.0.2"
  1. Push commit and tags. Tag pushes (v*) automatically trigger CD Release workflow.
  2. Workflow publishes npm package, then publishes MCP Registry metadata.

For metadata-only updates, use workflow Publish MCP Registry Metadata.

License and Data Provenance

  • Code license: ISC (LICENSE).
  • Dataset source: darwinphi/ph-schools-dataset (canonical repository backed by gov.ph source data).
  • Use of dataset remains subject to source terms and applicable policies.

來源:README.md,提交 55dc8d3

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分