mcp-image-recognition-py
Verified Safeby glasses666
Overview
A Python-based MCP server for image recognition leveraging various large language models to describe images or answer questions about them.
Installation
source venv/bin/activate && python server.pyEnvironment 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
fastmcp
FastMCP is an ergonomic interface for the Model Context Protocol (MCP), providing a comprehensive framework for building and interacting with AI agents, tools, resources, and prompts across various transports and authentication methods.
mcp-server
Provides a Model Context Protocol (MCP) server for AI agents to search and retrieve curated documentation for the Strands Agents framework, facilitating AI coding assistance.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
gis-mcp
A Model Context Protocol (MCP) server that provides AI agents and LLMs with comprehensive GIS capabilities, enabling geospatial analysis, data gathering, and transformations through natural language.