#!/usr/bin/env python3
"""
Entry point for the Food MCP Server.
This script runs the MCP server with StreamableHTTP transport for
web-based MCP client communication. The server provides structured output using
Pydantic schemas and follows the MCP specification.
"""
import asyncio
import sys
from server import run_server
if __name__ == "__main__":
try:
run_server()
except KeyboardInterrupt:
print("Server stopped by user", file=sys.stderr)
sys.exit(0)
except Exception as e:
print(f"Server error: {e}", file=sys.stderr)
sys.exit(1)
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MacroSense-AI/dietician-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server