Skip to main content
Glama
DOL WHD MCP
by UHQ-Actual

DOL WHD MCP

TypeScript MCP-сервер для данных Министерства труда (DOL) о правоприменении WHD, раскрытии информации OFLC LCA, инспекциях OSHA и возможностях контрактов SAM.gov.

Настройка

npm install
npm run build

Создайте локальный файл .env:

DOL_API_KEY=your-api-key
SAM_GOV_API_KEY=your-sam-gov-api-key
GOOGLE_PLACES_API_KEY=your-google-places-api-key

Сервер также принимает DOL_API_KEY, SAM_GOV_API_KEY или SAM_API_KEY из переменных окружения процесса. Инструменты SAM.gov могут работать в режиме пробного запуска (dry-run) без ключа SAM. Ответы инструментов скрывают URL-адреса запросов и никогда не возвращают ключи.

Related MCP server: Swagger MCP Adapter

Локальный запуск через Stdio

npm start

Пример конфигурации MCP-клиента:

{
  "mcpServers": {
    "dol-whd": {
      "command": "node",
      "args": ["dist/server.js"],
      "cwd": "<project-directory>"
    }
  }
}

Удаленный запуск через HTTP

Сначала выполните сборку, затем запустите Streamable HTTP MCP-эндпоинт:

npm run build
npm run start:http

По умолчанию:

  • MCP-эндпоинт: http://127.0.0.1:8787/mcp

  • Проверка работоспособности: http://127.0.0.1:8787/health

  • Транспорт: MCP Streamable HTTP, без сохранения состояния для каждого запроса.

Настройки удаленного окружения:

DOL_MCP_HOST=127.0.0.1
DOL_MCP_PORT=8787
DOL_MCP_AUTH_TOKEN=change-this-before-exposing
DOL_MCP_ALLOW_ORIGIN=*

Если установлен DOL_MCP_AUTH_TOKEN, MCP-клиенты должны отправлять либо:

Authorization: Bearer change-this-before-exposing

либо:

X-API-Key: change-this-before-exposing

Оставьте хост по умолчанию для доступа только с локальной машины. Чтобы сделать его доступным с другого компьютера, привяжитесь к доступному интерфейсу, например 0.0.0.0, и поместите его за доверенный туннель или обратный прокси-сервер с аутентификацией. API-ключи DOL и SAM.gov остаются на стороне сервера в файле .env.

Инструменты

  • ask_government_data: Направляет вопрос на обычном английском языке в нужную базу данных и выполняет запрос к данным о правоприменении WHD, инспекциях OSHA, раскрытии информации о иностранной рабочей силе/LCA DOL или возможностях SAM.gov.

  • whd_enforcement_query: Запрос к WHD/enforcement с параметрами limit, offset, fields, sort, sort_by и filter_object.

  • whd_enforcement_case: Поиск по числовому case_id.

  • whd_enforcement_metadata: Возвращает полные строки метаданных с необязательными параметрами search, category и limit.

  • whd_enforcement_fields: Возвращает краткие описания полей для построения запросов.

  • dol_datasets_search: Поиск в публичном каталоге наборов данных DOL.

  • lca_disclosure_files: Возвращает официальные URL-адреса раскрытия информации OFLC LCA DOL и макеты записей за квартал финансового года.

  • lca_disclosure_fields: Чтение имен полей из файла XLSX раскрытия информации LCA DOL.

  • lca_search: Поиск данных раскрытия информации OFLC LCA DOL по работодателю, месту работы, должности, SOC, NAICS, статусу, классу визы, заработной плате и датам.

  • lca_employer_profile: Создание профиля работодателя только на основе данных LCA DOL с количеством сертификаций, статистикой заработной платы, популярными должностями, кодами SOC, местами работы, а также флагами зависимости от H-1B и умышленных нарушителей.

  • foreign_labor_files: Обнаружение официальных URL-адресов рабочих книг раскрытия информации OFLC DOL, макетов записей и вспомогательных файлов для LCA, PERM, H-2A, H-2B или CW.

  • foreign_labor_fields: Чтение имен полей из официального файла XLSX раскрытия информации о иностранной рабочей силе DOL.

  • foreign_labor_search: Потоковый поиск по рабочим книгам раскрытия информации о иностранной рабочей силе OFLC DOL и возврат унифицированной схемы для LCA, PERM, H-2A, H-2B и CW-1.

  • osha_fields: Возвращает метаданные для официального набора данных DOL OSHA inspection или violation.

  • osha_inspection_search: Поиск инспекций OSHA по предприятию, штату, городу, NAICS, типу инспекции, безопасности/здоровью и диапазону дат открытия. Опционально объединяет записи о нарушениях/цитированиях, которые не были удалены.

  • osha_inspection_detail: Поиск одной инспекции OSHA по activity_nr и опциональное объединение записей о нарушениях/цитированиях.

  • sam_opportunities_search: Поиск официальных возможностей контрактов SAM.gov по ключевым словам в названии, кодам NAICS, типам закупок, коду резервирования, штату выполнения работ и диапазону дат публикации.

  • sam_opportunity_detail: Поиск одной возможности SAM.gov по noticeId.

  • sam_reference: Возвращает общие коды типов закупок и резервирования SAM.gov.

  • places_search: Поиск в Google Places (New) Text Search для предприятий в определенном районе. Возвращает дедуплицированные результаты с googleMapsUrl для отслеживания источника. Разработан как примитив извлечения для каждого раунда для агента Restaurant Research Agent.

  • places_detail: Поиск одного места Google по идентификатору Place ID. Возвращает часы работы, флаги доставки/обеда в зале и (опционально) editorialSummary и отзывы.

