原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Modal Server

作者:george-bobby版本 0.5.0i★ –i在你的电脑上运行
注册名称io.github.george-bobby/mcp-modal

安装

概览

作者提供的说明(英文原文)

MCP server for managing Modal apps, containers, volumes, and secrets.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 网络安全

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

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

在终端中运行这条命令

claude mcp add modal -- uvx mcp-modal

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "modal": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-modal"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 george-bobby 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“网络安全”中的其他服务器比较i

  • 星标数多于此分类中其他 995 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 995 个服务器的 43% 更新
  • 基础检查结果等于或优于此分类中其他 995 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Modal Server 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.5.0)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:SML Risk Firewall, Nife, ipdata MCP by usefulapi

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

SML Risk Firewall

作者:scriptmasterlabs.com

Pre-trade risk checks for agent trades: orders vs your limits, signed receipts.

在云端运行今天更新
安装

Nife

作者:nifetency

Manage Nife.io cloud apps, sites, secrets and Git integrations from MCP clients.

在云端运行今天更新
安装

Look up location, network, company and threat data for IP addresses and ASNs in ipdata.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

MCP Modal 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.

Every tool shells out to your local modal CLI, so it operates against whatever Modal profile and credentials are configured on your machine. There are no extra tokens to manage.

Installation

The server is published on PyPI as mcp-modal. No manual install is needed — the recommended way to run it is with uvx, which fetches and launches it on demand. Just point your MCP client at the command below (see Configuration).

Every version is also tagged and published on the Releases page, with release notes and the same .whl / .tar.gz that PyPI serves attached — useful for pinning, air-gapped installs, or reading what changed between two versions.

Logging in to Modal

This server uses your local Modal credentials. If you haven't authenticated yet, run:

modal setup

This opens a browser to log in and stores a token in ~/.modal.toml. Already logged in elsewhere? Check with modal profile current.

Configuration

Add the server to Claude Code with the claude mcp CLI:

claude mcp add mcp-modal -- uvx mcp-modal@latest

Or add it to a .mcp.json file in your project root, which is the better option for a team — everyone who opens the repo gets the same configuration:

