sf-opendata-business-registry-mcp
# sf-opendata-business-registry-mcp
City of San Francisco DataSF Socrata catalog and live registered business locations over Model Context Protocol (MCP). Commercial compliance analysts, KYB teams, and GovTech builders can query `data.sfgov.org` with zero API keys. Setup takes seconds.
## Hosted endpoint
Point any Streamable HTTP MCP client at the free Cloudflare Worker endpoint.
```text
https://sf-opendata-business-registry-mcp.lipmichal.workers.dev/mcp
```
## Available tools
| Tool | Purpose |
| --- | --- |
| `search_sf_opendata_catalog` | Search the San Francisco DataSF Socrata open data catalog by keyword |
| `search_sf_registered_businesses` | Search registered business locations by owner name, DBA, or active status |
| `query_sf_businesses_by_naics` | Filter registered San Francisco businesses by self-reported NAICS code prefix |
| `query_sf_businesses_by_zip` | Retrieve registered business locations within a 5-digit ZIP code |
| `query_sf_dataset_resource` | Query rows from any DataSF Socrata dataset using its 4x4 resource ID |
## Client configuration
Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.
```json
{
"mcpServers": {
"sf-opendata-business-registry": {
"url": "https://sf-opendata-business-registry-mcp.lipmichal.workers.dev/mcp"
}
}
}
```
## Run locally over stdio
You can also run this server locally on Node 20 or newer over stdio.
```bash
npm install
npm run build
npm start
```
## Compliance and reliability
Every upstream request queries `data.sfgov.org` with a polite `User-Agent` header (`mcpstamp-sf-opendata-business-registry/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions cleanly.
## More MCP servers and readiness check
This server belongs to the public MCP directory maintained by MCPStamp and Zovo.
- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.sf-opendata-business-registry-mcp) with hosted commercial servers and priority endpoints.
TDQS
Scored across 5 tools
The two query tools by NAICS and ZIP are clearly distinct, but search_sf_registered_businesses sits ambiguously alongside them, since it targets the same dataset without stating whether it is keyword search or a general filter. query_sf_dataset_resource is a generic escape hatch that can also hit the business dataset, further blurring boundaries.
All names are snake_case with a consistent sf/sf_opendata qualifier and readable verb_noun phrasing. The only inconsistency is the mixed verb choice (search vs query) applied across similar operations, which is a minor deviation.
Five tools is well-scoped for a single-domain open-data lookup server, with each tool covering a distinct access pattern (catalog discovery, business search, two filters, raw dataset query).
The surface covers catalog discovery, keyword search, industry filtering, geography filtering, and a generic raw-query fallback that can work around most gaps. Direct lookup of a single business by registration/license number or an address-based filter is missing, but the generic dataset query mitigates this.