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

Modal MCP Toolbox 🛠️

A collection of Model Context Protocol (MCP) tools that run on Modal. This let's you extend the capabilities of your LLM in tools such as Goose or the Claude Desktop App.

Tools

  • run_python_code_in_sandbox: Let's you run python code in a sandboxed environment.
  • generate_flux_image: Generate an image using the FLUX model.

Demo

Flux Image Generation

Python Code Execution

Prerequisites

This runs against your modal account, so you will need to have a modal account and be logged in.

Installation

Installation depends on the client that uses the MCP. Here is instructions for Claude and Goose.

Claude

Got to Settings > Developer in the Claude Desktop App. And click on Edit Config.

Add the config for the mcp server. My config looks like this:

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

Goose

Go to Settings and Click on Add.

Then add an extension like in the screenshot below. The important part is to set command to:

uvx modal-mcp-toolbox

The rest you can fill in as you like.

Installing via Smithery (not working currently)

To install Modal MCP Toolbox for Claude Desktop automatically via Smithery:

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

Facilitates running Python code in a sandbox and generating images using the FLUX model via an MCP server compatible with clients like Goose and the Claude Desktop App.

  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)