{

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

Why @latest, and when to pin instead

uvx caches the environment it builds on the first run and does not check PyPI again:

"uvx will use the latest available version of the requested tool on the first invocation.

After that, uvx will use the cached version of the tool unless a different version is

requested, the cache is pruned, or the cache is refreshed."

— uv docs

So a plain uvx mcp-modal means *latest at install time, frozen forever after* — restarting the client or rebooting changes nothing, because the cache lives on disk. Different people end up on different versions depending on when they first ran it, with no warning.

  • `mcp-modal@latest` re-resolves on every launch, so a restart picks up new releases. Costs one network round-trip at startup. Use it while the tool surface is still moving.
  • `mcp-modal@0.4.0` (an explicit version) is reproducible and upgrades become a deliberate one-line change. Use it once you want stability, or for a wider audience.

To move a machine that is already stuck on an old cached build, switching it to either form above is enough — requesting a version invalidates the cache. Otherwise uv cache clean mcp-modal forces a refresh.

Requirements

  • Python 3.11 or higher
  • uv (provides uvx)
  • Modal CLI 1.5 or newer, configured with valid credentials (modal setup) — 1.5 is where modal billing summary/rates landed and where the billing report switched to snake_case columns; the cost tool reads both spellings but needs 1.5 for those two views
  • For Modal deploy and run support:
  • The project being deployed/run must use uv for dependency management
  • modal must be installed in that project's virtual environment

Security

This server shells out to your local modal CLI using whatever credentials are in ~/.modal.toml. A few tools are powerful by design — if the MCP client driving the server is ever prompt-injected (for example by malicious text inside logs it fetched), these are the escalation paths and should stay behind your client's tool-approval prompts rather than being auto-approved:

  • `deploy_modal_app` / `run_modal_app` — execute arbitrary local Python on the host (modal deploy imports the app file; uv run resolves and installs the target project's dependencies).
  • `modal_volume_files` with action="put" — can read any local file (e.g. ~/.ssh/id_rsa, ~/.modal.toml) and upload it to a cloud volume (a data-exfiltration primitive).
  • `modal_volume_files` with action="get" and force=True — can overwrite any local path (e.g. ~/.zshrc or a shell profile, a persistence primitive).
  • `manage_modal_container` with action="exec" — runs arbitrary commands inside a container, by design.

Every tool declares MCP tool annotations, so a client can distinguish the four read-only tools (list_modal_resources, get_modal_logs, search_modal_logs, analyze_modal_costs — all readOnlyHint: true) from the eight that change remote state or start compute. Six of those eight are destructiveHint: true; the exceptions are run_modal_app and inspect_modal_secret, which start compute without removing or overwriting anything. Auto-approve the reads; keep the rest behind a prompt.

Optional local-path allowlist

To contain the two filesystem-touching volume tools, set the MCP_MODAL_ALLOWED_LOCAL_PATHS environment variable to an os.pathsep-separated list of directories (: on macOS/Linux). When it is set, modal_volume_files is refused for any local path — local_path on action="put", the destination on action="get" — unless the resolved path, after expanding ~ and collapsing ../symlinks, falls inside one of those roots. The download target "-" (return contents instead of writing a file) is exempt because nothing is written to disk.

When the variable is unset (the default) there is no restriction, so existing setups are unaffected. Configure it in your MCP client, e.g.:

{

"mcpServers": { "mcp-modal": { "command": "uvx", "args": ["mcp-modal"], "env": { "MCP_MODAL_ALLOWED_LOCAL_PATHS": "/Users/me/modal-workspace:/tmp/modal" } } } }

All tools also pass user-supplied names/paths after a -- end-of-options separator, so a value beginning with - is always treated as data, never as a modal CLI flag. Secret values handed to manage_modal_secret are redacted from the echoed command, logs, and any error output.

Supported Tools

12 tools. Related operations are grouped behind an action/resource argument rather than split one-per-CLI-subcommand: every tool schema is loaded into the model's context for the whole session, so a smaller surface leaves more room for your actual work (and gives the model fewer near-identical tools to choose between).

Tools that talk to environment-scoped resources take an optional env argument to target a specific Modal environment; if omitted, they use the profile's default (or MODAL_ENVIRONMENT). The exception is manage_modal_container and container logs — a container ID is globally unique and the CLI accepts no environment there.

Read-only
  1. List Modal Resources (list_modal_resources) — one lookup for the whole account.
  • Parameters: resource (required), name, path (default /), env
  • resource values:
valuereturnsname means
appsdeployed/running/recently-stopped apps—
app_historyone app's deployment versions (for rollback)app name/ID
containersrunning containers (ta-...)app ID to filter by
volumesnamed volumes—
volume_filesfiles inside a volume (with path)volume name
secretssecret names (values are never exposed)—
environmentsvalid env values for this workspace—
profileactive profile + all profiles—
  • volume_files sets empty: true with a message when a listing genuinely returns nothing, so an empty directory is distinguishable from a wrong path.
  • Listings over 200 entries are capped, with omitted_items giving the number dropped.
  1. Get Modal Logs (get_modal_logs) — fetch or stream logs for an app *or* a container.
  • Parameters: identifier (required), target (auto/app/container, default auto — anything starting ta- is a container), timeout_seconds (default 30), env, since, until, tail, source (stdout/stderr/system), timestamps, follow
  • since without tail fetches *every* entry in the range; pass until as well (max range 35 days, tail max 20,000) to keep a busy app's output bounded.
  • With follow=True, logs stream until the app/container stops or timeout_seconds is reached, returning a snapshot with truncated: true.
  • Only covers the stdout/stderr/system streams; some failures (e.g. a crash reported as "... exited with ...") are Modal dashboard events, not log lines, and won't appear here.
  1. Search Modal Logs (search_modal_logs) — grep logs and get each hit with the surrounding lines, built for "where did it go wrong?" debugging. Logs are fetched once and searched locally, so you get context, regex, case control, and exact match counts.
  • Parameters: identifier (required), pattern (required), target (default auto), regex, case_sensitive, context_lines (default 3), max_matches (default 50), since, until, tail (defaults to the last 1000 entries), source, exclude (drop noise lines before searching, e.g. "queue put failed"), prefilter, timestamps (default true), timeout_seconds, env
  • Bound the window on a busy app. since on its own fetches everything from then until now — hundreds of KB per hour on a chatty app, which the 30s fetch cuts off (logs_truncated: true) and the output budget trims. since *and* until around the minute you care about is the fix, and is usually kilobytes.
  • prefilter=True pushes pattern down to Modal as a server-side substring filter (modal app logs --search), so non-matching lines are never fetched — the lever for logs too large to drain. Requires regex=False, and context lines then show only other matches, so use it to locate the window and re-query it with prefilter=False.
  • Returns match_count and matches: timestamped, line-numbered context blocks where matched lines are prefixed with >, e.g. > 8: 2026-06-04T... ValueError: bad input. The whole fetched log is always searched, so match_count stays exact even when fewer blocks are returned. returned is how many matches came back (adjacent matches merge into one block, counted by returned_blocks). Reports excluded_lines when exclude is used.
  • A window the CLI rejects (reversed range, over 35 days, tail over 20,000) comes back as success: false with Modal's own message, not a bare exit code.
  • Same stdout/stderr/system-only caveat as get_modal_logs.
Deploy & run
  1. Deploy Modal App (deploy_modal_app)
  • Deploys a Modal app (modal deploy). Deployed web endpoints persist, so any links in the output are live and shareable (returned in urls).
  • Parameters: absolute_path_to_app (required), env, name, tag, strategy (rolling/recreate), stream_logs
  • The app's directory must use uv with modal installed in its virtualenv.
  1. Run Modal App (run_modal_app)
  • Runs a function or local entrypoint once and collects its output (modal run).

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx