lunanode-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@lunanode-mcplist my virtual machines"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: timeweb-mcp-server
Configuration
Set these environment variables:
Variable | Required | Description |
| Yes | Your LunaNode API ID. |
| Yes | Your LunaNode API key (128 characters). |
| No | Enables write-tier tools. Unset = off. |
| No | Enables delete-tier tools. Unset = off. |
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/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 |
| List all virtual machines on the LunaNode account. |
| Get detailed configuration and live status for a virtual machine. |
| List all IP addresses assigned to a virtual machine. |
| List images available to the account, optionally filtered by region. |
| Get metadata for a specific image. |
| List block storage volumes, optionally filtered by region. |
| Get details for a specific volume. |
| List volume snapshots in a region. |
| List all floating IPs on the account. |
| List stored SSH public keys with their IDs. |
| List available LunaNode VM plans with pricing, CPU, RAM, storage, and regional availability. |
| List all LunaNode regions where services can be deployed. |
Write tools (require LUNANODE_ENABLE_WRITES)
Tool | Description |
| Provision a new virtual machine. Requires a hostname and plan_id; boot from image_id or volume_id. |
| Perform a VM state action: start, stop, reboot, diskswap, rescue, shelve, or unshelve. |
| Reinstall a VM from an image. Destroys the VM's current disk contents. |
| Change a VM's plan (CPU/RAM/storage). |
| Change a VM's hostname label. |
| Create a disk image snapshot of a VM. |
| Generate a temporary noVNC console URL for a VM. Grants console access, so it is write-gated. |
| Attach a floating (public) IP to a VM. |
| Allocate an additional internal IP address on a VM. |
| Add a VM to an existing security group. |
| Remove a VM from a security group. |
| Add a new image by fetching it from an HTTP, HTTPS, or FTP URL. |
| Copy an image to another region. |
| Change an image's label. |
| Create a block storage volume, optionally pre-populated from an image or snapshot. |
| Attach a volume to a virtual machine. |
| Detach a volume from its virtual machine. |
| Increase the size of an unattached volume. |
| Change a volume's label. |
| Take a snapshot of a volume. |
| Convert a volume snapshot into an image, optionally in another region. |
| Provision a new unattached floating IP in a region. |
| Store an SSH public key for provisioning VMs with key-based authentication. |
Delete tools (require LUNANODE_ENABLE_DELETES)
Tool | Description |
| Permanently delete a virtual machine. |
| Remove an internal IP address from a VM. |
| Detach a floating IP from a VM. By default the IP is destroyed; set keep to retain it unattached. |
| Permanently delete an image. |
| Permanently delete a volume. |
| Permanently delete a volume snapshot. |
| Release an unattached floating IP from the account. |
| Delete a stored SSH key. |
Development
npm install
npm test
npm run build
npm run smoke # needs real LunaNode credentialsAPI keys
API keys are created in the LunaNode panel under API. See https://www.lunanode.com/api/overview for details.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to manage VPS servers, domains, DNS records, and SSH keys through the VPS.org API via natural language.261MIT
- AlicenseBqualityDmaintenanceEnables management of Timeweb Cloud resources including servers, databases, Kubernetes clusters, S3 storage, DNS, SSH keys, and floating IPs through natural language.9711MIT
- AlicenseAqualityCmaintenanceEnables safe management of Vultr VPS instances, including listing resources, previewing and creating instances with cost limits, and performing mutations like reboot and delete only after exact confirmation.15MIT
- Alicense-qualityBmaintenanceEnables AI assistants to manage virtual machines via natural language, including creating, editing, and VNC control.24MIT
Related MCP Connectors
Operate your Linux servers from your LLM. Every action runs through an auditable allowlist.
Provision and manage a VPS for AI agents over MCP: register, order, get root, control the server.
Let AI operate servers without SSH. Choose actions, approve risky changes, and audit every step.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Burntberry/lunanode-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server