agentfi-mcp-server
DeFi execution and agent-to-agent economy tools for AI agents — swaps, yield, transfers, policy enforcement, trust scoring, A2A jobs, and P\&L across Ethereum, Base, Arbitrum, and Polygon.
README
AgentFi
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.md — why this project exists, where it's going, and the principles behind every technical decision.
- STATE.md — what 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.
Quick Links
- Vision (required reading): Why this project exists and where it's going.
- Dev Quickstart: Zero-credential local stack —
docker compose upand you're running in 3 minutes. - Operator Setup: Get a real instance of AgentFi running.
- Graphify Code Graph: Queryable codebase map for agent-assisted development.
- Agent Quickstart: Connect your agent in < 5 minutes.
- System Architecture: Understand the 4-layer stack.
🚀 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 — 28 tools in
@agent_fi/mcp-server: DeFi execution, A2A collaboration, trust, and P&L. - 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
- Follow the Operator Setup Checklist to fill third-party accounts and local
.env. - Deploy the Smart Contracts to your target chain (or reuse the maintainer-deployed Base addresses in STATE.md).
- 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
- Start with the Dev Quickstart —
docker compose up→ stack running in 3 minutes, zero external accounts. - Run the A2A Collaboration Example — two-agent end-to-end flow in one file.
- Run the Claude Desktop MCP Demo — two MCP identities, discovery, A2A job, trust, and P&L.
- Review the Architecture Overview.
- 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
- Code of Conduct: Our community standards.
- Contributing: How to contribute to AgentFi.
- Changelog: Release history and notable changes.
📄 License
AgentFi is open-source and licensed under the Apache 2.0 License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。