io.github.DanielOrtiz0220/nyc-restroom-mcp

Registre officiel Données et bases de données

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

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package nyc-restroom-mcp
Claude Code
claude mcp add nyc-restroom-mcp -e 'SOCRATA_APP_TOKEN=<your socrata_app_token>' -e 'CORELOCATION_CMD=<CORELOCATION_CMD>' -- npx -y nyc-restroom-mcp@0.1.1
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "nyc-restroom-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "nyc-restroom-mcp@0.1.1"
            ],
            "env": {
                "SOCRATA_APP_TOKEN": "<your socrata_app_token>",
                "CORELOCATION_CMD": "<CORELOCATION_CMD>"
            }
        }
    }
}

Variables d'environnement

  • SOCRATA_APP_TOKEN secret Optional NYC Open Data (Socrata) app token for higher rate limits
  • CORELOCATION_CMD Optional path to the CoreLocationCLI binary for precise on-device location (macOS only; falls back to IP geolocation when absent)

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. nyc-restroom-mcp
  2. Install
  3. Good to know
  4. Contributing
  5. License

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):

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:

{
  "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+):

git clone https://github.com/DanielOrtiz0220/nyc-restroom-mcp.git
cd nyc-restroom-mcp
bun install
bun test            # full unit + end-to-end suite, runs completely offline
bun run typecheck   # tsc --noEmit
bun run lint        # eslint, zero warnings allowed
bun 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:

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

Questions fréquentes

Qu'est-ce que io.github.DanielOrtiz0220/nyc-restroom-mcp ?

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

Comment installer io.github.DanielOrtiz0220/nyc-restroom-mcp ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add nyc-restroom-mcp -e 'SOCRATA_APP_TOKEN=<your socrata_app_token>' -e 'CORELOCATION_CMD=<CORELOCATION_CMD>' -- npx -y nyc-restroom-mcp@0.1.1. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.DanielOrtiz0220/nyc-restroom-mcp ?

Oui. Il attend SOCRATA_APP_TOKEN, à renseigner dans sa configuration.

io.github.DanielOrtiz0220/nyc-restroom-mcp est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.DanielOrtiz0220/nyc-restroom-mcp ?

Il est publié par DanielOrtiz0220. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.