EfficientNet-implementation
by darthvader3010
Overview
An image classification system using EfficientNet-B7 for categorizing images and providing predictions via a Flask API and an MCP server.
Installation
python app.pySecurity Notes
CRITICAL VULNERABILITY: The /classify endpoint in `app.py` directly uses user-provided `image_path` from `request.json` to open files (`Image.open(image_path)`). This is a severe Local File Inclusion (LFI) vulnerability, allowing an attacker to attempt to read arbitrary files on the server's filesystem. There is also no sanitization for uploaded filenames, though `os.path.join` offers some protection. The Flask server is exposed on `0.0.0.0`, which is risky if not behind a firewall.
Similar Servers
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
agents-mcp-usage
This repository demonstrates the integration of a Model Context Protocol (MCP) server with various AI agent frameworks, showcasing agent communication and operation within a shared context.
model-context-protocol
This server implements the Model Context Protocol, likely for managing and serving contextual data and interactions for AI models.
mcp-image-recognition-py
A Python-based MCP server for image recognition leveraging various large language models to describe images or answer questions about them.