agentmetal/mcp
This server enables autonomous discovery, provisioning, management, and interaction with Linux VPS instances using USDC payments and API keys. It provides 11 tools:
Get catalog (
get_catalog): Browse available server plans (nano,small,medium), locations, and add-on pricing for bandwidth/storage. Free, no payment required.Provision a server (
provision_server): Launch a VPS for 1–30 days, paying with USDC via x402. Optionally provide an SSH public key or enable a managed keypair for root shell access.Get server status (
get_server): Fetch current status, IPv4 address, expiry date, bandwidth usage, and storage info for a specific server.List servers (
list_servers): View all servers associated with a wallet or account API key.Extend a lease (
extend_server): Add 1–30 days to an existing server's lease, paying with USDC.Destroy a server (
destroy_server): Immediately terminate a server (requires account API key).Reboot a server (
reboot_server): Soft-reboot an owned server (requires account API key).Server logs (
server_logs): Retrieve hypervisor-level diagnostics including status, recent provider actions, VNC console URL, and live CPU/disk/network metrics (requires account API key).Execute commands (
exec_command): Run arbitrary shell commands as root over SSH on servers provisioned withmanaged_key:true, with timeouts of 1–120s and up to 256 KB output (requires account API key).Claim account (
claim_account): Initiate account registration by requesting a one-time verification code sent to an email address.Verify claim (
verify_claim): Complete registration by submitting the emailed code to receive an account API key, with an option to link a wallet address.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agentmetal/mcpProvision a VPS for 14 days"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@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.
Tools
13 tools. Paid tools sign a USDC/x402 payment; account-gated tools need
AGENTMETAL_API_KEY (am_live_…) and ownership of the server.
Tool | Pays? | Account key? | What it does |
| — | — | List plans, locations, and add-on pricing (bandwidth, storage). The free discovery hook. |
| ✅ USDC | — | Provision a VPS ( |
| — | — | Status, IPv4, expiry, bandwidth, storage for a server id |
| — | — | Fleet for a wallet/account |
| ✅ USDC | — | Extend a lease by N days |
| — | ✅ | Destroy now |
| — | ✅ | Soft-reboot an owned server |
| — | ✅ | 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) |
| — | ✅ | Run a shell command as root over SSH → exit_code/stdout/stderr. Requires a server provisioned with |
| — | — | Read a box's edge-firewall rules. Callable from the box itself (source-IP identity) or with an account key. |
| — | — | 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. |
| — | — | Email a one-time claim code (via AWS SES) |
| — | — | Redeem the code for an account API key. Link a wallet by also passing |
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.
Related MCP server: clawpay-mcp
Configuration (env)
Var | Default | Purpose |
|
| API base URL |
| — |
|
|
| CAIP-2 network (Base mainnet) |
|
| Per-request spend cap, in USDC |
| — |
|
Use with Claude Code
// .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:8453kind.
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/agentmetal/mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server