company-research
# Company Research — MCP Server
I collect new business filings from Secretary of State
records in nine states, and this is the research tool I built
on top of that collection. When I look into a company, I want
one answer first: where does this name actually appear, and
what does its filing footprint look like? A name search here
returns a profile built from the real matches, the filing
rows themselves when you want them, and the industry and
state totals around them.
**5,827,957 filings · 9 states · my own live filings API**
(dataset generated 2026-11-26, refreshed from the state
sources).
## Tools
| Tool | What it does |
|---|---|
| `research_company(name)` | A profile of one company name built from its real filing matches: the exact match count, which states the matches sit in, the earliest and latest filing dates among the rows analyzed, the top industry categories and regions among them, and example filings. |
| `company_filings(name, state, limit)` | The actual filing rows behind a name: business name, entity type, filing date, city and region, industry category, likely-need segments, and the state charter number. Optional state filter. |
| `industry_overview(state)` | Filing counts by industry category across the whole dataset, or for one state: construction, real estate, professional services, and the rest of the taxonomy, with live counts. |
| `state_overview(state)` | One state at a glance: its filing total, its top ten industry categories, how many filings carry a region, and its top ten regions by filings. |
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.
## 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
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 --port 8796
```
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 a research profile on the name "Summit":
```json
{"company_query": "Summit",
"match_count": 6229,
"rows_analyzed": 300,
"states_present": [
{"state": "CO", "rows": 138}, {"state": "FL", "rows": 46},
{"state": "NY", "rows": 43}, {"state": "OR", "rows": 33},
{"state": "CT", "rows": 11}, {"state": "IA", "rows": 10},
{"state": "PA", "rows": 8}, {"state": "AK", "rows": 6},
{"state": "LA", "rows": 5}],
"earliest_filing_date_seen": "2026-09-18",
"latest_filing_date_seen": "2027-01-01",
"top_categories": [
{"category": "Other / Unclassified", "rows": 214},
{"category": "Professional Services", "rows": 26},
{"category": "Construction & Trades", "rows": 17}],
"example_filings": [
{"name": "Summit Trading Strategies LLC", "state": "FL",
"city": "Weston", "filing_date": "2027-01-01",
"entity_type": "LLC", "charter_number": "L26000572562",
"category": "Professional Services"}]}
```
Read it the way I do: 6,229 filings carry "Summit" in the
name, the newest 300 sit mostly in Colorado, and most of
them are generic names my classifier leaves unclassified.
That is a footprint, not a single company, and the tool says
so in its own output.
## Honest limits
- **The name match is a substring match.** A common name
returns every filer whose name contains it, related or
not. `match_count` is the API's exact total; the
breakdowns in a profile cover the newest 300 matches,
because the API returns matches newest first.
- **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 (3,949,691 of the 5,827,957 filings). Treat a
category as a strong signal, not a registry fact.
- **Name searches are slow on the hosted API.** A search
scans the filings store and takes about a minute a page;
a research profile reads up to three pages. The overviews
answer in seconds. This is the free hosted tier being
honest iron, not a queue you can pay to skip.
- **Dates are as the state sources publish them.** The
dataset's filing dates run from 1753 to 2029; a few
records carry future dates exactly as the source printed
them, like the 2027-01-01 filings in the example above.
- **Coverage is these nine states.** A state outside the
list is rejected with the valid list, never silently
answered with another state's data.
- **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. A research profile
uses up to three calls.
## License
MIT — see `LICENSE`. The filings data is compiled from
public Secretary of State records and served by my New
Business Filings API.
TDQS
Scored across 4 tools
Each tool targets a distinct granularity: company-level aggregate profile, raw filing rows, industry-wide counts, and state-wide statistics. The only mild overlap is research_company vs company_filings, both keyed on company name, but the descriptions clearly separate a summarized profile from paginated raw rows.
All names are lowercase snake_case and follow a predictable {entity}_{view} shape (company_filings, industry_overview, state_overview), with research_company being the single verb-first deviation. The pattern is still immediately readable and consistent enough for an agent to infer the family.
Four tools is lean but each covers a genuinely different axis (company detail, company rows, industry totals, state totals), so nothing feels redundant. It sits at the low end of the ideal range, and a fifth tool for cross-filtering would round it out.
The surface covers the core research loop: profile a company, pull its filings, and contextualize via industry and state aggregates. Gaps are minor but real: no date-range or industry/entity-type filtering on company_filings, no combined industry-by-state view, and no trend-over-time operation.