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-local-announce

v1.0.1

Published

Taiwan MCP server: taiwan-local-announce (六都地方政府公告)

Readme

taiwan-local-announce MCP Server

Taiwan six special municipalities (六都) local government announcements MCP server. Aggregates press releases and announcements from Taipei, New Taipei, Taoyuan, Taichung, Tainan, and Kaohsiung city governments.

Data Sources

| City | API | Format | Notes | |------|-----|--------|-------| | 台北市 | gov.taipei/OpenData.aspx?SN=... | JSON | Latest ~50 press releases | | 新北市 | data.ntpc.gov.tw/api/datasets/.../rawdata | JSON | Municipal announcements | | 桃園市 | data.tycg.gov.tw/opendata/datalist/datasetMeta/download?... | JSON | Latest news | | 台中市 | opendata.taichung.gov.tw/... | JSON | City announcements | | 台南市 | data.tainan.gov.tw/... | JSON | Municipal announcements | | 高雄市 | api.kcg.gov.tw/api/service/get/... | JSON | Latest ~50 news (Dublin Core) |

  • Auth: None required
  • License: Government Open Data License v1.0

Tools (5)

| Tool | Description | Required Params | |------|-------------|-----------------| | list_local_announcements | List announcements by city with pagination | none | | search_local_announcements | Search by keyword across all/specific city | keyword | | get_local_announcements_by_agency | Filter by agency name | agency | | get_local_announce_stats | Statistics per city (count, latest date, agencies) | none | | list_supported_cities | List all 6 supported cities | none |

All tools accept optional city parameter: taipei, newtaipei, taoyuan, taichung, tainan, kaohsiung

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 (LocalAnnouncement, CityId, Env)
  mcp-handler.ts    - JSON-RPC handler (legacy endpoint)
  mcp-server.ts     - MCP SDK server (streamable HTTP)
  cli.ts            - CLI entry for stdio transport
  clients/
    index.ts        - Unified client router (fetchCityAnnouncements, fetchAllCityAnnouncements)
    taipei.ts       - Taipei API client
    newtaipei.ts    - New Taipei API client
    taoyuan.ts      - Taoyuan API client
    taichung.ts     - Taichung API client
    tainan.ts       - Tainan API client
    kaohsiung.ts    - Kaohsiung API client (Dublin Core format)
  tools/
    list.ts         - List with pagination
    search.ts       - Keyword search
    by-agency.ts    - Agency filter
    stats.ts        - Per-city statistics
    cities.ts       - Supported cities list
tests/
  clients/          - Per-city client tests (6 files)
  tools.test.ts     - Tool logic tests
  mcp-handler.test.ts - JSON-RPC protocol tests
  index.test.ts     - HTTP worker tests
  mcp-endpoint.test.ts - MCP SDK integration tests
  cli.test.ts       - CLI smoke tests

Tests

208 tests across 11 test files covering:

  • Per-city API client parsing and field mapping (132 tests)
  • HTML stripping and date normalization
  • Unified tool logic with city/keyword/agency filters (37 tests)
  • MCP handler protocol compliance (22 tests)
  • HTTP worker endpoint behavior (7 tests)
  • MCP SDK integration (8 tests)
  • CLI server creation (2 tests)