Инструменты LCA используют официальные рабочие книги раскрытия информации OFLC со страницы Performance Data Министерства труда. Рабочие книги могут быть большими, поэтому загруженные файлы кэшируются в .cache/dol-lca/. Вы также можете передать localFile с уже загруженным официальным файлом XLSX раскрытия информации LCA.

Профиль LCA содержит только данные DOL. Уровни одобрения и отказа по петициям H-1B USCIS не включены, если не добавлен отдельный источник данных USCIS.

Инструменты для работы с иностранной рабочей силой считывают страницу Performance Data Министерства труда, чтобы обнаружить текущие ссылки на раскрытие информации, а затем построчно анализируют файлы XLSX. Поддерживаемые программы: LCA, PERM, H-2A, H-2B и CW; поддерживаемые финансовые годы для унифицированного парсера: с 2020 по 2030. Используйте localFile, чтобы указать на уже загруженную официальную рабочую книгу.

Инструменты OSHA используют официальные наборы данных API открытых данных Министерства труда OSHA/inspection и OSHA/violation. Строки нарушений объединяются с инспекциями по activity_nr; строки с delete_flag, равным X, исключаются из объединенного вывода.

Инструменты SAM.gov используют официальный API возможностей по адресу https://api.sam.gov/opportunities/v2/search. Для поиска в реальном времени требуется SAM_GOV_API_KEY или SAM_API_KEY; пробный запуск (dry-run) возвращает примеры возможностей без вызова SAM.gov. API требует границы дат публикации, поэтому postedDaysAgo преобразуется в postedFrom и postedTo в формате MM/dd/yyyy.

Примеры

Фильтрация записей по Айове с задолженностью по заработной плате:

{
  "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 }
    ]
  }
}

Поиск метаданных полей:

{
  "search": "backwage",
  "limit": 20
}

Поиск данных раскрытия информации LCA:

{
  "fiscalYear": 2026,
  "quarter": 1,
  "employerName": "Google",
  "state": "CA",
  "jobTitle": "software",
  "maxResults": 25
}

Создание профиля работодателя DOL LCA:

{
  "fiscalYear": 2026,
  "quarter": 1,
  "employerName": "Google",
  "searchMode": "contains",
  "maxResults": 5000
}

Поиск унифицированных данных раскрытия информации о иностранной рабочей силе DOL:

{
  "visaProgram": "H-2A",
  "fiscalYear": 2026,
  "fiscalQuarter": "Q1",
  "worksiteState": "IA",
  "caseStatus": "Certified",
  "maxItems": 100
}

Поиск сертификаций PERM:

{
  "visaProgram": "PERM",
  "fiscalYear": 2026,
  "fiscalQuarter": "Q1",
  "employerName": "Intel",
  "minAnnualWage": 150000,
  "maxItems": 500
}

Поиск инспекций OSHA с присоединенными цитированиями:

{
  "companyName": "Walmart",
  "state": "TX",
  "includeViolations": true,
  "maxResults": 25
}

Поиск инспекций в строительстве по фактам смертельных случаев/катастроф:

{
  "state": "TX",
  "naicsCode": "23",
  "inspectionType": "A",
  "dateFrom": "2024-01-01",
  "includeViolations": true,
  "maxResults": 100
}

Поиск возможностей SAM.gov в режиме пробного запуска:

{
  "keywords": "cybersecurity",
  "naicsCodes": ["541512"],
  "setAsideType": "SBA",
  "postedDaysAgo": 30,
  "maxResults": 10,
  "dryRun": true
}

Поиск возможностей SAM.gov в реальном времени после добавления ключа SAM:

{
  "keywords": "software development",
  "naicsCodes": ["541512", "541511"],
  "procurementTypes": ["o", "k", "r"],
  "state": "VA",
  "postedDaysAgo": 30,
  "maxResults": 100,
  "dryRun": false
}

Задать вопрос на обычном английском языке:

{
  "question": "Show OSHA inspections and citations for Walmart in TX",
  "maxResults": 10
}

Запрос возможностей SAM.gov в режиме пробного запуска:

{
  "question": "Find cybersecurity solicitations NAICS 541512 in Virginia",
  "maxResults": 10,
  "dryRun": true
}

Запрос записей раскрытия информации о иностранной рабочей силе DOL:

{
  "question": "H-2A certified farm jobs in IA SOC 45-2092 over $20 hourly",
  "maxResults": 10
}

Поиск ресторанов в городе через Google Places:

{
  "query": "restaurants in Hillsdale, MI",
  "includedTypes": ["restaurant"],
  "maxResults": 30,
  "excludeClosed": true
}

Поиск одного места Google по идентификатору Place ID:

{
  "placeId": "ChIJN1t_tDeuEmsRUsoyG83frY4",
  "includeAtmosphere": false
}

Available Tools

28 tools
adv_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.

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.

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.

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.

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_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.

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).

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

    B3.4/5.0

    Scored across 28 tools

    Disambiguation5/5

    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).

    Naming Consistency3/5

    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.

    Tool Count3/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      C
      maintenance
      An MCP server for interacting with the USAspending.gov API, supporting local use with Claude Desktop and cloud deployment with login.gov authentication.
      3
      10
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A 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.
      2
      MIT
    • A
      license
      A
      quality
      Not graded
      maintenance
      Search 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.
      3
      MIT