I work on NodeRings. This is a walkthrough of how we provision a virtual machine across independent hosting providers from the tools we already use, and how those tools share one account without sharing secrets they should not have.
The awkward part of "several hosts, one workflow" is not calling an API. It is deciding which offer to buy without hard-coding a provider, configuring the guest from the same source of truth, and keeping an assistant from holding a hypervisor token or an SSH private key. The examples below use the public NodeRings Terraform provider, the noderings.cloud Ansible collection, and the hosted MCP server. The same pattern applies if you are wiring any marketplace that returns a plan id and a region id.
What sits under the tools
NodeRings is a marketplace, not a hypervisor. Independent providers list plans on hardware they already run. Official provider docs cover Proxmox, VirtFusion and SolusVM 2. The provider keeps the hypervisor credential and runs a scoped operator in their own environment; the marketplace sends the order over a peered channel and does not store the hypervisor password. That is described in the provider how-it-works guide and in the open-source Proxmox operator.
For a buyer, every tool in this post talks to the same API, with one organization and one prepaid credit balance. Usage-based (hourly) creates need that balance. If it is short, the create fails and the error states the minimum. You can compare live plans in the browser with no account at noderings.com. Provisioning a VM needs an account, a payment method, prepaid credit, and an SSH key.
1. Terraform: pick an offer, then pin it
The provider is noderings/noderings on the Terraform Registry and the OpenTofu registry (v0.2.0 as of 26 Nov 2026). It authenticates with a service-account token from Organization > Access Control > Service accounts, exported as NODERINGS_TOKEN. Nothing in the Terraform configuration has to name a hosting provider.
A plan code is a size that any provider can sell, for example SC-GC-2C-4G-80 (2 vCPU, 4 GB RAM, 80 GB disk). An offer is one provider's price for that code in one city. The noderings_marketplace_offer data source lists the current offers, drops any that lack the capabilities you asked for, and returns the cheapest by default (or the best-rated provider if you set sort = "rating").
terraform { required_providers { noderings = { source = "noderings/noderings" version = "~> 0.2" } } } provider "noderings" {} # reads NODERINGS_TOKEN data "noderings_marketplace_offer" "web" { plan_code = "SC-GC-2C-4G-80" country = "Germany" city = "Frankfurt" billing_type = "usage" require_capabilities = ["guest_firewall"] } resource "noderings_ssh_key" "me" { name = "laptop" public_key = file("~/.ssh/id_ed25519.pub") } resource "noderings_virtual_machine" "web" { hostname = "web-1" plan_id = data.noderings_marketplace_offer.web.plan_id region_id = data.noderings_marketplace_offer.web.region_id distro = "ubuntu_24_04" ssh_key_ids = [noderings_ssh_key.me.id] tags = ["web"] deletion_protection = true # Use the lookup only to create the VM; keep it on that offer afterwards. lifecycle { ignore_changes = [plan_id, region_id] } } Two details that matter in practice:
-
deletion_protectionstops a typo interraform destroyfrom deleting a running machine. Flip it back tofalsewhen you really mean it. - Without
lifecycle.ignore_changes, a later plan could pick a different provider if prices moved, and Terraform would want to replace the VM. The ignore keeps the original offer after create. If you want a specific provider from the start, setprovider_idorstorefront_slugon the data source instead.
The longer first-run write-up is Order a VPS with Terraform and pay by the hour. Source and docs: github.com/noderings/terraform-provider-noderings.
2. Ansible: the same account, then inventory
The collection is noderings.cloud. It is not on Ansible Galaxy yet (the namespace is still being set up), so install it from GitHub:
ansible-galaxy collection install git+https://github.com/noderings/ansible-collection-noderings.git,main It needs ansible-core 2.16 or newer and has no extra Python dependencies. Every module reads NODERINGS_TOKEN. Modules support check mode, so ansible-playbook --check --diff shows what would be ordered or deleted.
You can create the VM in a playbook, or let Terraform create it and let Ansible only configure it. A playbook that does the create itself looks like this. Note that the distro value is ubuntu_24_04, the same string Terraform uses, not the MCP enum you will see later.
- hosts: localhost gather_facts: false tasks: - name: My SSH key noderings.cloud.ssh_key: name: laptop public_key: "{{ lookup('ansible.builtin.file', '~/.ssh/id_ed25519.pub') }}" - name: The server noderings.cloud.virtual_machine: hostname: web-1 plan_code: SC-GC-2C-4G-80 country: Germany city: Frankfurt billing_type: usage distro: ubuntu_24_04 ssh_keys: [laptop] tags: [web] state: running register: vm - name: Wait for SSH ansible.builtin.wait_for: host: "{{ vm.virtual_machine.ipv4 }}" port: 22 If Terraform already created the machine and tagged it web, skip the create and use the inventory plugin. Create a file whose name ends in noderings.yml:
plugin: noderings.cloud.noderings tags: [web] states: [running] compose: ansible_user: "'root'" ansible-inventory -i inventory/noderings.yml --graph ansible -i inventory/noderings.yml noderings_tag_web -m ping Each host gets ansible_host set to its IPv4 (or IPv6 with connect_via: ipv6) and groups such as noderings_tag_web, noderings_city_frankfurt and noderings_provider_<name>. On a standard OS image the selected SSH key is installed for root. A custom cloud-init profile can use a different user; the API does not report that user, so do not assume one.
The first-run playbook write-up is Order and configure a VPS with one Ansible playbook.
3. MCP: ad-hoc changes, with a tight tool list
The hosted Model Context Protocol server is at https://mcp.noderings.com/mcp. It is listed in the official MCP Registry as com.noderings/mcp. The assistant signs in with your NodeRings account over OAuth. It does not get a separate admin account, and it never sees your password. The session is bound to one organization. A client organization sees marketplace and VM tools; a provider organization sees fleet tools instead. Sign in again after you change organization.
This path is for "create a small hourly Ubuntu VM in Ashburn and give me the IPv4," not for replacing Terraform. Write tools run only when you ask, and a delete still requires an explicit request.
Cursor is the only client that should send the public client id noderings-mcp:
{ "mcpServers": { "noderings": { "url": "https://mcp.noderings.com/mcp", "auth": { "CLIENT_ID": "noderings-mcp" } } } } Claude (web, desktop, or claude mcp add --transport http noderings https://mcp.noderings.com/mcp), ChatGPT, VS Code, Codex, Windsurf and the other documented clients sign in as themselves. Leave the client id and secret empty. Saving ChatGPT or Codex with noderings-mcp fails with redirect_uri is not registered. Delete that connector and add it again without the client id.
A prompt that matches the documented tools:
Find a small usage-based plan, Ubuntu 24.04, and create a VM with my SSH key. When it has an address, tell me the IPv4.
Under the hood, list_marketplace_offerings returns a plan id and region id, list_distros returns a value such as DISTRO_UBUNTU_24_04, and create_virtual_machine needs the hostname, plan, region, distro, and one or more SSH key ids. It does not accept a password. get_virtual_machine returns ipv4 and ipv6 once the platform has allocated them; during provisioning those fields can be empty.
Then SSH from your own machine with the private key that never left it:
ssh root@<ipv4> What the server will not do, from the MCP guide:
- Run commands on the guest, open a console, or hold an SSH session.
- Accept a root password or a pasted private key, or return public key material.
- Call an arbitrary NodeRings URL. Each tool is a fixed operation.
- Change firewall rules. It can list rulesets and read one by id. Use Terraform or Ansible to change them.
- Restore a backup. It can list backups and create a snapshot.
The Cursor-specific walkthrough is Create a VM from Cursor with the NodeRings MCP server.
Putting the three together
A workflow that has held up for us:
- Keep offer filters, the SSH key, the VM, the firewall and DNS in Terraform. Pin the offer with
ignore_changesafter create. Tag the VM so other tools can find it. - Point Ansible inventory at those tags and configure the guest (packages, users, app deploy). Do not also create the same VM from a playbook, or you will have two writers.
- Use the MCP server for read-backs and for one-off power or DNS changes, not as the source of truth. The assistant can see the machine Terraform created, because it is the same API.
All three can spend money. terraform destroy (once deletion_protection is off) and state: absent in Ansible stop hourly billing when the VM is deleted. The MCP delete_virtual_machine tool does the same, and only when you ask it to.
Pointers
- Terraform provider: registry.terraform.io/providers/noderings/noderings
- Ansible collection: github.com/noderings/ansible-collection-noderings
- MCP docs: docs.noderings.com/docs/client-guides/mcp
- How the provider-side operator is scoped: docs.noderings.com/docs/provider-guides/how-it-works
If something above does not match what you see in the registry or the API, tell me in the comments.
NodeRings Team

