Skip to main content
Glama
New York New Businesses MCP Server

New York New Businesses MCP Server

README.md
# New York New Businesses: MCP Server

I collect new business filings from Secretary of State
records in nine states, and this is the New York slice of that
collection. When I work one state, I want its newest filings
first, cut by industry or by what a new business is likely to
need next, and I want the size of the pool before I spend
quota pulling the list. That is exactly what these four tools
do, with the state fixed to New York so nothing from the other
eight states ever leaks into an answer.

**750,671 filings in New York · part of 5,827,957
filings across 9 states · my own live filings API**
(dataset generated 2026-11-26, refreshed from the state
sources).

## Tools

| Tool | What it does |
|---|---|
| `newest_businesses(days, limit)` | The newest filings in New York: business name, entity type, filing date, city and region, industry category, likely need segments, and the state charter number. days means filed within the last N days of the dataset's newest New York filing. |
| `businesses_by_category(category, days, limit)` | New New York filings in one industry category, named by a slug from the filings API taxonomy: every new restaurant, trucking company or salon filed in the state. |
| `businesses_by_need(need, days, limit)` | New New York filings in one likely need segment: businesses likely to need bookkeeping, a website, commercial insurance and the like. |
| `state_count(days)` | How many New York filings are in the dataset, in total or within a filing age window, without pulling the list. |

Every filing row is a real record from a Secretary of State
source: name as filed, entity type, filing date, city,
county or parish, and the charter number that identifies it.

## This slice

| | |
|---|---|
| Filings in New York | 750,671 |
| Filed in the last 90 days of the dataset | 64,828 |
| Largest classified industry | Professional Services, 32,635 |
| Flagged as likely to need bookkeeping | 678,541 |

Top classified industries in New York (the rest of the taxonomy
is in the API's `/v1/categories` answer for the state):

| Industry | Filings |
|---|---|
| Professional Services | 32,635 |
| Construction & Trades | 31,051 |
| Real Estate & Property | 29,797 |

## Run it

1. Install the one dependency, the official Python MCP SDK:

   ```bash
   pip install -r requirements.txt
   ```

2. Get a free key from my filings API. Keys are self serve:
   send a POST to `/v1/keys` with your email and the key is
   issued at once, 50 calls a day on the free tier.

   ```bash
   curl -X POST https://la-new-business-filings-api.onrender.com/v1/keys \
     -H 'Content-Type: application/json' \
     -d '{"email": "you@example.com"}'
   ```

3. Set the key and start the server over stdio, the default
   transport:

   ```bash
   export FILINGS_API_KEY=<redacted>
   python3 mcp_server.py
   ```

For a hosted setup, the HTTP transport answers on `/mcp`,
takes the key in the `X-API-Key` header, and serves a plain
`GET /health`:

```bash
python3 mcp_server.py --transport streamable-http
```

With no key set, the server still boots and lists its tools;
a tool call answers with a plain message that a key is
needed and where to get a free one. The API base URL can be
overridden with `FILINGS_API_BASE`. Tests:
`python3 -m unittest discover -s tests -v`.

## Worked example

Asking for the newest New York filings from the last 90 days
of the dataset, five at a time (trimmed here to the fields
that identify a filing; the real answer carries the full
record):

```json
{
 "count": 64828,
 "limit": 5,
 "offset": 0,
 "age_reference_date": "2026-11-24",
 "results": [
  {
   "name": "ZYM BEAUTY INC.",
   "state": "NY",
   "city": "Flushing",
   "filing_date": "2026-11-24",
   "entity_type": "Corporation",
   "charter_number": "8140782",
   "category": "Beauty & Personal Care"
  },
  {
   "name": "ZX & BZ PROPERTIES LLC",
   "state": "NY",
   "city": "CORONA",
   "filing_date": "2026-11-24",
   "entity_type": "LLC",
   "charter_number": "8140561",
   "category": "Real Estate & Property"
  }
 ]
}
```

Read it the way I do: 64,828 New York filings landed
in the last 90 days of the dataset, the newest dated
2026-11-24, and the first of them is ZYM BEAUTY INC.,
filed 2026-11-24 in Flushing.
That is a lead list with the ink still wet, straight from
the state source.

## Honest limits

- **Industry category is inferred from the business name**
  by my classifier. A filing lands in a category when its
  name signals it; generic names land in Other /
  Unclassified (535,657 of the 750,671
  New York filings). Treat a category as a strong signal, not
  a registry fact.
- **Need segments are likely need inferences.** Every new
  business needs a website and a phone setup in this data,
  and 678,541 of the New York filings are flagged
  as likely to need bookkeeping. A segment is a reason to
  call, never a verified requirement.
- **Filtered queries are the fast path on this API.** State,
  category and need filters are indexed and answered in
  seconds during testing. The slow path on the hosted API
  is a free text name search, about a minute a page, and
  this server never runs one. The host is a free tier and
  can answer 502 while it cycles; the client retries once.
- **Dates are as the state source publishes them.** The
  dataset's newest New York filing is dated 2026-11-24, and
  the age windows anchor to that date, not to today. A few
  records across the dataset carry future dates exactly as
  the source printed them. The dataset is refreshed from
  the state sources; it is not a real time feed.
- **Coverage is New York only.** The other eight states live
  in their own slice servers and in the full filings API.
  This server cannot return another state's filings.
- **Your key, your quota.** Every tool call is a call to my
  filings API under your own key, with the same scope and
  daily limits as a direct REST call.

## License

MIT: see `LICENSE`. The filings data is compiled from public
Secretary of State records and served by my New Business
Filings API.