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、到期时间、带宽与存储,以及宿主机日志、控制台地址和实时指标
  • 在使用托管密钥开通的服务器上以 root 身份通过 SSH 执行 shell 命令
  • 读取并修改边缘防火墙规则,包括开放或关闭入站端口
  • 通过邮件验证码认领账户并换取 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 分