Msha Mines logo

Msha Mines

Searches US MSHA mine records and retrieves mine status, inspections, violations, penalties, employment, and production.

Install Msha Mines

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "msha-mines": {
      "command": "npx",
      "args": [
        "-y",
        "@pipeworx/mcp-msha-mines"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 3 tools correctly (4d ago).

Overview

Msha Mines MCP server connects AI agents to US Mine Safety and Health Administration records for mine discovery and status research. Its tools search by operator, controller, or mine name, then retrieve details for a known MSHA Mine ID, including recent inspections, violations, penalties, employment, and coal production. Data comes from a weekly refreshed local mirror of MSHA bulk files and each response includes its data timestamp. Reach for it when an agent needs recent mine safety or operating information rather than unrestricted historical records.

Use cases

  • Find mines operated by a company
  • Check a mine's recent inspections and violations
  • Count violations for a mine during a year
  • Review recent mine employment and coal production
  • Identify an MSHA Mine ID from a mine name

Key features

  • Search mines by operator, controller, or name
  • Retrieve mine status, type, commodity, and ownership
  • List recent inspections and violations with penalties
  • Count violations by year, issuer, and S&S status
  • Return quarterly employment and coal production
  • Expose data timestamps and bounded-history indicators

Tools3

What Msha Mines lets your agent do. Expand a tool for its parameters.

Verified live~994 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

7/7 checks healthy over the last 24d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Makes network requests · 3Read-only tools · 3
Network at startup5 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age20 days
Maintainers1

Observed 2026-11-03 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · @pipeworx/mcp-msha-mines (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads1kPackage downloads in the last 30 days.
Last commit5d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Msha Mines works

What Msha Mines does

Msha Mines exposes selected US Mine Safety and Health Administration records through MCP. It helps an agent identify mines by operator, controller, or mine name, then inspect a mine's identifying information and recent activity using its MSHA Mine ID.

Search results can include the mine ID, operating status, mine type, coal or metal/non-metal classification, commodity, state, and current operator or controller. Detail results add recent inspections, violations with assessed penalties, significant-and-substantial status, abatement or termination dates, and quarterly employment and coal production summed across subunits.

The package is an independent integration and is not affiliated with MSHA. Its records come from MSHA's public-domain Open Government Data portal.

How it works

The service uses four MSHA bulk datasets: the master mine list, violations, inspections, and quarterly employment and production. A scheduled ingestion process loads these files into a Supabase mirror, replacing the tables as a complete weekly snapshot. Successful responses report data_as_of, taken from the backing data's load timestamp.

The hosted MCP endpoint is available at https://gateway.pipeworx.io/msha-mines/mcp. A local npm package provides a stdio bridge that forwards MCP calls to that endpoint; it does not provide offline operation. The same gateway also exposes HTTP tool calls for clients or scripts that do not use MCP.

Setup and configuration

Add the hosted endpoint to an MCP client:

config.json
{
  "mcpServers": {
    "msha-mines": {
      "url": "https://gateway.pipeworx.io/msha-mines/mcp"
    }
  }
}

The endpoint is keyless. Claude Desktop, Cursor, Windsurf, and other MCP clients can connect directly. Alternatively, configure the local bridge with npx:

config.json
{
  "mcpServers": {
    "msha-mines": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-msha-mines"]
    }
  }
}

The npm bridge requires network access. Anonymous use is capped at 50 calls per day; a free account increases the limit to 200 calls per day.

Tools and capabilities

  • msha_mine_search(query, state?, status?, limit?) searches by operator, controller, or mine name and returns matching mine records.
  • msha_mine_detail(mine_id, violations_limit?, inspections_limit?) retrieves current mine attributes, recent inspections and violations, and recent quarterly employment and coal production.
  • msha_violation_counts(mine_id?, mine_name?, year?, year_from?, year_to?) counts violations by calendar year or range, including issuer category and S&S status.

Use the search tool to find a Mine ID before calling the detail tool. The violation-count tool can also resolve a mine or operator/controller name when it identifies exactly one mine; ambiguous and unmatched names return a named error with candidates where applicable. Detail violation results accept a maximum violations_limit of 100.

Limitations and notes

The violations, inspections, and employment/production tables retain only the most recent five calendar years. This window moves forward during refreshes. Responses that use these bounded tables include a bound field, and violation-count requests outside the loaded window identify that coverage rather than returning a misleading zero.

The full mine master list is retained, including mines that have ever received an MSHA Mine ID. A missing known ID returns found: false with data_as_of. If a refresh has never successfully populated the tables, queries return a dataset-unavailable error instead of treating every mine as absent.

Pack endpoints also list shared Pipeworx gateway meta-tools in addition to the mine-specific tools. The full gateway endpoint exposes the broader catalog, while ask_pipeworx can route questions beyond this pack from either gateway connection.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Msha Mines

Msha Mines is an MCP server that connects AI agents to US Mine Safety and Health Administration records. Its main tools search mines by operator or name, retrieve mine details by MSHA Mine ID, and count violations by year, issuer category, and significant-and-substantial status, with recent inspections, penalties, employment, and production.

Install it by adding the hosted MCP URL to your client, or run the npm stdio bridge with npx. Use `https://gateway.pipeworx.io/msha-mines/mcp` for direct MCP access, or configure `npx -y @pipeworx/mcp-msha-mines`; the bridge requires network access.

Yes, Cursor can connect to Msha Mines through the hosted MCP endpoint. Add `https://gateway.pipeworx.io/msha-mines/mcp` as the server URL in Cursor's MCP configuration, or use the documented npx stdio configuration.

Yes, `msha_violation_counts` counts violations for a calendar year or year range. It accepts a Mine ID or a name that resolves to one mine and returns totals broken down by recipient category and S&S status; years outside the loaded five-year window are flagged in coverage.

No, violation, inspection, and employment or production data is limited to the most recent five calendar years. The mine master list is loaded in full, but older activity is outside the retained lookup window.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMsha Mines AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/msha-mines?style=directory)](https://allmcps.com/mcp/msha-mines)
HTML Embed
<a href="https://allmcps.com/mcp/msha-mines"><img src="https://allmcps.com/api/badge/msha-mines?style=directory" alt="Msha Mines on AllMCPs" /></a>