HalalGen Developer Documentation & Model Context Protocol (MCP)
Technical documentation, REST API references, and Model Context Protocol (MCP) server integration guidelines for developers building Shariah-compliant creative applications.
Model Context Protocol (MCP) Integration
HalalGen exposes a native Model Context Protocol (MCP) endpoint allowing LLMs, IDEs, and coding agents (including Claude Desktop, Cursor, and custom agentic frameworks) to invoke ethical visual generation tools directly:
- Discovery Manifest:
https://halalgen.ai/.well-known/mcp.json
- SSE Endpoint:
https://api.halalgen.ai/v1/mcp/sse
- Authentication: HTTP Bearer token via developer console API keys.
Available MCP Tools
generate_image: Creates high-fidelity visual media adhering to Shariah principles of Hayā' (modesty) and Taswīr (aniconism).
generate_video: Generates ethical cinematic short video clips and camera sequences.
remove_background: Isolates subjects and returns clean transparent background PNG cutouts.
upscale_image: Super-resolution model upscaling image assets up to 4K resolution.
list_assets: Queries user generation history and asset metadata.
HalalGen REST API v1
Integrate HalalGen directly into e-commerce stores, creative agencies, and mobile apps using our secure RESTful endpoints.