Modal MCP Server
The Modal MCP Server provides an interface to Modal cloud computing, enabling AI agents to render videos, synthesize speech, manage jobs, and monitor deployments.
Video Rendering — Render Remotion compositions (e.g.,
instagram_ugc_v1,explainer_v1,tiktok_v1) on Modal's cloud with configurable quality (preview/production), style overrides, and resolution settings. Results are uploaded to Supabase Storage and a public MP4 URL is returned.Voice Synthesis — Generate speech via F5-TTS voice cloning (Isaiah voice by default) with configurable speed (0.5–2.0x) and sampling temperature. Returns an audio URL or base64-encoded audio.
GPU Computing — Dispatch general-purpose GPU tasks to Modal's cloud infrastructure.
Job Management — Submit, list, retrieve, and cancel jobs; track status and results with persistent storage via Supabase or an in-memory fallback.
Modal App Monitoring — List all deployed Modal apps with their status, task count, and creation date.
Log Tailing — Retrieve recent logs from any Modal app (e.g.,
remotion-render,voice-clone) with a configurable line count.Health Checks — Monitor server and dependency status via
/api/health.Built-in Safeguards — Rate limiting (100 req/min per IP), input validation, and CORS configuration for secure interactions.
Exposes Modal cloud functions as tools, enabling video rendering of Remotion compositions, speech synthesis via F5-TTS voice cloning, and management of Modal apps and logs.
Integrates with Supabase Storage to persist rendered video files (MP4/PNG) and uses Supabase database to store and retrieve render job metadata and history.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Modal MCP Server Render the intro video in 1080p using my Main composition"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
modal-mcp
Complete MCP (Model Context Protocol) server for Modal cloud computing. Exposes render, voice, and GPU computing capabilities as tools for Claude and LLM agents.
Authenticated Remotion RPC render
modal_remotion_rpc.py renders the allowlisted IsaiahStyleReel composition
entirely inside Modal and returns the MP4 over Modal's authenticated control
plane. It has no public HTTP endpoint and never starts Chrome or Chromium on
the local Mac. Inputs are fail-closed: public HTTPS audio only, word timings
within the fixed 40-second timeline, a safe MP4 filename, and an allowlisted
composition are required.
modal run modal_remotion_rpc.py \
--props-path /absolute/path/to/props.json \
--output-path /absolute/path/to/output.mp4Run npm test to validate both the original MCP contract and the RPC render
admission contract.
Status: Production-ready (28/65 features complete)
Related MCP server: Modal MCP Server
Overview
Modal MCP provides:
Video Rendering — Remotion compositions on Modal's cloud infrastructure
Voice Synthesis — F5-TTS voice cloning for audio generation
GPU Computing — General GPU task dispatch
Job Management — Full job lifecycle with status tracking
Health Monitoring — Real-time dependency status
Rate Limiting — Built-in protection against abuse
Supabase Integration — Persistent job storage
Quick Start
1. Install and Configure
# Install dependencies
npm install
# Copy and edit environment file
cp .env.example .env
# Edit .env with your Supabase and Modal URLs2. Start Server
npm start # Production mode
npm run dev # Development with verbose loggingServer runs on http://localhost:3001
3. Test It Works
# Health check
curl http://localhost:3001/api/health | jq .
# Run test suite
npm run test:allAPI Endpoints
Health Check
GET /api/healthReturns server status and dependency health.
Job Management
POST /api/jobs # Submit a job
GET /api/jobs # List jobs
GET /api/jobs/:id # Get job status
GET /api/jobs/:id/result # Get job result (if done)
DELETE /api/jobs/:id # Cancel pending jobMCP Tools
Tool | Description |
| Render Remotion composition on Modal → Supabase Storage |
| List past render jobs |
| Get single render job details |
| Synthesize speech via F5-TTS voice clone |
| List deployed Modal apps |
| Tail logs from a Modal app |
Configuration
Environment Variables
# Supabase (required for persistence)
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_KEY=your-service-role-key
# Modal Endpoints
MODAL_REMOTION_RENDER_URL=https://your-account--remotion-render.modal.run
MODAL_VOICE_CLONE_URL=https://your-account--voice-clone.modal.run
MODAL_BIN=modal
# Server
PORT=3001
LOG_LEVEL=info # debug, info, warn, errorDocker Setup
docker build -t modal-mcp:latest .
docker run -p 3001:3001 \
-e SUPABASE_URL=... \
-e SUPABASE_KEY=... \
modal-mcp:latestIntegration with Claude
Add to Claude's settings.json:
{
"mcpServers": {
"modal-mcp": {
"command": "node",
"args": ["/path/to/modal-mcp/server.js"],
"env": {
"SUPABASE_URL": "https://your-project.supabase.co",
"SUPABASE_KEY": "your-key",
"MODAL_REMOTION_RENDER_URL": "https://your-modal-endpoint.modal.run"
}
}
}
}Features Implemented
Phase 1: Infrastructure & Health Checks ✅
MCP Server Initialization (INFRA-001)
Environment Configuration (INFRA-002)
Logging System (INFRA-003)
Health Check Endpoint (API-001)
Error Handling Middleware (API-002)
Phase 2: Job Management ✅
Job Submission API (JOB-001)
Job Status Polling (JOB-002)
Job Result Retrieval (JOB-003)
Job Cancellation (JOB-004)
Job Queue Management (JOB-005)
API Rate Limiting (API-003)
Input Validation (SECURITY-001)
CORS Configuration (SECURITY-002)
Phase 3: Render Pipeline ✅
Remotion Render Job Submission (RENDER-001)
Render Quality Configuration (RENDER-002)
Voice Clone Job Submission (VOICE-001)
Voice Clone Result Retrieval (VOICE-002)
GPU Task Dispatch (GPU-001)
Phase 4-6: In Progress
Testing features (unit, integration, end-to-end)
Database schema and optimization
Deployment documentation
Monitoring and observability
Testing
# Unit tests (10 tests, all passing)
npm run test
# API integration tests
npm run test:api
# Run all tests
npm run test:allDocumentation
DEPLOYMENT.md — Docker, Vercel, Kubernetes, monitoring, scaling
docs/DATABASE.md — Supabase schema setup and migration
Examples
Submit a Render Job
curl -X POST http://localhost:3001/api/jobs \
-H "Content-Type: application/json" \
-d '{
"type": "render",
"composition": "explainer_v1",
"sections": [
{
"id": "1",
"type": "hook",
"duration_sec": 3,
"content": {"text": "Hello World"}
}
],
"quality": "production"
}'Check Job Status
curl http://localhost:3001/api/jobs/abc12345Get Render Result
curl http://localhost:3001/api/jobs/abc12345/resultPerformance
Rate Limiting: 100 requests/minute per IP
Job Timeouts: 10 minutes (render), 2 minutes (voice)
In-Memory Store: Fallback when Supabase unconfigured
Structured Logging: JSON logs with timestamps
Architecture
┌─────────────────────────────────────┐
│ Claude / LLM Agent │
└─────────────┬───────────────────────┘
│ MCP Protocol
▼
┌─────────────────────────────────────┐
│ Modal MCP Server │
├─────────────────────────────────────┤
│ HTTP Layer (3001) │
│ • Health checks │
│ • Job management │
│ • Rate limiting │
├─────────────────────────────────────┤
│ MCP Tool Layer │
│ • Render (Remotion) │
│ • Voice (F5-TTS) │
│ • GPU tasks │
├─────────────────────────────────────┤
│ Storage Layer │
│ • Supabase (persistent) │
│ • In-Memory (fallback) │
└─────────────┬───────────────────────┘
│
┌─────────┴──────────┬──────────────┐
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌────────────┐
│ Modal │ │Supabase │ │ Storage │
│Endpoints │ │Database │ │ (S3/GCS) │
└──────────┘ └──────────┘ └────────────┘License
MIT
Support
Issues: GitHub issues
Documentation: See DEPLOYMENT.md and docs/
Examples: See test-api.sh
Available Tools
6 toolsmodal_appsA
List all deployed Modal apps with their status, task count, and creation date.
Inputs: no named parameters.
modal_logsC
Get recent logs from a Modal app.
Inputs: app_name (required), lines.
modal_renderA
Render a Remotion composition on Modal cloud (Chrome + FFmpeg), upload to Supabase Storage, save job to memory. Returns public MP4 URL. Valid formats: instagram_ugc_v1, instagram_reel_v1, explainer_v1, listicle_v1, shorts_v1, devvlog_v1, tiktok_v1, twitter_v1, linkedin_v1, etc.
Inputs: composition (required), sections (required), style, settings, +3 more.
modal_render_getA
Get a single Modal render job by job_id. Returns URL and full metadata.
Inputs: job_id (required).
modal_render_listA
List recent Modal render jobs from Supabase memory. Shows status, URL, render time, and label.
Inputs: limit, status.
modal_voice_cloneA
Synthesize speech using Modal F5-TTS voice clone (Isaiah voice by default). Returns audio URL or base64.
Inputs: text (required), speed, temperature.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a distinct resource and action without overlap: app listing, log retrieval, video rendering creation, render job retrieval, render job listing, and voice synthesis. The boundaries between video rendering, voice cloning, and general Modal app management are clearly demarcated.
Mixed verb placement conventions: modal_apps and modal_logs imply actions (list/get) without suffixes, while modal_render_get and modal_render_list use explicit action suffixes. The base modal_render tool (create operation) lacks a suffix unlike its complementary tools, creating inconsistency within the render workflow cluster.
Six tools is well-scoped for the server's apparent purpose covering Modal app monitoring, video rendering lifecycle management, and voice synthesis. The count hits the sweet spot for functionality without overwhelming the agent with redundant options.
Notable gaps in lifecycle coverage: apps only supports listing (missing get single app, deploy, delete), render jobs lack cancel/delete operations, and voice synthesis has no associated read/list functionality. The surface supports creation and partial reading but misses update/delete operations for persistent resources.
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
FFmpeg as a service for AI agents: typed video editing tools, async jobs, downloadable outputs.
AI video, image and audio generation with 140+ AI models from any MCP agent
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables AI agents to interact with Modal, allowing them to deploy apps and run functions in a serverless cloud environment.73MIT
- FlicenseBqualityDmaintenanceConnects AI agents to Modal.com infrastructure, allowing management of deployments, apps, containers, volumes, secrets, and environments via MCP tools.30-
- AlicenseAqualityCmaintenanceMCP tools for video transcoding, document conversion, and multi-step pipelines — callable by any AI agent.1299 npm1MIT
- AlicenseNot gradedqualityCmaintenanceEnables MCP-aware agents to drive Modal serverless compute, including GPU workers and headless Chromium for web browsing with screenshots.MIT