Vast.ai
Search Vast.ai GPU compute offers, storage volume offers, and launch templates using a durable API key.
Verdict
Common use cases
- Compare GPU pricing before training runs
- Find cheapest storage for dataset backups
- Audit compute spend across experiments
- Scout hardware for new model architecture
- Check template availability for framework upgrades
Integration
- Vendor
- Vast.ai
- Category
- other
- Auth
- API_KEY
- Tools
- 3
- Composio slug
vast_ai
Tools
- Search GPU Offers
Find currently rentable Vast.ai GPU compute offers using verified marketplace filters. Returns compact offer identifiers, GPU capacity, and hourly pricing for comparison; it does not rent an offer. The connected API key must include Vast.ai
- Search Templates
Search Vast.ai launch templates by safe identifying metadata. The tool filters and pages locally because the provider returns a large unpaginated payload.
- Search Volume Offers
Find Vast.ai storage volume offers available in the marketplace. Returns compact location, capacity, and storage-cost details; it does not rent or modify a volume.
Setup
Setup guide
- 11. In Switchy, open Settings and navigate to the Integrations tab. 2. Click 'Add Integration' and select Vast.ai from the MCP directory. 3. You'll be prompted to enter a Vast.ai API key — generate one by logging into your Vast.ai account, visiting the API settings page, and creating a new key with read permissions for offers and templates. 4. Paste the key into Switchy and click 'Connect'. 5. To test the connection, open any Project and type '@Vast.ai search GPU offers with at least 24GB VRAM under $0.50/hour' — the MCP should return a list of matching offers with IDs, GPU models, and hourly rates. 6. If you see results, the integration is live and ready for your team to query compute and storage options inside any conversation.
What teammates see: by default, memories from Vast.ai are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.
Works well with
Top models
Compatibility data appears once enough Projects have used this MCP together with a given model.
How Switchy teams use it
Starter prompts
Budget GPU Search
@Vast.ai search GPU offers with at least 16GB VRAM in North America under $0.40 per hour. Show the top five by price.
Template Discovery
@Vast.ai search templates for PyTorch 2.0 or newer with CUDA 12 support. List template names and base images.
High-Memory Instances
@Vast.ai find GPU offers with 80GB VRAM or more. Include GPU model, location, and hourly cost.
Storage Volume Pricing
@Vast.ai search volume offers with at least 500GB capacity. Show location, monthly cost, and availability.
Multi-GPU Comparison
@Vast.ai search GPU offers with 4 or more GPUs per instance. Return total VRAM, GPU type, and cost per hour.
Example outputs
Illustrative - representative of the model's voice and quality, not literal recordings.
@vast.ai find me the 5 cheapest RTX 4090 offers with at least 24GB VRAM and 100GB disk space available right now
Found 5 RTX 4090 offers matching your criteria. The cheapest starts at $0.34/hour (offer #12847563) with 24GB VRAM, 120GB disk, located in US-West datacenter. Next cheapest is $0.38/hour (offer #12901442) with identical specs in EU-Central. All five offers are verified and currently online. Note these are snapshots — availability changes minute-by-minute as other users rent capacity.
This example shows the MCP's core search capability for GPU compute. The tool returns offer identifiers and pricing but does NOT rent the instance — you'll need to complete rental through Vast.ai's web dashboard or CLI. Offers can disappear between search and rental attempt during high-demand periods.
@vast.ai search for launch templates tagged 'pytorch' that support multi-GPU setups, show me the top 3 by popularity
Found 3 popular PyTorch templates supporting multi-GPU: 'pytorch-distributed-2.1' (template ID: pt_dist_v21) configured for 2-8 GPUs with NCCL, 'fastai-multigpu' (template ID: fastai_mg) optimized for vision workloads across 4+ GPUs, and 'huggingface-trainer' (template ID: hf_train) with DeepSpeed integration for 2-16 GPU training. Each template includes pre-configured CUDA drivers and framework-specific distributed libraries.
This demonstrates template discovery for pre-built environments. Templates save setup time but the MCP only searches metadata — it cannot inspect the actual Docker image contents or verify software versions. Always validate the template matches your framework version requirements before renting compute.
@vast.ai compare storage volume pricing across US and EU regions for 500GB capacity, then draft a cost estimate for a 3-month ML experiment storing checkpoints
US regions average $0.08/GB/month for 500GB volumes ($40/month), while EU regions run $0.10/GB/month ($50/month). For your 3-month checkpoint storage scenario: US-based volume would cost ~$120 total, EU-based ~$150 total. However, consider data egress costs if your compute instances are in a different region — transferring 500GB between regions could add $15-30 in bandwidth fees. Recommend co-locating storage and compute in the same region to avoid transfer costs.
This example pairs the MCP's volume search with AI reasoning to synthesize a cost analysis. The MCP provides raw pricing data but cannot predict your actual usage patterns or account for bandwidth between regions. Treat this as a planning estimate, not a billing guarantee — actual costs depend on your data transfer and snapshot behavior.
Use-case deep-dives
When Vast.ai wins for one-off model training budgets
A 3-person ML team needs to fine-tune a vision model but doesn't want to commit to a monthly GPU instance. They use the Search GPU Offers tool in Switchy to compare hourly rates across 40+ providers in real time, filtering by VRAM and CUDA version. The MCP returns compact pricing data fast enough to check during a standup call. This works when you train sporadically—maybe twice a month—and your runs finish in under 48 hours. If you're training daily or need guaranteed availability, a reserved instance beats spot-market hunting. The API key setup takes two minutes; after that, your team can price-check without leaving the chat thread.
When this MCP helps scope GPU-heavy client work
A 5-person agency pitching a computer vision project needs to estimate compute costs before signing the contract. They use Search GPU Offers to pull current A100 and H100 rates, then Search Templates to see what launch configs other teams use for similar workloads. The tool returns enough detail to build a line-item budget without opening the Vast.ai dashboard. This scenario works because the search happens once per proposal, not once per day. If your team runs continuous inference or needs SLA guarantees, Vast.ai's spot market isn't the right fit and this MCP won't change that. For pre-sales scoping, though, it cuts 20 minutes of tab-switching into a single Switchy query.
When Search Volume Offers clarifies storage trade-offs
A 2-person research team has 800GB of training data and wants to compare Vast.ai volume pricing against S3 before committing to a storage strategy. They use Search Volume Offers in Switchy to see per-GB rates across regions, then cross-reference egress costs in the same thread. The MCP returns location and capacity details but doesn't provision anything, so the team can debate options without accidentally spinning up infrastructure. This works when you're in the planning phase and storage decisions happen quarterly, not hourly. If you're already locked into a cloud provider's ecosystem, this MCP won't justify the context switch. For teams evaluating decentralized storage as a cost hedge, it surfaces the data you need to make the call.
Frequently asked
What does the Vast.ai MCP do in Switchy?
It lets your team search Vast.ai's GPU marketplace directly from Switchy conversations. You can compare rental offers by GPU model and price, browse launch templates, and find storage volumes without opening the Vast.ai dashboard. The MCP does not rent machines or modify volumes—it's read-only search for planning and cost comparison.
Do I need a Vast.ai account to use this MCP?
Yes. You need a Vast.ai API key, which requires a registered account. The key authenticates read access to marketplace data. You don't need admin permissions or a paid plan—free-tier accounts can generate API keys and use the search tools. Whoever connects the MCP should have access to your team's Vast.ai billing dashboard if you plan to act on search results.
Can the Vast.ai MCP rent a GPU instance for me?
No. The three tools are search-only: they return offer IDs, pricing, and specs but cannot execute rentals or start instances. If Switchy finds the right GPU offer, you still open Vast.ai's console or API to complete the rental. This keeps destructive actions outside the MCP layer and prevents accidental spend from a chat typo.
How is this different from just using Vast.ai's website?
The MCP surfaces marketplace data inside your team's existing Switchy workflow. Instead of context-switching to filter offers in a separate tab, you ask Switchy to compare A100 prices or find templates matching your framework. It's faster for spot checks and cost research, but you still need the Vast.ai console for actual provisioning and instance management.
Who on the team should connect the Vast.ai MCP?
Whoever manages your GPU budget or runs training jobs. The API key is read-only, so there's no risk of accidental charges, but the person connecting it should understand your Vast.ai account structure. If multiple people rent instances, share the connection—Switchy workspaces let the whole team query offers without passing around credentials.