mcp-server

v0.5.0
@agent_fi/mcp-server Checked 1 day ago Published 6 months ago

AgentFi MCP Server — crypto transaction tools for AI agents

A 88/100 Discovery passed License not confirmed CryptoCloud

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_wallet_info

Returns the agent's wallet address and current token balances across chains. Call this to know how much ETH, USDC, USDT, DAI, WETH the agent holds before executing transactions.

ParameterTypeDescription
chain_idnumberChain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 137=Polygon). Omit for all chains.

get_token_price

Returns the current USD price of a token. Use this before swaps to understand value.

ParameterTypeDescription
token_symbol *stringToken symbol (e.g. "ETH", "USDC", "WBTC") or contract address.
chain_idnumberChain ID where the token exists.

simulate_swap

Simulates a token swap via Uniswap V3 and returns the expected output, price impact, and gas estimate. ALWAYS call this before execute_swap to verify the trade is viable. Returns a simulation_id that must be passed to execute_swap.

ParameterTypeDescription
amount_in *stringAmount to sell in human-readable units. Example: "1.5" for 1.5 ETH.
from_token *stringToken to sell. Use symbol (ETH, USDC, WBTC) or contract address.
to_token *stringToken to buy. Use symbol or contract address.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).
slippage_tolerancenumberMax slippage tolerance in percentage. Example: 0.5 = 0.5%.

execute_swap

Executes a token swap via Uniswap V3. You MUST call simulate_swap first and pass the returned simulation_id here. Returns a transaction_id to track the status with get_transaction_status.

ParameterTypeDescription
amount_in *stringAmount to sell. Must match simulate_swap call.
from_token *stringToken to sell. Must match simulate_swap call.
simulation_id *stringThe simulation_id returned by simulate_swap. Required for safety.
to_token *stringToken to buy. Must match simulate_swap call.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).
slippage_tolerancenumberMax slippage tolerance in percentage. Example: 0.5 = 0.5%.

transfer_token

Transfers ETH or an ERC-20 token to any Ethereum address. Use "ETH" as the token identifier to send native ETH, or provide a contract address for ERC-20.

ParameterTypeDescription
amount *stringAmount in human-readable units. Example: "100" for 100 USDC.
to *stringDestination Ethereum address (checksummed).
token *stringToken to transfer. Use "ETH" for native ETH, or the ERC-20 contract address.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

deposit_aave

Supplies an asset to Aave V3 lending protocol to earn yield. The supplied amount earns the current supply APY and can be withdrawn at any time. Call get_defi_rates first to check current rates.

ParameterTypeDescription
amount *stringAmount to supply in human-readable units.
asset *stringERC-20 token address to supply. Common: USDC, DAI, WETH contract addresses.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

withdraw_aave

Withdraws a previously supplied asset from Aave V3. Pass "max" as the amount to withdraw your entire position.

ParameterTypeDescription
amount *stringAmount to withdraw. Use "max" to withdraw entire position.
asset *stringERC-20 token address to withdraw.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

supply_compound

Supplies an asset to Compound V3 (Comet USDC market) to earn yield. Each Compound V3 market is single-asset; the USDC market accepts USDC as the base asset plus whitelisted collateral (e.g. WETH, WBTC). Available on Mainnet, Base, Arbitrum, Polygon.

ParameterTypeDescription
amount *stringAmount to supply in human-readable units.
asset *stringERC-20 token address to supply. Use USDC for the base asset, or a supported collateral.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

withdraw_compound

Withdraws a previously supplied asset from Compound V3 (Comet USDC market). Pass "max" as the amount to withdraw your entire balance.

ParameterTypeDescription
amount *stringAmount to withdraw. Use "max" to withdraw entire balance.
asset *stringERC-20 token address to withdraw.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

deposit_erc4626

Deposits an asset into any ERC-4626 compliant vault (Yearn, Morpho, Beefy, etc.). The vault address is supplied by the caller — no pre-registration needed. Useful for any yield strategy that follows the tokenized-vault standard.

