Back to Home
glasses666 icon

mcp-image-recognition-py

Verified Safe

by glasses666

Overview

A Python-based MCP server for image recognition leveraging various large language models to describe images or answer questions about them.

Installation

Run Command
source venv/bin/activate && python server.py

Environment Variables

  • GEMINI_API_KEY
  • OPENAI_API_KEY
  • OPENAI_BASE_URL
  • DEFAULT_MODEL

Security Notes

The server uses `os.getenv` for API keys, which is good practice. Image data can be sourced from URLs, Base64 strings, or local file paths. While convenient, allowing arbitrary local file paths as image input could pose a local file disclosure risk if the server is exposed to untrusted users without proper input validation or sandboxing. However, for its intended use as a local MCP server for agents, this risk is mitigated. No 'eval' or direct shell command execution found.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-03

Tags

Image RecognitionMCP ServerLLM IntegrationPythonMulti-model AI