MCP Server
Model Context Protocol (MCP) lets AI assistants call tools. AgentaOS’s MCP server exposes account operations as tools. Your agent says “send 0.01 ETH” and the signing protocol runs behind the scenes. No raw keys. No manual RPC calls. Just intent.Setup
Add Agenta to your MCP client config. Works with Claude Desktop, Cursor, or any MCP-compatible client.| Variable | Required | Default | Description |
|---|---|---|---|
AGENTA_API_KEY | Yes | — | API key (gw_live_* or gw_test_*) |
AGENTA_API_SECRET | Yes | — | Base64-encoded signer share (from agenta init or the dashboard) |
AGENTA_SERVER | No | https://api.agentaos.ai | AgentaOS server URL |
AGENTA_NETWORK | No | — | Default network for tools (e.g. base-sepolia, mainnet, arbitrum) |
The MCP server loads the signer share from
AGENTA_API_SECRET at startup. On shutdown (SIGINT/SIGTERM), it wipes the share from memory.Tool Reference
18 tools organized by category. All tool names use theagenta_ prefix. Every network parameter accepts a network name string (e.g. 'base-sepolia', 'mainnet', 'arbitrum'). Call agenta_list_networks first to discover available networks.
Discovery
agenta_wallet_overview
Get a complete overview of the wallet — address, balances, tracked token balances, and recent transactions.
agenta_list_networks
List all available networks configured on the server. Returns network name, CAIP-2 networkId, chain ID, testnet status, and native currency.
agenta_list_signers
List all signers accessible with the current API key. Shows name, ID, address, chain, network, and status.
agenta_resolve_address
Resolve an ENS name (e.g. vitalik.eth) to an Ethereum address.
Transfers
agenta_send_eth
Send ETH to any address or ENS name. Uses threshold signing — the full private key never exists. Policy-enforced by the server.
agenta_send_token
Send ERC-20 tokens by symbol (e.g. USDC, WETH) or contract address. Automatically handles decimal conversion.
agenta_get_balances
Get ETH balance and optionally ERC-20 token balances.
Contract Interaction
agenta_call_contract
Call a function on any smart contract using threshold signing. Provide the contract ABI, function name, and arguments.
agenta_read_contract
Read data from a smart contract (view/pure functions). No gas spent, no signing needed.
agenta_execute
Execute a raw Ethereum transaction with pre-encoded calldata. For advanced use cases where you already have encoded transaction data.
agenta_simulate
Simulate a transaction to estimate gas cost before sending. No signing, no broadcast. Use before agenta_send_eth or agenta_call_contract to verify success and see gas estimates.
Signing
agenta_sign_message
Sign an arbitrary message using threshold signing (EIP-191 personal signature). No gas spent.
agenta_sign_typed_data
Sign EIP-712 typed data. Used for x402 payments, Permit2 approvals, ERC-3009 transfers, and off-chain structured signatures. No gas spent.
x402 Payment Protocol
agenta_x402_check
Check if a URL requires x402 payment. Returns payment requirements (scheme, network, amount, asset) for each accepted payment option.
agenta_x402_discover
Discover x402-protected endpoints on a domain. Probes common paths and the .well-known/x402 endpoint to find paid resources.
agenta_x402_fetch
Fetch a 402-protected resource, automatically paying via the x402 exact scheme (ERC-3009/Permit2). Network and asset are auto-detected from the 402 response.
Management
agenta_get_status
Get server health status and signer information. Use to verify the server is running and the signer is configured.
agenta_get_audit_log
Get recent signing activity from the audit log. Shows past transactions, policy evaluations, decoded function calls, and gas costs.
How It Works
- Agent receives a user request (“Send 0.01 ETH to vitalik.eth”)
- Agent calls
agenta_send_ethwith{ to: "vitalik.eth", value: "0.01", network: "base-sepolia" } - MCP server resolves ENS, builds the transaction
- Threshold signing runs — signer share + server share co-sign via CGGMP24
- Server evaluates guardrails before co-signing
- Transaction broadcasts. Agent gets back the tx hash.
Example Conversations
Check balance and send ETH
Read a contract and call a function
Pay for an x402-protected API
Security Model
Your agent holds one share locally (loaded fromAGENTA_API_SECRET). The AgentaOS server holds another. Neither can sign alone. Both must cooperate on every transaction — but no single party ever sees the full key.
Read operations (agenta_get_balances, agenta_read_contract, agenta_get_status) do not involve key material.