Hosted endpoint
Streamable HTTP (stateless, JSON responses) at https://mcp.nestforge.cloud/mcp. The same server is also reachable at https://nestforge.cloud/mcp.
{
"mcpServers": {
"nestforge": { "url": "https://mcp.nestforge.cloud/mcp" }
}
}The hosted server never holds keys. When a tool needs payment it returns:
{
"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.
{
"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
| Tool | Arguments | What it does |
|---|---|---|
list_plans | – | Plans, hourly USDC prices, images and the accepted x402 network |
create_vps | plan, ssh_public_key, image?, hours?, payment_signature?, access_token? | Buy a VPS. Returns payment_required until paid, then id, access_token and ssh |
list_vps | access_token? | Active VPS for a token |
get_vps | id, access_token? | Status, ssh command and expiry |
stop_vps | id, access_token? | Power off |
start_vps | id, access_token? | Power on |
reboot_vps | id, access_token? | Reboot |
extend_vps | id, hours, payment_signature? | Add paid hours (x402) |
delete_vps | id, 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
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":{}}}'