Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • mcp-v8
  • Weekly Weather
  • Postman MCP Server
  • TxtAi Memory Vector Server
  • MCP Package Docs Server
Back to MCP Servers
ForeverVM

ForeverVM

Public
jamsocket/forevervm

Provides a secure API for running stateful Python code with persistent machines that execute instructions sequentially, supporting features like machine tagging, memory limits, and seamless session reconnection for efficient, long-running code execution.

javascript
0 tools
May 30, 2025
Updated Jun 4, 2025

Supercharge Your AI with ForeverVM

MCP Server

Unlock the full potential of ForeverVM through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

foreverVM

repoversion
cli
sdk

foreverVM provides an API for running arbitrary, stateful Python code securely.

The core concepts in foreverVM are machines and instructions.

Machines represent a stateful Python process. You interact with a machine by running instructions (Python statements and expressions) on it, and receiving the results. A machine processes one instruction at a time.

Getting started

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

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

npx forevervm login

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

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:

npx forevervm repl [machine_name]

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

npx forevervm machine list

You don't need to terminate machines -- foreverVM will automatically swap them from memory to disk when they are idle, and then automatically swap them back when needed. This is what allows foreverVM to run repls “forever”.

Using the API

import { ForeverVM } from '@forevervm/sdk' const token = process.env.FOREVERVM_TOKEN if (!token) { throw new Error('FOREVERVM_TOKEN is not set') } // Initialize foreverVM const fvm = new ForeverVM({ token }) // Connect to a new machine. const repl = fvm.repl() // Execute some code let execResult = repl.exec('4 + 4') // Get the result console.log('result:', await execResult.result) // We can also print stdout and stderr execResult = repl.exec('for i in range(10): print(i)') for await (const output of execResult.output) { console.log(output.stream, output.data) } process.exit(0)

Working with Tags

You can create machines with tags and filter machines by tags:

import { ForeverVM } from '@forevervm/sdk' const fvm = new ForeverVM({ token: process.env.FOREVERVM_TOKEN }) // Create a machine with tags const machineResponse = await fvm.createMachine({ tags: { env: 'production', owner: 'user123', project: 'demo' } }) // List machines filtered by tags const productionMachines = await fvm.listMachines({ tags: { env: 'production' } })

Memory Limits

You can create machines with memory limits by specifying the memory size in megabytes:

// Create a machine with 512MB memory limit const machineResponse = await fvm.createMachine({ memory_mb: 512, })
Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • mcp-v8
    mcp-v8

    Rust-based Model Context Protocol server offering secure V8 JavaScript execution with persistent hea...

    Added May 30, 2025
  • Weekly Weather
    Weekly Weather

    Provides 8-day global weather forecasts and current conditions with detailed hourly and daily data, ...

    Added May 30, 2025
  • Postman MCP Server
    Postman MCP Server

    Enables running Postman collections via Newman through the Model Context Protocol, providing LLMs wi...

    1 tools
    Added May 30, 2025
  • TxtAi Memory Vector Server
    TxtAi Memory Vector Server

    Model Context Protocol server offering advanced semantic search, persistent memory management, tag-b...

    Added May 30, 2025
  • MCP Package Docs Server
    MCP Package Docs Server

    Provides efficient multi-language package documentation access and advanced Language Server Protocol...

    11 tools
    Added May 30, 2025