Skip to content
NestForge

Model Context Protocol

Give any MCP agent its own servers

NestForge ships an MCP server that wraps the REST API. Use the hosted endpoint over streamable HTTP, or run it locally over stdio so your agent can pay from its own wallet.

Hosted endpoint

Streamable HTTP (stateless, JSON responses) at https://mcp.nestforge.cloud/mcp. The same server is also reachable at https://nestforge.cloud/mcp.

mcp.json
{
  "mcpServers": {
    "nestforge": { "url": "https://mcp.nestforge.cloud/mcp" }
  }
}

The hosted server never holds keys. When a tool needs payment it returns:

tool result
{
  "payment_required": { "x402Version": 2, "accepts": [ { "scheme": "exact",
      "network": "eip155:…", "amount": "5000", "asset": "0x…USDC", "payTo": "0x…" } ], … },
  "how_to_pay": "Sign one entry of payment_required.accepts with an x402 client …"
}

Sign accepts[0] with an x402 client and call the same tool again with payment_signature set to the base64 PAYMENT-SIGNATURE value.

Local stdio server (auto-pay)

Run the server next to your agent with a wallet key and it handles x402 automatically. Use a dedicated wallet with a small balance. The key never leaves your machine.

mcp.json (local)
{
  "mcpServers": {
    "nestforge": {
      "command": "python",
      "args": ["-m", "mcp_server.server"],
      "env": {
        "NESTFORGE_API_URL": "https://nestforge.cloud",
        "NESTFORGE_PAYER_PRIVATE_KEY": "0x<agent wallet key>"
      }
    }
  }
}

Tools

ToolArgumentsWhat it does
list_plans–Plans, hourly USDC prices, images and the accepted x402 network
create_vpsplan, ssh_public_key, image?, hours?, payment_signature?, access_token?Buy a VPS. Returns payment_required until paid, then id, access_token and ssh
list_vpsaccess_token?Active VPS for a token
get_vpsid, access_token?Status, ssh command and expiry
stop_vpsid, access_token?Power off
start_vpsid, access_token?Power on
reboot_vpsid, access_token?Reboot
extend_vpsid, hours, payment_signature?Add paid hours (x402)
delete_vpsid, access_token?Destroy now

Keep the access_token from create_vps. Pass it to the other tools; it is the only credential.

Raw JSON-RPC

terminal
curl -s https://mcp.nestforge.cloud/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"list_plans","arguments":{}}}'