D

DeFi Trading Agent

Transforms conversational interfaces into autonomous DeFi trading agents with real-time market analy...

286 views
0 installs
Updated Nov 22, 2025
Not audited
Transforms conversational interfaces into autonomous DeFi trading agents with real-time market analysis, portfolio management, and seamless trade execution across 17+ blockchains including Ethereum, Base, and Arbitrum through 0x API swap aggregation and gasless trading support.
  1. Create a New Wallet (Recommended)

    • Open your terminal.
    • Run:
      npx defi-trading-mcp --create-wallet
      
    • This will generate a new Ethereum wallet address and a private key. Record both securely; you will need them in the next steps.
  2. Obtain a CoinGecko API Key

    • Visit the CoinGecko API documentation or the CoinGecko API Key guide.
    • Create a CoinGecko account if you do not have one.
    • Log in, go to your API dashboard, and generate a new API key.
    • Copy the API key; you will use it in the next step.
  3. (Optional) Obtain an Alchemy API Key for Premium RPC

    • Go to Alchemy’s website.
    • Sign up or log in.
    • Create a new app/project.
    • Select your preferred blockchain(s) and environment (mainnet/testnet).
    • Copy the provided API key for your project.
  4. Add Environment Variables in FastMCP Connection Interface

    • In the FastMCP connection interface, click the “Install Now” button to begin configuration.
    • When prompted, fill in the following ENV values with your actual credentials:
      • USER_PRIVATE_KEY: The private key from Step 1.
      • USER_ADDRESS: The wallet address from Step 1.
      • COINGECKO_API_KEY: The CoinGecko API key from Step 2.
      • ALCHEMY_API_KEY: The Alchemy API key from Step 3 (optional, but recommended for better performance).
  5. Save and Complete Installation

    • Make sure each value is entered correctly and securely.
    • Complete the setup to enable the DeFi Trading Agent MCP server.

You’re now ready to use the DeFi Trading Agent with your FastMCP setup!

Quick Start

View on GitHub

More for Finance

View All →

More for Monitoring

View All →

Report Issue

Thank you! Your issue report has been submitted successfully.