ForeverVM

official

Run Python in a code sandbox.

What can you do with Forever VM MCP?

  • Start a new Python REPL session — ask your assistant to create a fresh Python environment using create-python-repl and get back its session ID.
  • Run Python code in an existing REPL — provide a REPL ID and code snippet to execute via run-python-in-repl and receive the output.
  • Chain multiple code executions in one session — reuse the same REPL ID across several run-python-in-repl calls to build up state, variables, or results incrementally.

Documentation

ForeverVM MCP Server

MCP Server for ForeverVM, enabling Claude to execute code in a Python REPL.

Tools

  1. create-python-repl
  • Create a Python REPL.
  • Returns: ID of the new REPL.
  1. run-python-in-repl
    • Execute code in a Python REPL.
    • Required Inputs:
      • code (string): code that the Python REPL will run.
      • replId (string): ID of the REPL to run the code on.
    • Returns: Result of the code executed.

Usage with Claude Desktop

Run the following command:

npx forevervm-mcp install --claude

For other MCP clients, see the docs.

Installing locally (for development only)

In the MCP client, set the command to npm and the arguments to:

["--prefix", "<path/to/this/directory>", "run", "start", "run"]