agentfi-mcp-server

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.

Category
Visit Server

README

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.

Quick Links


🚀 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

  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. Run the Claude Desktop MCP Demo — two MCP identities, discovery, A2A job, trust, and P&L.
  4. Review the Architecture Overview.
  5. 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured