# forevervm

> MCP Server

The foreverVM repository offers an API for securely running stateful Python code through machines and instructions. Users can interact with machines using a CLI tool for REPL sessions and machine management.

## Overview

- **Category:** Developer Tools
- **Language:** Rust
- **Stars:** 228
- **Forks:** 8
- **Owner:** jamsocket
- **GitHub:** https://github.com/jamsocket/forevervm
- **Homepage:** https://forevervm.com
- **Created:** 2025-01-18T14:15:35+00:00
- **Updated:** 2025-03-28T15:36:28+00:00
- **Source:** https://model-context-protocol.com/servers/secure-stateful-ai-code-execution-sandbox

## Setup

## Setup

You will need an API token (if you need one, reach out to [paul@jamsocket.com](mailto:paul@jamsocket.com)).

The easiest way to try out foreverVM is using the CLI. First, you will need to log in:

```bash
npx forevervm login
```

Once logged in, you can open a REPL interface with a new machine:

```bash
npx forevervm repl
```

When foreverVM starts your machine, it gives it an ID that you can later use to reconnect to it. You can reconnect to a machine like this:

```bash
npx forevervm repl [machine_name]
```

You can list your machines (in reverse order of creation) like this:

```bash
npx forevervm machine list
```

## Tools

## Available Tools

1.  Machines (represent a stateful Python process).
2.  Instructions (Python statements and expressions to interact with a machine).
3.  CLI (for interacting with foreverVM, including login, REPL, and machine listing).
4.  API (using the `@forevervm/sdk` to interact with foreverVM programmatically).
5.  Tags (for creating and filtering machines).
6.  Memory Limits (for creating machines with specified memory limits).
