
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.
概览
本地 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 使用。
安装
在 SourceWeft 中
- 打开 控制台中的 PH Schools MCP Server,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
search_schoolsget_school_by_beis_idlist_regionslist_divisionsdataset_stats
Install and Run
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 isRunning, 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
mcp.jsonconfigured, no manualnpx: works for chat tool calls (dataset_stats,search_schools, etc.).- Manual
npx -y @darwinphi/ph-schools-mcp-server, no MCP client config: server process starts, but chat clients won't use it automatically. mcp.jsonconfigured plus manualnpxstart: usually unnecessary; let the MCP client manage start/stop.- One-off commands without MCP chat: use
npx ... --helpornpx ... 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:
- Automatic server startup and lifecycle management by the MCP client
- MCP tool usage directly from chat prompts (
dataset_stats,search_schools, etc.) - 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:
- Sanity check that the published package runs:
npx -y @darwinphi/ph-schools-mcp-server --help - Manual dataset download/update:
npx -y @darwinphi/ph-schools-mcp-server sync-data --tag v1.0.1 --output "$HOME/.ph-schools/data.json" - 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:
- Local development while editing source files in this repo
- Running tests before commits/releases
- Debugging local unpublished changes
Typical local workflow:
If your VS Code/Claude MCP config is already working, you usually do not need to run npm start manually.
CLI (published package)
Quick Verify
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 forsync-dataPH_SCHOOLS_DATA_TAG: canonical tag forsync-datawhen URL is not provided
VS Code MCP Config (Copy/Paste)
Set .vscode/mcp.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:
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
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):
- On npmjs.com, open package
@darwinphi/ph-schools-mcp-server→ Settings → Trusted publishers. - Add GitHub Actions trusted publisher with:
- Owner/User:
darwinphi - Repository:
ph-schools-mcp-server - Workflow filename:
cd.yml
- Owner/User:
- Do not use
NPM_TOKEN; release workflow uses OIDC (id-token: write).
Manual release flow (v1):
- Update pinned dataset tag in
src/constants.js. - Bump package version:
What npm version patch does:
- Updates
package.jsonversion (e.g.,1.0.1->1.0.2) - Updates
package-lock.jsonversion fields - Creates a git commit
- Creates a git tag (e.g.,
v1.0.2)
- Sync
server.jsonversion to matchpackage.json. - Run:
- Push commit and tags:
- Create GitHub Release notes from the tag:
Example:
- Push commit and tags. Tag pushes (
v*) automatically triggerCD Releaseworkflow. - 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版本历史
1- v1.0.3最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分