Skip to main content
Glama
README.md
# New Business Leads — MCP Server

New businesses are the warmest leads there are: they just filed,
they are setting up, and they are buying — insurance, banking,
bookkeeping, a website, phones, signage, supplies. This MCP
server hands an AI assistant the newest Secretary of State
filings in nine states, sliced the way a salesperson actually
works a list: by state, by industry, and by what the business is
likely to need next.

**5,827,957 filings · 9 states · refreshed from the state
sources** (dataset generated 2026-11-26).

## Tools

| Tool | What it does |
|---|---|
| `newest_businesses(state, days, limit)` | The newest filings in one state, or all nine. `days` = filed within the last N days of the dataset's newest filing. |
| `businesses_by_industry(state, category, days, limit)` | New filings in one industry category — every new restaurant, trucking company, or salon in a state. Category slugs come from the filings API's `/v1/categories` taxonomy. |
| `businesses_by_need(state, need, days, limit)` | New filings in one likely-need segment — businesses likely to need a website, bookkeeping, CDL drivers, and the like. |
| `new_business_count(state, days)` | How many filings match, in one lightweight call — size the lead pool before spending quota on the list. |

Every result is a real filing record: business name, entity type,
filing date, city and region (parish/county), industry category,
likely-need segments, and the state charter number that uniquely
identifies it.

## Coverage

| State | Filings | State | Filings |
|---|---|---|---|
| PA | 2,386,129 | IA | 351,617 |
| CT | 1,310,099 | OR | 203,815 |
| NY | 750,671 | LA | 126,710 |
| CO | 536,338 | AK | 103,655 |
| FL | 58,923 | | |

## Run it

```bash
pip install -r requirements.txt
export FILINGS_API_KEY=<your filings API key>
python3 mcp_server.py                    # stdio (default)
python3 mcp_server.py --transport streamable-http --port 8795
```

The server is a thin wrapper over the hosted New Business
Filings API (`https://la-new-business-filings-api.onrender.com`,
overridable with `FILINGS_API_BASE`). It holds no data and no
keys of its own: bring your own filings API key — the
`FILINGS_API_KEY` environment variable for stdio, or the
`X-API-Key` header for the HTTP transport. Every tool call is one
API call under your key, with the API's scope and daily quota
applied exactly as for a direct REST call. The HTTP transport
also answers `GET /health`. Tests:
`python3 -m unittest discover -s tests -v`.

## Honest limits

- **Industry is inferred from the business name** by the API's
  classifier. A filing lands in a category when its name signals
  it; generic names land in an unclassified bucket. Treat a
  category as a strong signal, not a registry fact.
- **Need segments are likely-need inferences** from the filing —
  a reason to call, labeled as such, never a verified requirement
  of the business.
- **`days` is anchored to the dataset, not to today.** It counts
  back from the newest filing in the data (per state, when one
  state is in play), and the dataset is refreshed from the state
  sources on a cycle — this is a current lead list, not a
  real-time filing wire.
- **Coverage is these nine states.** A state outside the list is
  rejected with the valid list, never silently answered with
  another state's data.

## License

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

TDQS

A3.7/5.0

Scored across 4 tools

Disambiguation4/5

Each tool has a reasonably distinct role: two filter by a category slug dimension (industry vs. likely-need), one filters by state/recency, and one returns only a count. The main risk is that businesses_by_industry and businesses_by_need draw from the same /v1/categories taxonomy and differ only in interpretation (classifier signal vs. inferred need), which could still trip up an agent. Descriptions do enough to separate them.

Naming Consistency4/5

All names are snake_case and readable, with a coherent 'businesses_by_<dimension>' family for two of the tools. Minor deviations: newest_businesses uses an adjective-first pattern instead of the by_ convention (e.g. businesses_by_recency), and new_business_count uses singular 'business' where the others use plural.

Tool Count4/5

Four tools is small but each targets a genuinely different query shape (recency/state, industry, need, count-only), so none feel redundant. It is on the lean side for a lead-generation server, but that reflects the narrow domain rather than padding.

Completeness3/5

The surface covers the core lead-pull workflow plus a quota-saving count, but it is missing an obvious companion operation: no tool exposes the /v1/categories taxonomy, yet two tools require a slug from it, leaving agents to guess valid values. There is also no lookup for a specific filing's details, which is a natural follow-up after listing.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues