Agentmetal

dev.agentmetal由 agentmetal.dev 發布v0.3.5更新於 Nov 7, 2026

Rent a Linux VPS from an AI agent: provision, SSH in, run commands. Pay USDC (x402) or card.

已驗證STDIO僅桌面雲端與基礎設施金融

概覽

AI 產生的概覽

讓助理自行租用並維運 Linux VPS:查詢方案、以 USDC 或信用卡付款、開通、SSH 登入、執行指令、管理與續約。

可以做什麼
  • 查詢方案、機房地點與附加項目價格,並依伺服器 ID 或錢包/帳戶列出伺服器
  • 開通 VPS 並延長租期,透過 x402 以 USDC 付款
  • 查看狀態、IPv4、到期時間、頻寬與儲存空間,以及 Hypervisor 日誌、主控台網址與即時指標
  • 在採用託管金鑰開通的伺服器上,以 root 身分透過 SSH 執行 shell 指令
  • 讀取並修改邊緣防火牆規則,包括開放或關閉 inbound 連接埠
  • 以電子郵件驗證碼認領帳戶並換取 API 金鑰,可選擇綁定錢包
適用情境
適合希望智慧代理無需人工註冊即可自行建立並長期維護 Linux 伺服器的情境,例如架設服務、執行建置或測試部署,並在之後持續付費與管理。
執行需求
以 npm 套件形式透過 stdio 在本機執行。付費工具需要 WALLET_PRIVATE_KEY(在 Base 上持有 USDC 的錢包),AGENTMETAL_MAX_USDC 為單次請求花費上限,AGENTMETAL_NETWORK 指定網路。需帳戶的工具需要 AGENTMETAL_API_KEY。AGENTMETAL_BASE_URL 可覆寫 API 位址。需要能連線至 AgentMetal API 的網路。
安裝前請注意
此伺服器要求提供錢包私鑰(WALLET_PRIVATE_KEY),用於在 Base 主網簽署真實 USDC 付款;私鑰外洩會危及整個錢包,建議使用專用且餘額較低的錢包,並將 AGENTMETAL_MAX_USDC 設低。開通、續約、重新開機、銷毀伺服器與修改防火牆規則都會花錢或改動線上基礎設施。exec_command 以 root 身分執行。託管金鑰的私鑰僅在開通時回傳一次。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Agentmetal,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@agentmetal/mcp

MCP server that exposes AgentMetal as tools, so an agent can discover → pay → provision → SSH in → run commands → manage → renew its own Linux server (VPS / cloud instance) with no human signup. Paid tools sign USDC payments over x402 v2 (or pay by card); the rest are plain HTTP.

[agentmetal/mcp MCP server] [CI]

Tools

13 tools. Paid tools sign a USDC/x402 payment; account-gated tools need AGENTMETAL_API_KEY (am_live_…) and ownership of the server.

ToolPays?Account key?What it does
get_catalog——List plans, locations, and add-on pricing (bandwidth, storage). The free discovery hook.
provision_server✅ USDC—Provision a VPS (plan, days, optional ssh_key/via, managed_key) → id, IPv4, SSH. With managed_key:true, a server-side keypair is generated, authorized, and the private key returned once (stored only encrypted) to enable exec_command.
get_server——Status, IPv4, expiry, bandwidth, storage for a server id
list_servers——Fleet for a wallet/account
extend_server✅ USDC—Extend a lease by N days
destroy_server—✅Destroy now
reboot_server—✅Soft-reboot an owned server
server_logs—✅Hypervisor-level diagnostics without logging in: status, recent provider actions, a VNC console URL, and live CPU/disk/net metrics (no text boot log exists provider-side)
exec_command—✅Run a shell command as root over SSH → exit_code/stdout/stderr. Requires a server provisioned with managed_key:true. Bounded: 1–120 s timeout, 256 KB output cap.
get_firewall——Read a box's edge-firewall rules. Callable from the box itself (source-IP identity) or with an account key.
manage_firewall——Open/close inbound ports on a box's edge firewall (protocol/port/source_ips). From the box itself or with an account key; SSH-lockout guarded.
claim_account——Email a one-time claim code (via AWS SES)
verify_claim——Redeem the code for an account API key. Link a wallet by also passing wallet + wallet_signature.

Add-ons (currently API endpoints, not yet separate MCP tools): extra storage ($0.01/GB/day, attached block volume) via POST /v1/servers/{id}/storage and extra bandwidth ($2/TB beyond the 20 TB included) via POST /v1/servers/{id}/bandwidth.

Configuration (env)

VarDefaultPurpose
AGENTMETAL_BASE_URLhttps://api.agentmetal.devAPI base URL
WALLET_PRIVATE_KEY—0x… EVM key used to pay 402s. Omit and paid tools fail with a clear message.
AGENTMETAL_NETWORKeip155:8453CAIP-2 network (Base mainnet)
AGENTMETAL_MAX_USDC50Per-request spend cap, in USDC
AGENTMETAL_API_KEY—am_live_… account key, required for destroy_server / reboot_server / server_logs / exec_command

Use with Claude Code

jsonc
// .mcp.json (or claude mcp add){  "mcpServers": {    "agentmetal": {      "command": "node",      "args": ["packages/mcp/src/index.ts"],      "env": {        "WALLET_PRIVATE_KEY": "0x…",        "AGENTMETAL_MAX_USDC": "50"      }    }  }}

The wallet must hold USDC on Base. The spend cap (AGENTMETAL_MAX_USDC) bounds what any single tool call can pay; a 402 above the cap is refused before signing.

Status: client + server are unit-tested and the stdio handshake is verified. Live USDC settlement needs a funded wallet + an x402 facilitator that supports the exact / eip155:8453 kind.

來源:README.md,提交 5a86406

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.3.5最新Nov 7, 2026
  2. v0.3.4Oct 12, 2026
  3. v0.3.3Oct 7, 2026
  4. v0.3.2Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分