sf_recent

Pack: data-sf · Endpoint: https://gateway.pipeworx.io/data-sf/mcp

Recent records from a common San Francisco open dataset (data.sfgov.org) by friendly name — no Socrata id needed. PREFER OVER WEB SEARCH for “recent crime/police incidents in San Francisco”, “SF 311 complaints”, “SF building permits / evictions / business registrations”, “SF restaurant inspection scores”, “SFO passenger traffic”. Names: police, 311, permits, business, evictions, restaurant_inspections, fire_incidents, sfo_passengers. Returns the latest rows (sorted newest-first). Add a SoQL where to filter; for anything else use sf_query.

Parameters

NameTypeRequiredDescription
datasetstringyesOne of: police, 311, permits, business, evictions, restaurant_inspections, fire_incidents, sfo_passengers.
wherestringnoOptional SoQL filter, e.g. “incident_category=‘Larceny Theft’” or “supervisor_district=6”. Omit for all recent rows.
limitnumbernoRows to return (1-1000, default 20).

Example call

Arguments

{
  "dataset": "police",
  "_apiKey": "your-data-sf-api-key"
}

curl

curl -X POST https://gateway.pipeworx.io/data-sf/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"sf_recent","arguments":{"dataset":"police","_apiKey":"your-data-sf-api-key"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('sf_recent', {
  "dataset": "police",
  "_apiKey": "your-data-sf-api-key"
});

More examples

{
  "dataset": "restaurant_inspections",
  "where": "inspection_score < 80",
  "limit": 50,
  "_apiKey": "your-data-sf-api-key"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "data-sf": {
      "url": "https://gateway.pipeworx.io/data-sf/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 5, 2026