MCP Hub
Back to servers

uk-farm-safety

UK farm health and safety — HSE guidance, machinery, COSHH, children on farms

Registry
Updated
Apr 3, 2026

UK Farm Safety MCP

CI GHCR License: Apache-2.0

UK farm health and safety guidance via the Model Context Protocol. Query HSE machinery safety, livestock handling rules, COSHH substance requirements, children on farms regulations, RIDDOR reporting, and risk assessment templates -- all from your AI assistant.

Part of Ansvar Open Agriculture.

Why This Exists

Farming is the most dangerous industry in the UK. HSE publishes safety guidance across dozens of web pages, PDFs, and information sheets. This MCP server puts it all in a queryable database so AI assistants can give accurate, sourced answers about farm safety obligations.

Quick Start

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "uk-farm-safety": {
      "command": "npx",
      "args": ["-y", "@ansvar/uk-farm-safety-mcp"]
    }
  }
}

Claude Code

claude mcp add uk-farm-safety npx @ansvar/uk-farm-safety-mcp

Streamable HTTP (remote)

https://mcp.ansvar.eu/uk-farm-safety/mcp

Docker (self-hosted)

docker run -p 3000:3000 ghcr.io/ansvar-systems/uk-farm-safety-mcp:latest

npm (stdio)

npx @ansvar/uk-farm-safety-mcp

Example Queries

Ask your AI assistant:

  • "What safety measures are needed for tractor PTO work?"
  • "Can a 14-year-old drive a tractor on a farm?"
  • "What PPE is needed for sheep dipping?"
  • "What incidents must I report under RIDDOR on a farm?"
  • "Give me a risk assessment template for cattle handling"
  • "What are the COSHH requirements for pesticide storage?"

Stats

MetricValue
Tools10 (3 meta + 7 domain)
JurisdictionGB
Data sourcesHSE Agriculture, RIDDOR, COSHH, PUWER, Farm Safety Foundation
License (data)Open Government Licence v3
License (code)Apache-2.0
Transportstdio + Streamable HTTP

Tools

ToolDescription
aboutServer metadata and links
list_sourcesData sources with freshness info
check_data_freshnessStaleness status and refresh command
search_safety_guidanceFTS5 search across all safety guidance
get_machinery_safetyMachinery hazards, controls, PPE, legal requirements
get_livestock_handling_safetyLivestock handling guidance by species
get_coshh_requirementsCOSHH substance control requirements
get_children_on_farms_rulesAge-group rules for children on farms
get_reporting_requirementsRIDDOR incident reporting requirements
get_risk_assessment_templateRisk assessment templates by activity

See TOOLS.md for full parameter documentation.

Security Scanning

This repository runs security checks on every push:

  • CodeQL -- static analysis for JavaScript/TypeScript
  • Gitleaks -- secret detection across full history
  • Dependency review -- via Dependabot
  • Container scanning -- via GHCR build pipeline

See SECURITY.md for reporting policy.

Disclaimer

This tool provides reference data for informational purposes only. It is not professional health and safety advice. Always consult current HSE guidance and your own risk assessments. In an emergency, call 999. See DISCLAIMER.md.

Contributing

Issues and pull requests welcome. For security vulnerabilities, email security@ansvar.eu (do not open a public issue).

License

Apache-2.0. Data sourced under Open Government Licence v3.

Reviews

No reviews yet

Sign in to write a review