agentic-vision
Enables LLMs to autonomously analyze camera images for occupational safety violations, generate risk reports per ISG regulations, and log violations to a database.
README
👷♂️ Agentic Vision: Autonomous ISG Inspection Agent (MCP + YOLOv8 + Supabase)
This project is an autonomous Occupational Health and Safety (ISG) inspection system based on Model Context Protocol (MCP), giving Large Language Models (LLMs) the ability to "see", "interpret", and "take action" in the real world.
Unlike standard object detection projects, it is built on an "Agentic Workflow". Claude 3.5 Sonnet autonomously finds camera recordings in the system, analyzes them, and produces a risk report according to ISG regulations.
Table of Contents
- 🚀 Features
- 🛠️ Architecture
- 📦 Installation
- ⚙️ Configuration
- Claude Desktop Integration
- 🎯 Usage
- 🤝 Contributing
🚀 Features
- Model Context Protocol (MCP): Secure access for LLM to local file system and custom APIs.
- Autonomous Analysis: Automatic detection and analysis of the latest image dropped in the "images" folder.
- Smart Reporting: Converting raw JSON data into a meaningful report according to ISG Law No. 6331.
- Corporate Memory: Instant logging of all violations to Supabase (PostgreSQL) database.
- Modern Architecture: FastAPI (Asynchronous) + Roboflow (Cloud Inference).
🛠️ Architecture
graph TD
A[Claude Desktop / LLM] -->|MCP Request| B(MCP Server - FastMCP)
B -->|Scan Images| C{Local Storage}
B -->|POST /analyze| D[FastAPI Backend]
D -->|Inference Request| E((Roboflow Cloud API))
E -->|JSON Result| D
D -->|Insert Log| F[(Supabase DB)]
D -->|Formatted Result| B
B -->|Agentic Report| A
📦 Installation
Prerequisites
- Python 3.10+
- Conda or virtualenv
Steps
-
Clone the repository:
git clone https://github.com/fatihberkanteren/agentic-vision-server.git cd agentic-vision-server -
Create and activate environment:
conda create -n agentic-vision python=3.10 -y conda activate agentic-vision pip install -r requirements.txt
⚙️ Configuration
Create a .env file and enter your information:
ROBOFLOW_API_KEY=your_api_key
SUPABASE_URL=your_project_url
SUPABASE_KEY=your_service_key
Claude Desktop Integration
Add the following to the mcpServers section in your Claude Desktop settings (claude_desktop_config.json):
{
"mcpServers": {
"agentic-vision": {
"command": "C:/path/to/your/python.exe",
"args": ["mcp_server.py"]
}
}
}
🎯 Usage
After the system is up, simply give this command to Claude:
"Check the field cameras, report if there is an ISG violation and log to the database."
The agent will find the latest photo in the images/ folder, detect personnel missing helmets/vests, and provide you with a professional inspection report.
🤝 Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.