# Use the official MongoDB MCP server image FROM mongodb/mongodb-mcp-server:latest # Expose the standard Hugging Face port EXPOSE 7860 # Override the default entrypoint to run in HTTP mode for Spaces # Hugging Face requires servers to listen on 0.0.0.0:7860 ENTRYPOINT ["mongodb-mcp-server"] CMD ["--transport", "http", "--httpHost", "0.0.0.0", "--httpPort", "7860", "--readOnly"]