
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
概览
让助手查找纽约市公共厕所的位置,并查询其最新的纽约市公园管理局检查状态。
- 可以做什么
- 提供两个只读工具,数据来自纽约市开放数据。find_restrooms 按距离由近到远列出某地点附近开放的公共厕所,并给出开放时间、无障碍设施和换尿布台信息。get_restroom_status 按名称或坐标查询单个厕所,并在有记录时返回其最近一次纽约市公园管理局的检查评级。若未提供位置,它可自动判断位置。
- 适用场景
- 适合让助手回答纽约市公共厕所的实际问题,例如查找附近开放或可供轮椅使用的厕所,或查看由公园管理局运营的厕所最近一次检查的评分。
- 运行要求
- 通过 npx 在本机运行的本地进程,需要 Node.js 20 或更高版本。无需账号或身份验证。可选环境变量:SOCRATA_APP_TOKEN 用于提高纽约市开放数据的速率限制,CORELOCATION_CMD 用于在 macOS 上获取精确的设备位置,以及 LOG_LEVEL。需要网络访问以连接纽约市开放数据。
安装
在 SourceWeft 中
- 打开 控制台中的 Nyc Restroom Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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:
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):
Claude Desktop: go to Settings -> Developer -> Edit Config and add this to
claude_desktop_config.json:
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 corelocationcliand 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):
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+):
To run your local copy inside an MCP client instead of the published package:
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
来源:README.md,提交 60388c6
工具
0版本历史
1- v0.1.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分