Modal MCP Toolbox

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Provides a tool for generating images using the FLUX model

  • Runs MCP tools on Modal's cloud platform to provide sandboxed Python code execution and image generation

  • Provides a tool for running Python code in a sandboxed environment

模态 MCP 工具箱🛠️

一组在 Modal 上运行的模型上下文协议 (MCP) 工具。这让你能够使用GooseClaude 桌面应用程序等工具扩展你的 LLM 课程的功能。

工具

  • run_python_code_in_sandbox :让您在沙盒环境中运行 python 代码。
  • generate_flux_image :使用 FLUX 模型生成图像。

演示

通量图像生成

Python代码执行

先决条件

这会与您的模态帐户冲突,因此您需要拥有一个模态帐户并登录。

安装

安装取决于使用 MCP 的客户端。以下是 Claude 和 Goose 的安装说明。

克劳德

在 Claude 桌面应用中,前往Settings > Developer 。然后点击“编辑配置”。

添加 mcp 服务器的配置。我的配置如下:

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

转到Settings并单击“添加”。

然后像下面的截图一样添加一个扩展。重点是将命令设置为:

uvx modal-mcp-toolbox

其余部分您可以随意填写。

通过 Smithery 安装(目前无法使用)

要通过Smithery自动为 Claude Desktop 安装 Modal MCP Toolbox:

npx -y @smithery/cli install @philipp-eisen/modal-mcp-toolbox --client claude
-
security - not tested
A
license - permissive license
-
quality - not tested

有助于在沙箱中运行 Python 代码,并通过与 Goose 和 Claude Desktop App 等客户端兼容的 MCP 服务器使用 FLUX 模型生成图像。

  1. Tools
    1. Demo
      1. Flux Image Generation
      2. Python Code Execution
    2. Prerequisites
      1. Installation
        1. Claude
        2. Goose
        3. Installing via Smithery (not working currently)
      ID: ai78w0p5mc