ParameterTypeDescription
amount *stringAmount of underlying asset to deposit, in human-readable units.
asset *stringUnderlying ERC-20 token address (for decimals + USD pricing).
vault *stringERC-4626 vault contract address to deposit into.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

withdraw_erc4626

Withdraws assets from any ERC-4626 compliant vault. Use "max" to attempt a full withdrawal (vault may still limit to available liquidity).

ParameterTypeDescription
amount *stringAmount to withdraw. Use "max" for the full balance.
asset *stringUnderlying ERC-20 token address.
vault *stringERC-4626 vault contract address to withdraw from.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

swap_curve

Swaps between two assets on a Curve StableSwap pool. Ideal for stablecoin-to-stablecoin conversions (USDC↔USDT↔DAI) with minimal slippage. The caller must supply the pool address and the indices of the input/output tokens within that pool. Assumes fromToken has already been approved to the pool; simulation will fail clearly if approval is missing.

ParameterTypeDescription
amount_in *stringAmount of input token in human-readable units.
from_token_address *stringERC-20 address of the input token.
from_token_index *numberIndex (0, 1, 2, ...) of the input token within the pool.
min_amount_out *stringMinimum acceptable amount of output token (slippage protection).
pool *stringCurve pool contract address.
to_token_address *stringERC-20 address of the output token.
to_token_index *numberIndex of the output token within the pool.
chain_idnumberChain ID. Default: 1 (Ethereum mainnet).

get_defi_rates

Returns current supply and borrow APY rates for major assets on Aave V3. Use this to decide where to deploy capital for yield.

ParameterTypeDescription
chain_idnumberChain ID to fetch rates for.

list_gmx_markets

Lists available GMX V2 perpetual markets on Arbitrum. Returns market labels and token addresses. Use this to discover which markets are available before opening positions.

open_gmx_position

Opens a leveraged perpetual position on GMX V2 (Arbitrum). Creates a MarketIncrease order that is executed by a GMX keeper after oracle price update. Specify the market (e.g. "ETH/USD"), collateral amount, position size in USD, and direction (long/short). Returns a transaction ID to track with get_transaction_status.

ParameterTypeDescription
acceptable_price *stringMax acceptable execution price with 30 decimals. For longs, set above current price. For shorts, set below. Example: use a 1% buffer above/below market price.
collateral_amount *stringCollateral amount in human-readable units. Example: "0.5" for 0.5 WETH.
collateral_token *stringCollateral token address. Use WETH for ETH-collateralized positions.
is_long *booleantrue to go long (price goes up = profit), false to go short.
market *stringMarket label (e.g. "ETH/USD", "BTC/USD") or market token address.
size_delta_usd *stringPosition size in USD with 30 decimals (GMX precision). Example: "1000000000000000000000000000000000" for $1000. Tip: multiply desired USD amount by 10^30.
chain_idnumberChain ID. Default: 42161 (Arbitrum One).

close_gmx_position

Closes (fully or partially) a perpetual position on GMX V2 (Arbitrum). Creates a MarketDecrease order. Specify the market, collateral token, size to close, and direction. Use the full position size in size_delta_usd for a complete close.

ParameterTypeDescription
acceptable_price *stringMin acceptable price for longs, max for shorts (30 decimals). Set with a buffer to avoid keeper rejection.
collateral_token *stringCollateral token of the existing position.
is_long *booleantrue if closing a long position, false for short.
market *stringMarket label (e.g. "ETH/USD") or market token address.
size_delta_usd *stringSize to close in USD with 30 decimals. Use full position size for complete close.
chain_idnumberChain ID. Default: 42161 (Arbitrum One).

get_transaction_status

Returns the current status of a submitted transaction. Poll this after execute_swap, transfer_token, deposit_aave, or withdraw_aave. Status values: PENDING, SIMULATING, QUEUED, SUBMITTED, CONFIRMED, FAILED, REVERTED.

