What is Agentmetal?
Agentmetal is an MCP server that exposes the AgentMetal platform as tools, enabling an AI agent to discover, pay for, provision, SSH into, run commands on, manage, and renew its own Linux server (VPS or cloud instance) without any human signup. Paid tools settle payments in USDC via the x402 v2 protocol (or by card); all other tools use plain HTTP.
How to use Agentmetal?
Configure the server in your MCP client (e.g., Claude Code) by adding a mcpServers entry with the command node packages/mcp/src/index.ts. Set the environment variable WALLET_PRIVATE_KEY to an EVM private key holding USDC on Base mainnet, and optionally set AGENTMETAL_MAX_USDC to cap per-request spend. Paid tools require a funded wallet; account‑gated tools require AGENTMETAL_API_KEY.
Key features of Agentmetal
- 13 tools covering the full server lifecycle.
- Paid tools sign USDC/x402 payments; free tools use plain HTTP.
- Provision a VPS with optional managed SSH key for command execution.
- Run shell commands as root via
exec_command (requires managed key).
- Read and manage edge firewall rules from the server or with an account key.
- Claim an account via email and link a wallet for extended capabilities.
- Bounded spend cap: per‑request limit configurable via
AGENTMETAL_MAX_USDC.
Use cases of Agentmetal
- An agent autonomously provisions a Linux server to deploy a web application.
- The agent extends the server lease when more runtime is needed.
- The agent runs diagnostics and reboots the server without human interaction.
- The agent opens firewall ports to expose a service, then closes them after use.
- A developer integrates server lifecycle management into an automated workflow.
评论