Vast.ai

Vast.ai is an MCP server that integrates Vast.ai's cloud GPU rental marketplace directly into MCP-compatible clients. It connects to the Vast.ai API and local SSH utilities, allowing machine learning practitioners, data scientists, and backend developers to provision and monitor remote computational hardware from an AI interface. Users can search for hardware matching specific GPU models, system memory thresholds, geographic regions, and pricing constraints without opening a web console. Beyond searching, the server enables users to spin up containers from custom Docker images, manage system lifecycles through stopping, starting, rebooting, and destroying instances, and configure network setups like direct connections and Jupyter access. The server also supports operational maintenance by fetching container and system logs, monitoring current spending and user balances, querying persistent volume storage, and executing remote tasks on both running systems through SSH and stopped instances through native maintenance commands.

Category: Cloud & Infrastructure

Tags: cloud, compute, gpu, vast.ai

Visit Vast.ai

How to install and configure Vast.ai

  1. Install uv using Homebrew: bash brew install uv 2. Clone the repository and navigate into the directory: bash git clone https://github.com/CryDevOk/vastai-mcp.git cd vastai-mcp 3. Sync project dependencies: bash uv sync 4. Install the server tool locally: bash uv tool install -e . 5. Add the server configuration to your MCP settings file (such as ~/.cursor/mcp.json): json { "mcpServers": { "vast-ai": { "command": "uv", "args": [ "run", "vast-mcp-server" ], "env": { "VAST_API_KEY": "your_vast_api_key_here", "SSH_KEY_FILE": "~/.ssh/id_rsa", "SSH_KEY_PUBLIC_FILE": "~/.ssh/id_rsa.pub" } } } }

What you can do with Vast.ai

  • Search available cloud marketplace machines by GPU model, count, CPU specifications, and cost to find suitable hardware offers. - Deploy deep learning containers with PyTorch or custom Docker images using specific disk sizes and SSH key attachments. - Manage operational states of active instances by issuing start, stop, reboot, or destroy commands directly from the client. - Inspect container execution by retrieving live logs, daemon system logs, or applying custom grep filter parameters. - Run diagnostic terminal commands on active remote hosts through SSH or manage files on stopped instances.

Key facts

  • https://github.com/CryDevOk/vastai-mcp
  • Cloud & Infrastructure, Developer Tools & Code Intelligence
  • cloud, compute, gpu, vast.ai

Part of MCP Servers

Related MCP servers

  • MCP KQL Server — MCP KQL Server is an MCP server that connects AI assistants to Azure Data Explorer clusters using Azure CLI authentication.…
  • MCP LaTeX Server — MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON — MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete — MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go — MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…

How do I install Vast.ai MCP server?

You install the package using the uv package manager on your system. First install uv, clone the vastai-mcp repository, run uv sync to install the required dependencies, and run uv tool install -e . to register the vast-mcp-server executable.

What can Vast.ai MCP server do?

It provides 23 tools to manage cloud GPU instances on Vast.ai. You can view user balances, search for hardware and storage volume offers, create and label instances, monitor running instance configurations, retrieve container logs, and execute remote commands via SSH.

Which MCP clients work with Vast.ai?

It functions with any client that implements the standard Model Context Protocol and executes local subprocesses with environment variables, such as Claude Desktop or Cursor configured via mcp.json.

What environment variables are required for Vast.ai?

The server requires your VAST_API_KEY generated from the Vast.ai console account settings. It also expects paths to your local SSH keys via SSH_KEY_FILE and SSH_KEY_PUBLIC_FILE to enable secure remote access.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories