Nyc Restroom Mcp

io.github.DanielOrtiz0220由 GitHub 帳號 DanielOrtiz0220 發布v0.1.1更新於 Oct 24, 2026

Find NYC public restrooms and their latest Parks inspection status, from NYC Open Data

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

概覽

AI 產生的概覽

讓助理查詢紐約市公共廁所的位置,並查看其最新的紐約市公園管理局檢查狀態。

可以做什麼
提供兩個唯讀工具,資料來自紐約市開放資料。find_restrooms 會依距離由近到遠列出某地點附近開放的公共廁所,並附上開放時間、無障礙設施與尿布台資訊。get_restroom_status 可依名稱或座標查詢單一廁所,並在有紀錄時回傳其最近一次紐約市公園管理局的檢查評等。若未提供位置,它可自動判斷位置。
適用情境
適合讓助理回答紐約市公共廁所的實際問題,例如尋找附近開放或可供輪椅使用的廁所,或查看由公園管理局營運的廁所最近一次檢查的評分。
執行需求
以 npx 在本機執行的本機程序,需要 Node.js 20 或更新版本。不需要帳號或身分驗證。選用環境變數:SOCRATA_APP_TOKEN 可提高紐約市開放資料的速率限制,CORELOCATION_CMD 可在 macOS 上取得精確的裝置位置,以及 LOG_LEVEL。需要網路連線才能連上紐約市開放資料。
安裝前請注意
唯讀:只會取得公開的城市資料,不會寫入或變更任何內容。若未提供座標,它可能透過裝置或依 IP 位址大致判斷你的位置,該位址會傳送給第三方地理定位服務;直接提供座標可完全避免位置查詢。SOCRATA_APP_TOKEN 為選用,僅用於提高速率限制。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

nyc-restroom-mcp

Ask Claude "where's the nearest public bathroom?" and get a real answer.

This is an MCP server, a small plugin that gives an AI assistant (like Claude Desktop or Claude Code) new abilities. This one lets it search New York City's official public restroom data, live from NYC Open Data. Once installed, you can ask things like:

  • "Find a public restroom near Union Square that's open right now."
  • "Which restrooms near me are wheelchair accessible?"
  • "Is the bathroom at Jaime Campiz Playground actually clean?" (it looks up the latest NYC Parks inspection report)

It adds two tools:

ToolWhat it does
find_restroomsLists open public restrooms near a location, closest first, with hours, accessibility, and changing-station info.
get_restroom_statusLooks up one restroom by name or coordinates, including its most recent NYC Parks inspection rating, where one exists.

If you don't give it a location, it can detect yours automatically (details below). Everything is read-only: it only ever fetches public city data.

Install

You need Node.js 20 or newer. No download or setup beyond the snippet for your app.

Claude Code (one command):

bash
claude mcp add nyc-restroom -- npx -y nyc-restroom-mcp

Claude Desktop: go to Settings -> Developer -> Edit Config and add this to claude_desktop_config.json:

json
{  "mcpServers": {    "nyc-restroom": {      "command": "npx",      "args": ["-y", "nyc-restroom-mcp"]    }  }}

Any other MCP client works the same way: have it launch npx -y nyc-restroom-mcp as a local (stdio) server.

Good to know

  • Automatic location. If you ask for nearby restrooms without saying where you are, the server tries to figure it out: first from your device (macOS only, if you brew install corelocationcli and grant it Location Services access), otherwise a rough guess from your IP address. If neither works, or you're outside NYC, it simply asks for explicit coordinates instead of guessing wrong.
  • Privacy. Location detection only happens when you omit coordinates, and your location is never written to logs. Pass explicit coordinates and no location lookup happens at all.
  • Live data. Every answer comes straight from NYC Open Data (with a short-lived in-memory cache), so results are as current as the city's own records. Inspection reports only exist for restrooms run by NYC Parks; library and other restrooms will honestly say no inspection data exists.
  • More detail. The docs/ directory covers the full tool reference, location detection, data sources, configuration, and security model. The reasoning behind every design decision lives in DECISIONS.md.

Optional settings

Set these as environment variables if you need them (most people don't):

VariablePurpose
SOCRATA_APP_TOKENA free NYC Open Data app token, for higher rate limits.
LOG_LEVELerror, warn, or info (default info). Logs go to stderr only.

A few more exist for testing and advanced setups; see docs/configuration.md.

Contributing

Issues and pull requests are welcome at DanielOrtiz0220/nyc-restroom-mcp.

Development uses Bun (1.1+):

bash
git clone https://github.com/DanielOrtiz0220/nyc-restroom-mcp.gitcd nyc-restroom-mcpbun installbun test            # full unit + end-to-end suite, runs completely offlinebun run typecheck   # tsc --noEmitbun run lint        # eslint, zero warnings allowedbun run build       # compile src/ to dist/ (what the npm package ships)

To run your local copy inside an MCP client instead of the published package:

bash
claude mcp add nyc-restroom -- bun "$(pwd)/src/index.ts"

Useful extras: bun run test:live runs one smoke test against the real NYC Open Data API (needs network), and bun test --coverage reports coverage (85%+ lines required on src/lib/). Before opening a PR, please make sure bun test, bun run typecheck, and bun run lint all pass. The full development guide (test architecture, project structure, invariants to preserve) is in docs/development.md, and DECISIONS.md explains why things work the way they do.

License

MIT

來源:README.md,提交 60388c6

工具

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

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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