For developers

The MCP server for AI assistants and the JSON API return the same records as the pages. Every answer carries its source and the OSHA caveats.

MCP server

Connect an assistant to https://openinjury.org/mcp. No key is needed, and calls are limited by address. A key lifts the limit to your plan.

Connect an AI assistant

JSON API

The tool list is at https://openinjury.org/api/v1/tools. You call a tool with GET and query arguments or POST and a JSON body, using your key as a Bearer token.

Tools

search_worksitesFind worksites by name, with optional state, city or NAICS industry code. Results are ordered by name match, then by name, never by rate. Returns name, address, industry, site_id and the latest year reported.
get_worksiteThe injury summary a worksite filed with OSHA for each year, the computed rates, the range, the BLS national rate and the comparison, with caveats and sources.
get_employerTotals across the worksites that filed under one employer tax ID, by year, how many worksites the totals are based on, and the first 50 worksites by name.
get_parent_companyFor a parent-company lookup, this tool returns the parent company and the employers linked to it, with the GLEIF record that proves each link. For a name lookup, it returns up to 25 parent companies whose name starts with the text given. A link exists only when the employer's name and one worksite address match its GLEIF record.
compare_worksitesThe tool puts two to four worksites side by side. It shows the latest figures filed with OSHA, the three-year rate with its range, and the BLS national rate. It lists worksites in the order given, never by rate. When two ranges overlap, the answer says the figures do not show a difference.
get_industry_benchmarkThe BLS national injury rate for a NAICS industry code, by year and by establishment size class, with quartiles where BLS publishes them.
list_industriesThe tool lists NAICS industry codes with an industry page, the industry name, and the number of worksites with a page. You can filter by a word in the name or by the start of the code. The tool returns at most 50 rows in code order.
find_contractorsThe tool lists worksites in one state and one NAICS trade code in name order, never by rate. It shows each worksite's three-year rate, range, and hours. You can use the list to build a shortlist for vetting, then read each worksite's own record.
get_inspectionsOSHA lists inspections opened since 2012 for one worksite or by year across one employer's worksites. For one worksite, the tool returns the latest 25 inspections with totals. It returns inspection type, citation items by class (serious, willful, repeat, other), initial and current penalties, and whether citations are contested or final. It includes only inspections whose name and street address match the worksite. A contested or non-final citation is OSHA's allegation, not a finding.
get_severe_injuriesOSHA severe injury reports cover in-patient hospitalization, amputation, and loss of an eye. The tool counts reports by year for one worksite or sums them across one employer's worksites. It covers Federal OSHA states only, from 2015 to November 2025. It counts only reports whose name and street address match the worksite. It returns no report text or detail about the injured worker.
search_minesSearch MSHA's open government data by mine name, operator name or controller name, or by exact MSHA mine ID, optionally in one state. The tool returns each mine's ID, name, operator, controller, county, state, mine type, commodity and MSHA status. It holds only mines with operator hours reported to MSHA for 2016 or a later year. It orders results by name, then mine ID, never by rate or by count.
get_mineGet one mine's record from MSHA open government data by year since 2016. The record includes operator employee hours, operator and contractor employee injuries as reported to MSHA with degree codes 01 to 06, the injury rate per 200,000 hours for a full year with 20,000 hours or more, inspections and inspection hours, violations with significant and substantial and contested counts, with vacated ones left out, proposed, current and paid penalties, controller and operator history with dates, and the source file of every figure.
get_mine_controllerGet one mine controller's record from MSHA open government data. The record sums hours, injuries as reported to MSHA, violations and penalties by year across the mines it held for the most days of each year. It lists the mines it has controlled, showing the first 50 by name and the dates it held each. The tool returns only companies; MSHA controllers that are individual persons have no record here.
get_coverageThe tool shows who must report to OSHA, how many worksites filed, and how that compares with all establishments in the Census County Business Patterns count, nationally or for one state. With a NAICS code, it also shows the number of worksites with a page in that industry.
get_data_sourcesThe public files behind the figures, when each was fetched, and where the method is described.

Keys never change what a page shows or the order of results. Nothing is ranked by rate, in the API or anywhere else.

Free developer key

Free keys are not available yet. Try again later.

Paid plans

Paid plans are not on sale yet. The free key and the MCP server work now.