Skip to main content
Glama

lunanode-mcp

MCP server for the LunaNode VPS API.

Features

  • 43 tools covering VMs, images, volumes, floating IPs, SSH keys, and plans/regions.

  • Tiered safety gating: read operations are always available; write and delete operations must be explicitly enabled.

Related MCP server: Vultr Codex MCP

Configuration

Set these environment variables:

Variable

Required

Description

LUNANODE_API_ID

Yes

Your LunaNode API ID.

LUNANODE_API_KEY

Yes

Your LunaNode API key (128 characters).

LUNANODE_ENABLE_WRITES

No

Enables write-tier tools. Unset = off. true/1 = all write tools. Comma-separated tool names = only those tools.

LUNANODE_ENABLE_DELETES

No

Enables delete-tier tools. Unset = off. true/1 = all delete tools. Comma-separated tool names = only those tools.

Read-tier tools are always enabled. Enabling writes does not imply deletes — each tier is gated independently.

Using a .env file

Instead of putting credentials in your MCP client config, you can keep them in a .env file and load it with Node's built-in --env-file flag (Node 20.6+). Copy .env.example to .env (git-ignored), fill in your values, and restrict access with chmod 600 .env. Full-line and inline # comments are supported.

{
  "mcpServers": {
    "lunanode": {
      "command": "node",
      "args": [
        "--env-file=/path/to/lunanode-mcp/.env",
        "/path/to/lunanode-mcp/dist/index.js"
      ]
    }
  }
}

The smoke test can use the same file: npx tsx --env-file=.env scripts/smoke.ts

Client setup

Example configuration for Claude Code / Claude Desktop:

{
  "mcpServers": {
    "lunanode": {
      "command": "npx",
      "args": ["-y", "github:Burntberry-Enterprises/lunanode-mcp"],
      "env": {
        "LUNANODE_API_ID": "your-api-id",
        "LUNANODE_API_KEY": "your-128-char-api-key",
        "LUNANODE_ENABLE_WRITES": "true",
        "LUNANODE_ENABLE_DELETES": "vm_delete,volume_delete"
      }
    }
  }
}

Tool reference

Read tools (always enabled)

Tool

Description

vm_list

List all virtual machines on the LunaNode account.

vm_info

Get detailed configuration and live status for a virtual machine.

vm_iplist

List all IP addresses assigned to a virtual machine.

image_list

List images available to the account, optionally filtered by region.

image_details

Get metadata for a specific image.

volume_list

List block storage volumes, optionally filtered by region.

volume_info

Get details for a specific volume.

volume_snapshot_list

List volume snapshots in a region.

floating_ip_list

List all floating IPs on the account.

ssh_key_list

List stored SSH public keys with their IDs.

plan_list

List available LunaNode VM plans with pricing, CPU, RAM, storage, and regional availability.

region_list

List all LunaNode regions where services can be deployed.

Write tools (require LUNANODE_ENABLE_WRITES)

Tool

Description

vm_create

Provision a new virtual machine. Requires a hostname and plan_id; boot from image_id or volume_id.

vm_action

Perform a VM state action: start, stop, reboot, diskswap, rescue, shelve, or unshelve.

vm_reimage

Reinstall a VM from an image. Destroys the VM's current disk contents.

vm_resize

Change a VM's plan (CPU/RAM/storage).

vm_rename

Change a VM's hostname label.

vm_snapshot

Create a disk image snapshot of a VM.

vm_vnc

Generate a temporary noVNC console URL for a VM. Grants console access, so it is write-gated.

vm_floating_ip_attach

Attach a floating (public) IP to a VM.

vm_ip_add

Allocate an additional internal IP address on a VM.

vm_securitygroup_add

Add a VM to an existing security group.

vm_securitygroup_remove

Remove a VM from a security group.

image_fetch

Add a new image by fetching it from an HTTP, HTTPS, or FTP URL.

image_replicate

Copy an image to another region.

image_rename

Change an image's label.

volume_create

Create a block storage volume, optionally pre-populated from an image or snapshot.

volume_attach

Attach a volume to a virtual machine.

volume_detach

Detach a volume from its virtual machine.

volume_extend

Increase the size of an unattached volume.

volume_rename

Change a volume's label.

volume_snapshot_create

Take a snapshot of a volume.

volume_snapshot_replicate

Convert a volume snapshot into an image, optionally in another region.

floating_ip_add

Provision a new unattached floating IP in a region.

ssh_key_add

Store an SSH public key for provisioning VMs with key-based authentication.

Delete tools (require LUNANODE_ENABLE_DELETES)

Tool

Description

vm_delete

Permanently delete a virtual machine.

vm_ip_delete

Remove an internal IP address from a VM.

vm_floating_ip_detach

Detach a floating IP from a VM. By default the IP is destroyed; set keep to retain it unattached.

image_delete

Permanently delete an image.

volume_delete

Permanently delete a volume.

volume_snapshot_delete

Permanently delete a volume snapshot.

floating_ip_delete

Release an unattached floating IP from the account.

ssh_key_remove

Delete a stored SSH key.

Development

npm install
npm test
npm run build
npm run smoke   # needs real LunaNode credentials

API keys

API keys are created in the LunaNode panel under API. See https://www.lunanode.com/api/overview for details.

Available Tools

12 tools
floating_ip_listA

List all floating IPs on the account.

Inputs: no named parameters.

image_detailsA

Get metadata for a specific image.

Inputs: image_id (required).

image_listA

List images available to the account, optionally filtered by region.

Inputs: region.

plan_listA

List available LunaNode VM plans with pricing, CPU, RAM, storage, and regional availability.

Inputs: no named parameters.

region_listA

List all LunaNode regions where services can be deployed.

Inputs: no named parameters.

ssh_key_listA

List stored SSH public keys with their IDs.

Inputs: no named parameters.

vm_infoA

Get detailed configuration and live status for a virtual machine.

Inputs: vm_id (required).

vm_iplistA

List all IP addresses assigned to a virtual machine.

Inputs: vm_id (required).

vm_listA

List all virtual machines on the LunaNode account.

Inputs: no named parameters.

volume_infoA

Get details for a specific volume.

Inputs: volume_id (required).

volume_listA

List block storage volumes, optionally filtered by region.

Inputs: region.

volume_snapshot_listB

List volume snapshots in a region.

Inputs: region (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool targets a distinct resource and action, such as listing all VMs vs. getting details for a single VM vs. listing IPs. There is no overlap or ambiguity in what each tool returns.

    Naming Consistency5/5

    All tools follow a consistent snake_case pattern of resource-based nouns with descriptive suffixes like _list, _info, and _details. Minor variations such as vm_iplist vs. volume_snapshot_list do not break the overall predictability.

    Tool Count5/5

    12 tools is well-scoped for an infrastructure read-only API, covering VMs, images, volumes, snapshots, IPs, SSH keys, plans, and regions without unnecessary bloat.

    Completeness2/5

    The server is entirely read-only, providing only list and info operations. There are no create, update, delete, or action tools, which is a significant gap for a cloud management MCP server. Users can inspect resources but cannot manage them.

    Related MCP Connectors

    Related MCP Servers