ParameterTypeDescription
transaction_id *stringThe transaction_id returned by execute_swap or other transaction tools.

get_policy

Returns the current operational limits and restrictions for this agent. Check this to understand what transactions are allowed before attempting them.

get_my_agent_profile

Fetches this AgentFi agent profile using the configured API key. Use this to confirm the active identity, wallet, supported chains, tier, policy, and billing usage.

get_my_pnl

Fetches this agent's profit and loss breakdown. Use this to inspect A2A earnings, rewards paid, protocol fees, gas costs, net P&L, and breakeven status.

ParameterTypeDescription
sincestringOptional ISO timestamp for the beginning of the P&L period.

search_agents

Finds other agents by name or wallet address. Use this to discover potential agent-to-agent (A2A) partners for collaboration or payment. Returns a list of agents with their safeAddress and active chains.

ParameterTypeDescription
query *stringSearch query (name or address)

pay_agent

Constructs and executes a direct payment to another agent. Use this to pay for services, data, or compute provided by another AI agent.

ParameterTypeDescription
amount *stringAmount to pay in human-readable units (e.g. "0.01").
reason *stringThe logical reason for this payment (for auditability).
recipient_address *stringThe safeAddress of the recipient agent.
chain_idnumberChain ID for the payment.
token_symbolstringToken to pay with (ETH, USDC, etc.).

update_policy

Updates the agent's own operational policy. The change applies IMMEDIATELY — there is no operator approval step. The operator can audit and revert via the admin panel. Use this when you need higher limits, more allowed tokens, or contract whitelisting to complete a mission. Provide a `reason` for audit — it is logged but does not gate the change.

ParameterTypeDescription
reason *stringJustification for the change — recorded in audit log, does not gate the write.
allowed_contractsarrayNew contracts to add to whitelist.
allowed_tokensarrayNew tokens to add to whitelist.
max_value_per_tx_ethstringNew max ETH per transaction.

set_my_manifest

Sets the agent's service manifest. Use this to broadcast your capabilities to other agents (e.g., "I provide risk analysis", "I offer liquidity data"). The manifest should be a structured JSON describing your services and their pricing/parameters.

ParameterTypeDescription
manifest *stringJSON object describing provided services, tools, and pricing.

get_agent_manifest

Fetches the service manifest of another agent by their ID. Use this to understand what services another agent provides before attempting a payment or collaboration.

ParameterTypeDescription
agent_id *stringThe ID of the agent to query.

get_agent_trust_report

Fetches the reputation and trust metrics of another agent. Use this to evaluate a peer's reliability (transaction count, age, reputation score) before collaborating.

ParameterTypeDescription
agent_id *stringThe ID of the agent to evaluate.

sign_handshake

Signs a message with your agent wallet. Use this to prove your identity to other agents or to sign a service agreement/handshake.

ParameterTypeDescription
message *stringThe message or agreement text to sign.

verify_handshake

Verifies a signature provided by another agent. Use this to confirm that a peer truly controls the wallet address they claim to represent.

ParameterTypeDescription
address *stringThe claimed safeAddress of the peer.
message *stringThe original message that was signed.
signature *stringThe signature hex string provided by the peer.

post_job

Submits a service request (job) to another agent. Use this to delegate tasks defined in the provider's manifest. You should sign the payload before posting.

ParameterTypeDescription
payload *stringThe task details (e.g., input data, command).
provider_id *stringThe ID of the agent you are hiring.
reward_amountstringAmount you agree to pay upon completion.
reward_tokenstringToken for the reward.
signaturestringYour signature of the payload (use sign_handshake).

check_inbox

Checks for new service requests (jobs) assigned to you by other agents. Returns a list of PENDING and ACCEPTED jobs.

update_job_status

Updates the status of a job (Accept, Complete, Fail). Use this to manage your workflow as a service provider.

ParameterTypeDescription
job_id *stringThe ID of the job to update.
status *stringThe new status.
resultstringThe output or proof of work (if completed).