ppe-compliance-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ppe-compliance-mcpGive me a site-wide PPE summary."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
PPE Compliance Vision Pipeline
Industrial PPE (Personal Protective Equipment) compliance demo for video:
Fine-tune RF-DETR on the SH17 safety dataset
Run video inference with ByteTrack + temporal compliance logic
Query results through an MCP server (no re-inference in the agent loop)
Video → RF-DETR → ByteTrack (track_id) → PPE association → state machine
↓
annotated MP4 + analytics JSON → MCP tools → Claude/CursorRepo: github.com/Pratham-22/ppe-compliance
Weights: Release v0.1 (checkpoint_epoch44.pth)
Demo results
Annotated factory-floor run: ByteTrack IDs + temporal PPE compliance overlays (missing: helmet, safety-vest).

Frame ~2.7s | Frame ~5.7s |
|
|
Sample clip: outputs/inference/factory_floor_annotated.mp4 · analytics: factory_floor_analytics.json
Low-resolution YouTube warehouse footage often has no real helmets/vests, so this demo mostly shows person tracks flagged as non-compliant (domain shift vs SH17). Prefer clear construction video for positive PPE detections.
Related MCP server: Limitless MCP Server
Features
Layer | What it does |
Detection | RF-DETR Large fine-tuned for person / helmet / safety-vest (17 SH17 classes) |
Tracking | ByteTrack assigns stable worker |
Compliance | Helmet/vest associated via geometry; 15-frame window, 60% ratio threshold |
MCP | Read-only tools over precomputed JSON (summary, violations, worst offenders, trends, …) |
MCP tools
Tool | Purpose |
| Site-wide compliance rollup |
| Per-track status + narrative |
| Who failed PPE |
| Violations between two timestamps |
| Compliance rate over time buckets |
| Short-lived / noisy track IDs |
| Rank all workers by ratio / duration |
| Frame-level events |
| Re-read JSON after a new inference run |
Repo layout
ppe-compliance/
├── scripts/
│ ├── train_smoke.py / train_full.py # RF-DETR fine-tune
│ ├── video_infer.py # end-to-end video pipeline
│ ├── ppe_compliance.py # association + state machine
│ ├── export_checkpoint.py # Lightning ckpt → RF-DETR .pth
│ ├── sbatch_*.sh # OSC Slurm helpers
│ └── upload_release_weights.sh # optional: upload .pth to GitHub Releases
├── ppe_mcp/
│ ├── store.py # JSON query layer
│ ├── server.py # FastMCP tools
│ └── *_config.example.json # Claude / Cursor wiring
├── outputs/inference/ # sample annotated video + analytics JSON
├── docs/images/ # README stills from the annotated demo
├── setup_env.sh
└── requirements.txtQuick start
1. Environment (GPU recommended)
git clone https://github.com/Pratham-22/ppe-compliance.git
cd ppe-compliance
module load python/3.12 # on OSC Ascend, if available
bash setup_env.sh
source .venv/bin/activate2. Download model weights
Weights are not in git (GitHub file limit is 100 MB). Download the fine-tuned checkpoint from Release v0.1:
mkdir -p outputs/rfdetr_large
curl -L -o outputs/rfdetr_large/checkpoint_epoch44.pth \
"https://github.com/Pratham-22/ppe-compliance/releases/download/v0.1/checkpoint_epoch44.pth"3. Run inference on a video
A sample demo clip and prior analytics are already in the repo under data/videos/ and outputs/inference/.
# GPU job on OSC
sbatch scripts/sbatch_video_infer.sh
# or locally
python scripts/video_infer.py \
--video data/videos/factory_floor_demo.mp4 \
--checkpoint outputs/rfdetr_large/checkpoint_epoch44.pth \
--device cudaProduces:
outputs/inference/*_annotated.mp4outputs/inference/*_analytics.json
4. Query results with MCP
export PPE_ANALYTICS_JSON=outputs/inference/factory_floor_analytics.json
python -m ppe_mcp.serverWire into Cursor / Claude Desktop using the examples in ppe_mcp/.
Example agent prompts
“Give me a site-wide PPE summary.”
“Who are the 3 worst helmet offenders?”
“Explain worker #2.”
“What happened between 5s and 10s?”
Optional: train from scratch
Data
Download SH17 (Kaggle / upstream repo), then convert:
python scripts/convert_sh17_to_rfdetr.pyTrain
# smoke test
python scripts/train_smoke.py
# full fine-tune (Slurm on OSC)
sbatch scripts/sbatch_train_rfdetr.shExport a usable checkpoint:
python scripts/export_checkpoint.pySample outputs
This repo includes a demo run under outputs/inference/ (stills above in docs/images/):
Annotated video with
#track_idlabels and compliance colorsAnalytics JSON consumed by the MCP server
Notes
Worker IDs are ByteTrack track IDs, not employee names.
MCP is intentionally read-only over JSON — inference stays on GPU.
Default compliance settings: detection threshold
0.35, window15frames, min ratio0.6.
License / data
SH17 and third-party video remain under their original licenses. This code is provided for portfolio / interview demonstration.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceProvides access to PyTorch CI/CD analytics data including workflows, jobs, test runs, and log analysis through an MCP interface.4
- AlicenseAqualityFmaintenanceProvides advanced analysis of conversations from Limitless Pendant recordings, including intelligent meeting detection, action item extraction, natural language time queries, and comprehensive conversation analytics with smart pagination support.141424MIT
- Flicense-qualityCmaintenanceEnables AI assistants to query software supply chain compliance data, including asset status, security vulnerabilities, and evidence lineage. It allows for natural language analysis of compliance posture, policy violations, and deployment blockers across an organization.
- AlicenseAqualityCmaintenanceExposes analytics from Claude Code transcripts as MCP tools, enabling cost, audit, safety, and efficiency queries through natural language.4MIT
Related MCP Connectors
A paid remote MCP for AI SDK data query MCP, built to return verdicts, receipts, usage logs, and aud
Privacy-first web analytics. Query pageviews, referrers, trends, and AI insights.
Read-only access to your VortexIQ store data: audits, KPIs, alerts, Brand DNA, reports, Ask VIQ.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Pratham-22/ppe-compliance'
If you have feedback or need assistance with the MCP directory API, please join our Discord server

