fastAPI-MCP-server
Verified Safeby bintang-aswam
Overview
This server provides image processing functionalities, specifically OCR and barcode/QR code scanning, through a standardized Model Context Protocol (MCP) interface for integration with AI agents in business automation scenarios.
Installation
uvicorn app.main:app --host 0.0.0.0 --port 8000Environment Variables
- DESCOPE_PROJECT_ID
- DESCOPE_API_BASE_URL
Security Notes
The server fetches images from arbitrary public URLs provided by clients for OCR and barcode scanning. While Pydantic's HttpUrl provides basic URL validation, there is a potential risk for Server-Side Request Forgery (SSRF) if a malicious actor provides a URL pointing to internal network resources. No explicit IP range filtering or deeper URL sanitization is implemented beyond basic HTTP(S) scheme enforcement and connection timeouts. The wide-open CORS policy (allow_origins=['*']) is noted, though potentially intended for broad integration.
Similar Servers
luma-mcp
Provides multi-model vision understanding capabilities to AI assistants that lack native image understanding.
fastify-mcp-server
A Fastify plugin providing a streamable HTTP transport for the Model Context Protocol (MCP), enabling AI assistants to interact with services.
mcp-python-starter
A feature-complete Model Context Protocol (MCP) server template in Python for developing AI applications and agents.
mcp-ocr
Provides an OCR server leveraging Kimi API for image text extraction via the Model Context Protocol (MCP).