We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sandraschi/ocr-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
run_webapp.py•811 B
import logging
logger = logging.getLogger(__name__)
#!/usr/bin/env python3
"""
Run the OCR-MCP WebApp
"""
import os
import sys
from pathlib import Path
# Add the project root and src to Python path
project_root = Path(__file__).parent.parent
sys.path.insert(0, str(project_root))
sys.path.insert(0, str(project_root / "src"))
from backend.app import main
if __name__ == "__main__":
port = os.getenv("WEBAPP_PORT", "15550")
logger.info("STARTING OCR-MCP WebApp...")
logger.info(f"Web interface will be available at: http://localhost:{port}")
logger.info("Press Ctrl+C to stop the server")
try:
main()
except KeyboardInterrupt:
logger.info("\nOCR-MCP WebApp stopped")
except Exception as e:
logger.error(f"ERROR starting webapp: {e}")
sys.exit(1)