npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@formosa-mcp/taiwan-gazette

v1.0.1

Published

Taiwan MCP server: taiwan-gazette (Executive Yuan Gazette)

Readme

taiwan-gazette MCP Server

Taiwan Executive Yuan Gazette (行政院公報) MCP server. Hybrid XML + HTML scraping approach for accessing 162,000+ gazette entries from gazette.nat.gov.tw.

Data Source

  • XML Feed: https://gazette.nat.gov.tw/egFront/OpenData/downloadXML.jsp
  • Search: https://gazette.nat.gov.tw/egFront/advancedSearchResult.do
  • Detail: https://gazette.nat.gov.tw/egFront/detail.do?metaid={id}
  • Drafts: https://gazette.nat.gov.tw/egFront/e_previewResult.do
  • Auth: None required
  • Format: XML (latest) + HTML (search/detail/drafts)
  • License: Government Open Data License v1.0

Tools (5)

| Tool | Description | Required Params | |------|-------------|-----------------| | get_latest_gazette | Get latest gazette entries from XML feed | none | | search_gazette | Search gazette by keyword with chapter/type/date filters | keyword | | get_gazette_detail | Get full gazette content by MetaId | meta_id | | list_draft_regulations | List draft regulations open for public comment | none | | get_gazette_statistics | Gazette statistics by chapter (9 categories) | none |

9 Chapters

| # | Chapter | Records | |---|---------|---------| | 1 | 綜合行政 | 2,959 | | 2 | 內政 | 14,253 | | 3 | 外交國防法務 | 4,387 | | 4 | 財政經濟 | 34,848 | | 5 | 教育科技文化 | 16,001 | | 6 | 交通建設 | 42,181 | | 7 | 農業環保 | 22,346 | | 8 | 衛生勞動 | 21,320 | | 9 | 附錄 | 4,282 |

Development

npm install
npm test          # Run all tests
npm run dev       # Start local dev server

Architecture

src/
  index.ts          - Hono worker entry (POST /, ALL /mcp)
  types.ts          - TypeScript interfaces (GazetteRecord, SearchResult, DraftRegulation)
  client.ts         - Hybrid client: XML parser + HTML scraper (regex-based)
  mcp-handler.ts    - JSON-RPC handler (legacy endpoint)
  mcp-server.ts     - MCP SDK server (streamable HTTP)
  tools/
    get-latest.ts   - XML feed parser
    search.ts       - HTML search with filters
    detail.ts       - HTML detail page parser
    draft.ts        - HTML draft regulations parser
    statistics.ts   - Hardcoded chapter statistics
tests/
  client.test.ts
  tools.test.ts
  mcp-handler.test.ts
  index.test.ts

Tests

126 tests across 4 test files covering:

  • XML parsing with CDATA fields and edge cases
  • HTML search result and detail page parsing
  • Tool logic with success, empty, invalid input, and error cases
  • MCP handler protocol compliance
  • HTTP worker endpoint behavior