DOL WHD MCP
DOL WHD MCP
Servidor MCP en TypeScript para datos de cumplimiento de WHD del Departamento de Trabajo, divulgación de LCA de OFLC, inspecciones de OSHA y oportunidades de contrato de SAM.gov.
Configuración
npm install
npm run buildCree un archivo .env local:
DOL_API_KEY=your-api-key
SAM_GOV_API_KEY=your-sam-gov-api-key
GOOGLE_PLACES_API_KEY=your-google-places-api-keyEl servidor también acepta DOL_API_KEY, SAM_GOV_API_KEY o SAM_API_KEY desde el entorno del proceso. Las herramientas de SAM.gov pueden ejecutarse en modo de prueba (dry-run) sin una clave de SAM. Las respuestas de las herramientas redactan las URL de solicitud y nunca devuelven claves.
Related MCP server: Swagger MCP Adapter
Ejecutar localmente a través de Stdio
npm startEjemplo de configuración de cliente MCP:
{
"mcpServers": {
"dol-whd": {
"command": "node",
"args": ["dist/server.js"],
"cwd": "<project-directory>"
}
}
}Ejecutar remotamente a través de HTTP
Compile primero, luego inicie el punto final HTTP MCP Streamable:
npm run build
npm run start:httpValores predeterminados:
Punto final MCP:
http://127.0.0.1:8787/mcpVerificación de estado:
http://127.0.0.1:8787/healthTransporte: MCP Streamable HTTP, sin estado por solicitud.
Controles de entorno remoto:
DOL_MCP_HOST=127.0.0.1
DOL_MCP_PORT=8787
DOL_MCP_AUTH_TOKEN=change-this-before-exposing
DOL_MCP_ALLOW_ORIGIN=*Si se establece DOL_MCP_AUTH_TOKEN, los clientes MCP deben enviar:
Authorization: Bearer change-this-before-exposingo:
X-API-Key: change-this-before-exposingMantenga el host predeterminado para acceso solo local. Para hacerlo accesible desde otra máquina, vincúlelo a una interfaz accesible como 0.0.0.0 y colóquelo detrás de un túnel confiable o proxy inverso con autenticación. Las claves de API de DOL y SAM.gov permanecen en el lado del servidor en .env.
Herramientas
ask_government_data: Dirige una pregunta en inglés sencillo a la base de datos correcta y ejecuta la consulta contra el cumplimiento de WHD, inspecciones de OSHA, divulgaciones de trabajo extranjero/LCA del DOL u oportunidades de SAM.gov.whd_enforcement_query: ConsultaWHD/enforcementconlimit,offset,fields,sort,sort_byyfilter_object.whd_enforcement_case: Busca uncase_idnumérico.whd_enforcement_metadata: Devuelve filas de metadatos completas, consearch,categoryylimitopcionales.whd_enforcement_fields: Devuelve descripciones concisas de campos para la creación de consultas.dol_datasets_search: Busca en el catálogo público de conjuntos de datos del DOL.lca_disclosure_files: Devuelve las URL oficiales de divulgación de LCA de OFLC del DOL y el diseño de registros para un trimestre del año fiscal.lca_disclosure_fields: Lee nombres de campos de un archivo XLSX de divulgación de LCA del DOL.lca_search: Busca en los datos de divulgación de LCA de OFLC del DOL por empleador, lugar de trabajo, título, SOC, NAICS, estado, clase de visa, salario y fechas.lca_employer_profile: Crea un perfil de empleador solo de LCA del DOL con recuentos de certificación, estadísticas salariales, títulos de trabajo principales, códigos SOC, lugares de trabajo, dependientes de H-1B y banderas de infractor intencional.foreign_labor_files: Descubre las URL oficiales del libro de trabajo de divulgación de OFLC del DOL, diseño de registros y archivos auxiliares paraLCA,PERM,H-2A,H-2BoCW.foreign_labor_fields: Lee nombres de campos de un archivo XLSX oficial de divulgación de trabajo extranjero del DOL.foreign_labor_search: Busca en los libros de trabajo de divulgación de trabajo extranjero de OFLC del DOL y devuelve un esquema unificado en LCA, PERM, H-2A, H-2B y CW-1.osha_fields: Devuelve metadatos para el conjunto de datos oficial deinspecciónoviolaciónde OSHA del DOL.osha_inspection_search: Busca inspecciones de OSHA por establecimiento, estado, ciudad, NAICS, tipo de inspección, seguridad/salud y rango de fechas de apertura. Opcionalmente, une registros de violación/citación no eliminados.osha_inspection_detail: Busca una inspección de OSHA poractivity_nry opcionalmente une registros de violación/citación.sam_opportunities_search: Busca oportunidades de contrato oficiales de SAM.gov por palabras clave de título, códigos NAICS, tipos de adquisición, código de reserva, estado del lugar de ejecución y rango de fechas de publicación.sam_opportunity_detail: Busca una oportunidad de SAM.gov pornoticeId.sam_reference: Devuelve códigos comunes de tipo de adquisición y reserva de SAM.gov.places_search: Busca en Google Places (New) Text Search empresas en un área. Devuelve resultados deduplicados congoogleMapsUrlpara el seguimiento de la fuente. Diseñado como una primitiva de recuperación por ronda para el Agente de Investigación de Restaurantes.places_detail: Busca un lugar de Google por ID de lugar. Devuelve horarios, banderas de entrega/comedor y (opcionalmente) editorialSummary y reseñas.
Las herramientas de LCA utilizan libros de trabajo de divulgación oficiales de OFLC de la página de Datos de Rendimiento del DOL. Los libros de trabajo pueden ser grandes, por lo que los archivos descargados se almacenan en caché en .cache/dol-lca/. También puede pasar localFile con un archivo XLSX de divulgación de LCA oficial ya descargado.
El perfil de LCA es solo del DOL. Las tasas de aprobación y denegación de peticiones H-1B de USCIS no se incluyen a menos que se agregue una fuente de datos de USCIS separada.
Las herramientas de trabajo extranjero leen la página de Datos de Rendimiento del DOL para descubrir enlaces de divulgación actuales, luego analizan los archivos XLSX fila por fila. Los programas admitidos son LCA, PERM, H-2A, H-2B y CW; los años fiscales del analizador unificado admitidos son de 2020 a 2030. Use localFile para apuntar a un libro de trabajo oficial ya descargado.
Las herramientas de OSHA utilizan los conjuntos de datos oficiales de la API de Datos Abiertos del DOL OSHA/inspection y OSHA/violation. Las filas de violación se unen a las inspecciones por activity_nr; las filas con delete_flag igual a X se excluyen de la salida unida.
Las herramientas de SAM.gov utilizan la API de Oportunidades oficial en https://api.sam.gov/opportunities/v2/search. Las búsquedas en vivo requieren SAM_GOV_API_KEY o SAM_API_KEY; las búsquedas de prueba devuelven oportunidades de muestra sin llamar a SAM.gov. La API requiere límites de fecha de publicación, por lo que postedDaysAgo se convierte a postedFrom y postedTo en formato MM/dd/yyyy.
Ejemplos
Filtrar registros de Iowa con salarios atrasados:
{
"limit": 10,
"fields": ["case_id", "trade_nm", "st_cd", "bw_atp_amt", "findings_end_date"],
"sort": "desc",
"sort_by": "bw_atp_amt",
"filter_object": {
"and": [
{ "field": "st_cd", "operator": "eq", "value": "IA" },
{ "field": "bw_atp_amt", "operator": "gt", "value": 0 }
]
}
}Buscar metadatos de campo:
{
"search": "backwage",
"limit": 20
}Buscar datos de divulgación de LCA:
{
"fiscalYear": 2026,
"quarter": 1,
"employerName": "Google",
"state": "CA",
"jobTitle": "software",
"maxResults": 25
}Crear un perfil de empleador de LCA del DOL:
{
"fiscalYear": 2026,
"quarter": 1,
"employerName": "Google",
"searchMode": "contains",
"maxResults": 5000
}Buscar divulgaciones unificadas de trabajo extranjero del DOL:
{
"visaProgram": "H-2A",
"fiscalYear": 2026,
"fiscalQuarter": "Q1",
"worksiteState": "IA",
"caseStatus": "Certified",
"maxItems": 100
}Buscar certificaciones PERM:
{
"visaProgram": "PERM",
"fiscalYear": 2026,
"fiscalQuarter": "Q1",
"employerName": "Intel",
"minAnnualWage": 150000,
"maxItems": 500
}Buscar inspecciones de OSHA con citaciones unidas:
{
"companyName": "Walmart",
"state": "TX",
"includeViolations": true,
"maxResults": 25
}Buscar inspecciones de construcción por fatalidad/catástrofe:
{
"state": "TX",
"naicsCode": "23",
"inspectionType": "A",
"dateFrom": "2024-01-01",
"includeViolations": true,
"maxResults": 100
}Buscar oportunidades de SAM.gov en modo de prueba:
{
"keywords": "cybersecurity",
"naicsCodes": ["541512"],
"setAsideType": "SBA",
"postedDaysAgo": 30,
"maxResults": 10,
"dryRun": true
}Buscar oportunidades de SAM.gov en vivo después de agregar una clave SAM:
{
"keywords": "software development",
"naicsCodes": ["541512", "541511"],
"procurementTypes": ["o", "k", "r"],
"state": "VA",
"postedDaysAgo": 30,
"maxResults": 100,
"dryRun": false
}Hacer una pregunta en inglés sencillo:
{
"question": "Show OSHA inspections and citations for Walmart in TX",
"maxResults": 10
}Solicitar oportunidades de SAM.gov en modo de prueba:
{
"question": "Find cybersecurity solicitations NAICS 541512 in Virginia",
"maxResults": 10,
"dryRun": true
}Solicitar registros de divulgación de trabajo extranjero del DOL:
{
"question": "H-2A certified farm jobs in IA SOC 45-2092 over $20 hourly",
"maxResults": 10
}Buscar en Google Places restaurantes en una ciudad:
{
"query": "restaurants in Hillsdale, MI",
"includedTypes": ["restaurant"],
"maxResults": 30,
"excludeClosed": true
}Buscar un lugar de Google por ID de lugar:
{
"placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
"includeAtmosphere": false
}Available Tools
28 toolsadv_estimateEstimate Annual Dollar Volume (ADV) and FLSA $500K Coverage FlagA
Deterministic ADV screening calculator for FLSA enterprise-coverage triage. Encodes Methods 1-4 (per-employee, capacity-derived, chain per-unit, format default), the geographic multiplier, ±40% range math, and the $500,000 FLSA flag (Above / Below / Borderline / Insufficient Data). NOT a coverage determination — screening signal only. Method selection priority: chain per-unit ADV > employee count > capacity input > format default. Method 2 capacity input priority (highest first): seatCount > occupantLoad (×0.85 → seats) > squareFootage (BOH subtract + IBC 15-sqft-per-occupant + ×0.85) > parkingSpaces (× format-typical seats-per-space). Always pass capacitySource so the audit trail records where the number came from. Best practice: read employeeCount from osha_inspection_search results and pass it in here when an OSHA inspection record exists for the establishment (employee_count is a required OSHA field). Returns separate columns for estimate, range, method, capacity_input, capacity_source, flsa_flag, confidence, and a derivation-chain notes string.
Inputs: format, areaType, bohRatio, chainFlag, +12 more.
ask_government_dataAsk Government DataA
Route a plain-English question to the right source: WHD enforcement, OSHA inspections, DOL foreign-labor/LCA disclosures, or SAM.gov contract opportunities.
Inputs: question (required), dryRun, maxResults.
business_entity_detailGet Business Entity Detail via OpenCorporatesA
Look up one entity by jurisdiction + state company number via OpenCorporates. Use after business_entity_search to get the full canonical record (full address, previous names, branch info, dissolution date, registry URL). Free with attribution.
Inputs: companyNumber (required), jurisdictionCode (required), dryRun.
business_entity_searchSearch State Business Registration via OpenCorporatesA
Search Secretary of State / DFI business registrations via OpenCorporates (sourced directly from official state registries; data lineage is auditable). Use to map a trade name to its legal entity, identify the registered agent for service of process, find related entities under common ownership, or confirm an establishment is an active legal entity. Free tier is ~50 lookups/day with attribution; higher volume requires an OPENCORPORATES_API_KEY env var. For US states, pass the two-letter state code (MI, IL, etc.) as jurisdictionCode and it auto-prefixes to OpenCorporates' us_xx format. Returns name, company number, status, type, incorporation date, registered address, previous names, and an opencorporates_url for source-tracing.
Inputs: query (required), dryRun, inactive, maxResults, +5 more.
census_area_profileResolve US Place to Population, Area Tier, and Multiplier BaseA
Look up a US city/town/CDP via the Census geocoder, then fetch its total population from the ACS 5-year estimate. Returns: total population, area tier (major_metro / mid_metro / small_or_rural matching the adv_estimate multiplier table), row-scaling tier and target (matching the Restaurant Research Agent's row-scaling formula max(pop/250, floor)), county FIPS for usaspending_award_search, state FIPS, place FIPS, and the high-cost-of-living-state flag for CA/NY/MA/WA/HI. Use this BEFORE adv_estimate when sizing an enforcement universe or running a restaurant research workflow against an unfamiliar city. Free Census API; no key required for basic queries.
Inputs: city, state, dryRun, acsYear, +2 more.
dol_datasets_searchSearch DOL DatasetsC
Search the public DOL v4 datasets catalog. This endpoint does not require the API key.
Inputs: limit, agency, search.
foreign_labor_fieldsList DOL Foreign Labor Disclosure FieldsC
Read field names from an official DOL foreign-labor disclosure XLSX file.
Inputs: socCode, jobTitle, maxItems, localFile, +7 more.
foreign_labor_filesGet DOL Foreign Labor Disclosure FilesA
Discover official DOL OFLC disclosure workbook, record-layout, and auxiliary file URLs for LCA, PERM, H-2A, H-2B, or CW.
Inputs: fiscalYear, visaProgram, fiscalQuarter.
foreign_labor_searchSearch DOL Foreign Labor Disclosure DataA
Stream-search and normalize DOL OFLC disclosure XLSX records across LCA, PERM, H-2A, H-2B, and CW programs. ROUTE BY VISA PROGRAM: H-2A is AGRICULTURAL seasonal labor (farms, ranches, NAICS 11) — never use H-2B for farms. H-2B is NON-AGRICULTURAL seasonal labor (landscaping, hospitality, construction, seafood processing) — never use H-2A here. LCA covers H-1B / H-1B1 / E-3 specialty occupations (tech, healthcare, engineering, academics) and is wrong for ag or seasonal labor. PERM is permanent labor certification (green-card sponsorship). CW is CNMI-only. DO NOT call this tool for general restaurant or business research — restaurants almost never sponsor visa workers; use places_search instead. The first call for a given (visaProgram, fiscalYear, fiscalQuarter) downloads the official disclosure workbook and builds a gzipped JSONL cache (slow, can take 30-90s for big LCA quarters); subsequent calls hit the cache in 1-3 seconds. To avoid first-call timeouts, narrow with maxItems and one or more of employerName, worksiteState, socCode, or caseStatus.
Inputs: socCode, jobTitle, maxItems, localFile, +7 more.
lca_disclosure_fieldsList DOL LCA Disclosure FieldsC
Read field names from a DOL LCA disclosure XLSX file.
Inputs: city, state, dateTo, quarter, +13 more.
lca_disclosure_filesGet DOL LCA Disclosure File URLsA
Return official DOL OFLC LCA disclosure, Appendix A, worksite, and record-layout URLs for a fiscal year quarter.
Inputs: quarter, fiscalYear.
lca_employer_profileBuild DOL LCA Employer ProfileB
Build a DOL LCA-only employer profile with certification counts, wage statistics, top job titles, SOC codes, worksites, H-1B dependent, and willful violator flags.
Inputs: employerName (required), city, state, dateTo, +13 more.
lca_searchSearch DOL LCA Disclosure DataB
Search official DOL OFLC LCA disclosure XLSX data by employer, worksite, job title, SOC, NAICS, status, visa class, wage, and dates.
Inputs: city, state, dateTo, quarter, +13 more.
osha_fieldsList OSHA Dataset FieldsC
Return metadata fields for the official DOL OSHA inspection or violation dataset.
Inputs: limit, search, dataset.
osha_inspection_detailGet OSHA Inspection DetailA
Look up one OSHA inspection by activity number and optionally join violation/citation records.
Inputs: activityNumber (required), includeViolations.
osha_inspection_searchSearch OSHA InspectionsB
Search official DOL OSHA inspection records and optionally join non-deleted violation/citation records by activity_nr.
Inputs: city, state, dateTo, offset, +7 more.
osha_state_plan_lookupLook Up OSHA Jurisdiction by StateA
Static reference: returns the OSHA jurisdiction tier (federal_osha / public_only_state_plan / complete_state_plan), program name (MIOSHA, Cal/OSHA, IOSHA, etc.), administering agency, expected reporting lag in days for state-plan submissions to federal OIS, public-records request path, and a one-line caveat the agent can paste alongside osha_inspection_search results. Use this when an agent's OSHA query in MI / MN / IA / IN / CA / WA returns sparse recent data — the lookup tells the agent (and the user) why and how to get fresher data.
Inputs: stateCode (required).
places_detailGet Google Place DetailA
Look up one Google place by Place ID. Returns hours, delivery/dine-in flags, and other detail fields. Set includeAtmosphere=true to also fetch editorialSummary and reviews (higher pricing tier).
Inputs: placeId (required), dryRun, includeAtmosphere.
places_searchSearch Google PlacesA
Search Google Places (New) Text Search for businesses in an area. Designed as a per-round retrieval primitive for the Restaurant Research Agent. Returns deduplicated results with googleMapsUrl for source-tracing. Auto-pages up to maxResults (Google caps at ~60 per query). Defaults to includedTypes=['restaurant'] and excludeClosed=true.
Inputs: query (required), dryRun, minRating, cityFilter, +5 more.
sam_opportunities_searchSearch SAM.gov Contract OpportunitiesA
Search the official SAM.gov Opportunities API by title keywords, NAICS codes, procurement type, set-aside, contracting office state, and posted date range. Place-of-performance state and city filters are applied client-side because SAM.gov's v2 API does not support them server-side. Note: SAM.gov returns SOLICITATIONS (announcements), not awarded contracts; awardAmount is null on most rows. For awarded federal contracts with dollar amounts, use USAspending.gov instead.
Inputs: state, dryRun, keywords, maxResults, +7 more.
sam_opportunity_detailGet SAM.gov Opportunity DetailA
Look up one SAM.gov opportunity by notice ID. Live mode requires a SAM.gov API key in the environment.
Inputs: noticeId (required), dryRun.
sam_referenceList SAM.gov CodesA
Return common SAM.gov procurement type and set-aside codes used by the opportunity search tool.
Inputs: no named parameters.
sos_portal_lookupLook Up State Business Registration Portal by StateA
Static reference: returns the URL and agency for the Secretary of State (or DFI / Corporation Commission, depending on the state) business-entity search portal for a given US state. Use this when the user wants to verify an entity manually, file a records request, or use a state's own search form. Includes bulk-download availability and pricing where published. The 10 Midwest states are verified with detailed notes; the other 40 states are encoded with general portal URLs that should be sanity-checked before enforcement use. For programmatic lookups, prefer business_entity_search via OpenCorporates.
Inputs: stateCode (required).
usaspending_award_searchSearch USAspending.gov Federal AwardsA
Search USAspending.gov for federal contract and assistance awards with KNOWN obligated dollar amounts. Use this when the user asks 'how much was contract X for' or 'all federal contracts in Y over $Z' — SAM.gov returns solicitations not awards. No API key required. Filters by NAICS, PSC, recipient, awarding agency, place-of-performance state/city/county FIPS, award amount range, and start-date range. Defaults to contract award types (A, B, C, D) for the past 12 months.
Inputs: dryRun, sortBy, keywords, pscCodes, +15 more.
whd_enforcement_caseGet WHD Enforcement CaseB
Look up WHD Enforcement records by numeric case_id.
Inputs: case_id (required), fields.
whd_enforcement_fieldsList WHD Enforcement FieldsB
Return concise WHD Enforcement field names, labels, descriptions, categories, data types, and units.
Inputs: limit, search, category.
whd_enforcement_metadataGet WHD Enforcement MetadataB
Return metadata rows for the WHD Enforcement (WHISARD) dataset, optionally filtered by text.
Inputs: limit, search, category.
whd_enforcement_queryQuery WHD Enforcement RecordsA
Query concluded Wage and Hour Division compliance actions from the DOL WHD Enforcement (WHISARD) dataset. IMPORTANT date semantics: findings_end_date is the date violations STOPPED occurring, NOT the date the case was concluded. Investigation lag from end-of-violation to case-closed is typically 6-24 months. When filtering for 'cases from 2024-2025,' use a wider findings_end_date window (e.g., findings_end_date >= 2022-10-01) and rank by recency; a strict 2024-2025 findings filter will return an artificially small slice. The ld_dt field is the dataset load date, not the case-conclusion date.
Inputs: sort, limit, fields, offset, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Each tool targets a distinct data source or operation, such as FLSA screening, business entity lookup, OSHA inspections, foreign labor disclosures, places search, SAM.gov opportunities, USAspending awards, and WHD enforcement. Overlaps are minimal, and even similar tools like foreign_labor_files and lca_disclosure_files serve different datasets (OFLC vs. LCA).
Tool names use snake_case but lack a consistent verb_noun pattern (e.g., adv_estimate, ask_government_data, osha_fields, sos_portal_lookup). Some are descriptive phrases, others are noun-first. The mix of styles and lack of uniformity reduces predictability.
28 tools is on the higher side for a single server, covering multiple domains (WHD, OSHA, foreign labor, entities, places, SAM, USAspending). While each tool has a purpose, the breadth could be split into more focused servers. The count feels heavy but not extreme.
The server covers a wide range of DOL-related data sources, but there are notable gaps such as missing tools for WHD wage determinations, child labor, or DOL regulatory guidance. Some foreign labor tools are present but not exhaustive. The surface is broad but not fully comprehensive.
Maintenance
Related MCP Connectors
MCP server for the GovContractScout US government contracts API: search, NAICS, match scoring.
An MCP server that provides congressional transcripts
Public MCP server for discovering open jobs. Search, filter, and get application links.
Related MCP Servers
FlicenseBqualityCmaintenanceAn MCP server for interacting with the USAspending.gov API, supporting local use with Claude Desktop and cloud deployment with login.gov authentication.310-- AlicenseAqualityDmaintenanceA TypeScript-based MCP server that integrates with Swagger/OpenAPI specifications to expose API endpoints as tools for Large Language Models (LLMs), enabling natural language interaction with any OpenAPI-compliant API.49MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive MCP server implemented in TypeScript that provides access to the German BIM Portal REST API, enabling querying of organizations, building properties, LOINs, domain models, and AIA resources through natural language.2MIT
- AlicenseAqualityNot gradedmaintenanceSearch official US government data from any MCP client: building permits from 10 city open-data portals, federal contract opportunities from SAM.gov with contracting-officer contacts, and the CMS NPI healthcare-provider registry. Open-source TypeScript server; data delivered via Apify's pay-per-result actors using your own Apify token.3MIT