agentfi-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENTFI_API_KEY | No | Required for live tool execution against AgentFi backend. Optional for introspection — initialize + tools/list work without it. |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_wallet_infoA | 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. |
| get_token_priceA | Returns the current USD price of a token. Use this before swaps to understand value. |
| simulate_swapA | 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. |
| execute_swapA | 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. |
| transfer_tokenB | 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. |
| deposit_aaveA | 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. |
| withdraw_aaveA | Withdraws a previously supplied asset from Aave V3. Pass "max" as the amount to withdraw your entire position. |
| supply_compoundA | 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. |
| withdraw_compoundA | Withdraws a previously supplied asset from Compound V3 (Comet USDC market). Pass "max" as the amount to withdraw your entire balance. |
| deposit_erc4626A | 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. |
| withdraw_erc4626B | Withdraws assets from any ERC-4626 compliant vault. Use "max" to attempt a full withdrawal (vault may still limit to available liquidity). |
| swap_curveA | 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. |
| get_defi_ratesA | Returns current supply and borrow APY rates for major assets on Aave V3. Use this to decide where to deploy capital for yield. |
| get_transaction_statusA | 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. |
| get_policyA | Returns the current operational limits and restrictions for this agent. Check this to understand what transactions are allowed before attempting them. |
| get_my_agent_profileA | 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_pnlA | 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. |
| search_agentsA | 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. |
| pay_agentA | Constructs and executes a direct payment to another agent. Use this to pay for services, data, or compute provided by another AI agent. |
| update_policyA | 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 |
| set_my_manifestA | 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. |
| get_agent_manifestA | 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. |
| get_agent_trust_reportA | Fetches the reputation and trust metrics of another agent. Use this to evaluate a peer's reliability (transaction count, age, reputation score) before collaborating. |
| sign_handshakeA | Signs a message with your agent wallet. Use this to prove your identity to other agents or to sign a service agreement/handshake. |
| verify_handshakeA | Verifies a signature provided by another agent. Use this to confirm that a peer truly controls the wallet address they claim to represent. |
| post_jobA | 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. |
| check_inboxA | Checks for new service requests (jobs) assigned to you by other agents. Returns a list of PENDING and ACCEPTED jobs. |
| update_job_statusB | Updates the status of a job (Accept, Complete, Fail). Use this to manage your workflow as a service provider. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/felippeyann/agentfi'
If you have feedback or need assistance with the MCP directory API, please join our Discord server