productivity
Modal MCP, CLI, and Lua Integration for AI Agents
Modal integration docs for AI agents: MCP gateway setup, Modal CLI commands, Lua API reference, credentials, and function schemas.
7 functions 7 read 0 write API key auth
Modal for agents
Credentials can be configured manually in web or CLI hosts.
Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.
Machine-Readable Metadata
- integration_slug
modal- route_slug
modal- package
modal- auth_strategy
api_keyAPI key- cli_setup_supported
true- cli_runtime_supported
true- mcp_gateway_supported
true- lua_supported
true- supports_multi_account
true
Quick Links
Lua APIAgent-facing namespace and function reference. Modal CLIHeadless setup and direct function calls. Modal MCPMCP gateway setup for external clients. Submit feedbackReport missing tools, auth problems, wrong docs, or runtime issues. ContributeAdd tools or improve metadata in the integrations repo.
Modal MCP Client Matrix
Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Modal.
Claude Code Modal MCP setup for Claude Code. Cursor Modal MCP setup for Cursor. Codex Modal MCP setup for Codex. OpenAI Agents Modal MCP setup for OpenAI Agents SDK. Claude Agent SDK Modal MCP setup for Claude Agent SDK. Vercel AI SDK Modal MCP setup for Vercel AI SDK. LangChain Modal MCP setup for LangChain. LangGraph Modal MCP setup for LangGraph. CrewAI Modal MCP setup for CrewAI. MCP clients Modal MCP setup for Generic MCP Clients.
Modal CLI Matrix
Use these pages for direct Modal CLI workflows in scripts, CI, cron, and agent wrappers.
CI Modal CLI for CI. Cron Jobs Modal CLI for cron jobs. Shell Scripts Modal CLI for shell scripts. Headless Automation Modal CLI for headless automation. Coding Agents Modal CLI for coding agents.
Function Catalog
| Function | Type | Parameters | Description |
|---|---|---|---|
modal.modal_list_apps | Read read | 0 | List all Modal apps. Returns app IDs, names, and status details. |
modal.modal_get_app | Read read | 1 | Get details for a specific Modal app by ID, including status and metadata. |
modal.modal_list_functions | Read read | 1 | List all functions for a Modal app. Returns function IDs, names, and runtime details. |
modal.modal_list_schedules | Read read | 1 | List all scheduled functions for a Modal app. Returns schedule IDs, cron expressions, and function details. |
modal.modal_list_volumes | Read read | 0 | List all Modal volumes. Returns volume IDs, names, and size details. |
modal.modal_list_secrets | Read read | 0 | List all Modal secrets. Returns secret names and creation dates (values are not exposed). |
modal.modal_get_current_user | Read read | 0 | Get the current authenticated Modal user information, including name, email, and account details. |