MCP.so
登录
M

Modal MCP Server

@george-bobby

基本信息

分类

其他

传输方式

stdio

作者

george-bobby

提交者

George Bobby

关于 Modal MCP Server

An MCP server for managing Modal — apps, containers, volumes, and secrets — and for deploying & running Modal apps directly from Claude Code and other MCP clients.

Modal MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-modal": {
      "command": "uvx",
      "args": [
        "mcp-modal"
      ]
    }
  }
}

Modal MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is Modal MCP?

Modal MCP is an MCP server for managing Modal — apps, containers, volumes, and secrets — and for deploying and running Modal apps directly from Claude Code and other MCP clients. It shells out to your local modal CLI, using whatever Modal profile and credentials are configured on your machine with no extra tokens to manage.

How to use Modal MCP?

Install via uvx mcp-modal (requires Python 3.11+, uv, and Modal CLI 1.x configured with valid credentials). Add the server to Claude Code with claude mcp add mcp-modal -- uvx mcp-modal or add it to a .mcp.json file in your project root. All tools are invoked through your MCP client after configuration; for deploy/run support the target project must use uv with modal installed in its virtual environment.

Key features of Modal MCP

  • 26 tools across deploy/run, apps, containers, logs, volumes, secrets, and discovery
  • All tools use your local Modal CLI credentials automatically
  • Optional MCP_MODAL_ALLOWED_LOCAL_PATHS allowlist to restrict file access
  • Secret values are redacted from commands, logs, and error output
  • Standardized response format with JSON, lists, and contextual log search
  • Supports pinned releases via uvx mcp-modal@<version>

Use cases of Modal MCP

  • Deploy and run Modal apps from Claude Code with persistent web endpoints
  • List, stop, roll back, and inspect Modal apps and containers
  • Upload and download files to/from Modal volumes
  • Create, list, and delete Modal secrets and manage environments
  • Search app/container logs with regex, context lines, and exclusion filters

常见问题

1

How does Modal MCP authenticate with Modal?

Modal MCP uses your local Modal credentials stored in `~/.modal.toml`. Run `modal setup` to log in, or check the current profile with `modal profile current`.

2

Why is there no `modal serve` tool?

`modal serve` keeps endpoints alive only while the blocking process runs, so an MCP tool that returns would tear them down immediately. Use `deploy_modal_app` for persistent, shareable endpoints.

3

How can I restrict file access for volume tools?

Set the `MCP_MODAL_ALLOWED_LOCAL_PATHS` environment variable to a colon-separated list of allowed directories. When set, `put_modal_volume_file` and `get_modal_volume_file` (with `force=True`) will be refused unless the resolved local path falls inside one of those roots.

4

What are the dependencies and runtime requirements?

Python 3.11+, `uv` (provides `uvx`), Modal CLI 1.x with valid credentials. For deploy/run support, the target project must use `uv` for dependency management and have `modal` installed in its virtual environment.

5

How are powerful tools secured against prompt injection?

Tools like `deploy_modal_app`, `run_modal_app`, `put_modal_volume_file`, `get_modal_volume_file` (with `force=True`), and `exec_modal_container` can execute arbitrary code or exfiltrate data. They should remain behind your MCP client's tool‑approval prompts and not be auto‑approved.

评论

其他 分类下的更多 MCP 服务器