Sponsored by Deepsite.site

Agentfi — Defi Tools For Ai Agents

Created By
AgentFia month ago
Give your AI agent a wallet. AgentFi provides 10 MCP tools for executing DeFi transactions on EVM chains (Ethereum, Base, Arbitrum, Polygon). Swap tokens, transfer assets, supply to Aave, check balances and prices — all policy-constrained and simulated before broadcast. Each agent gets a dedicated Safe smart wallet with MPC key management via Turnkey.
Overview

AgentFi

CI npm version npm downloads License: Apache 2.0

The economic layer for non-human intelligence.

AgentFi provides crypto transaction infrastructure for AI agents on Ethereum and EVM-compatible networks. It allows agents to execute DeFi transactions (swaps, yield farming, transfers) without handling private keys or managing gas, all within a secure on-chain policy framework.

Start here:

  • VISION.mdwhy this project exists, where it's going, and the principles behind every technical decision.
  • STATE.mdwhat the project is today: purpose, full stack, capabilities, phase progress.
  • HANDOFF.md — live pending tasks, credentials inventory, new-machine setup.

📚 Documentation

All project documentation is organized in our Documentation Hub.


🚀 Key Features

  • Turnkey MPC Wallets — keys split across shards and never exposed.
  • Safe Smart Wallets — per-agent on-chain policy enforcement (limits, whitelists, kill switch).
  • Model Context Protocol — 26 tools published to npm at @agent_fi/mcp-server: 15 DeFi + 11 A2A.
  • DeFi coverage — Uniswap V3 + Curve StableSwap (swaps); Aave V3, Compound V3, and any ERC-4626 vault (yield).
  • Agent-to-Agent economy — job queue, atomic payments, DB-level escrow (v2), reputation scoring from real metrics with time-decay.
  • Agent P&L dashboard — per-agent breakeven detection, including real gas costs (v2).
  • Persistent identity — optional ENS subdomains (alice-abc123.agentfi.eth) wired into agent registration.
  • OpenAPI 3.0.3 spec at docs/api/openapi.yaml — machine-readable contract for SDK generation.
  • Cross-chain — Ethereum, Base, Arbitrum, Polygon (Base Mainnet has maintainer-deployed contracts).
  • Protocol fee engine — basis-point fee collected on-chain atomically via AgentExecutor.

🛠️ Getting Started

For Operators

  1. Follow the Operator Setup Checklist to fill third-party accounts and local .env.
  2. Deploy the Smart Contracts to your target chain (or reuse the maintainer-deployed Base addresses in STATE.md).
  3. Deploy the backend via Self-Hosted Production Guide — provider-agnostic, with Railway as the reference and Fly.io / Render / Docker documented as alternatives.

For Developers

  1. Start with the Dev Quickstartdocker compose up → stack running in 3 minutes, zero external accounts.
  2. Run the A2A Collaboration Example — two-agent end-to-end flow in one file.
  3. Review the Architecture Overview.
  4. Use the MCP Server to integrate your agents.

🛡️ Security

AgentFi is built for security-first autonomy.

  • Simulations: Every transaction is simulated via Tenderly before submission.
  • Guardrails: On-chain policies prevent agents from exceeding predefined limits.
  • Kill Switch: Operators can pause any agent's transaction ability instantly.

Found a vulnerability? See SECURITY.md for our disclosure policy.


🤝 Community


📄 License

AgentFi is open-source and licensed under the Apache 2.0 License.

Server Config

{
  "mcpServers": {
    "agentfi": {
      "command": "npx",
      "args": [
        "-y",
        "@agentfi/mcp-server"
      ],
      "env": {
        "AGENTFI_API_URL": "https://api.agentfi.cc",
        "AGENTFI_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Serper MCP ServerA Serper MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
DeepChatYour AI Partner on Desktop
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Playwright McpPlaywright MCP server
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
RedisA Model Context Protocol server that provides access to Redis databases. This server enables LLMs to interact with Redis key-value stores through a set of standardized tools.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server