Skip to main content
Glama
scotia1973-bot

Crypto Trading Agent MCP Server

README.md
# Crypto Trading Agent MCP Server

**Trade DeFi using plain language prompts.** This MCP server connects Hermes Agent (and any MCP-compatible agent) to **MetaMask Agent Wallet** — the self-custodial AI wallet launched June 2025 by Consensys.

## Features

- 🔗 **Chain Management** — Query supported EVM chains
- 💰 **Balance Checks** — Check wallet balances across chains
- 💸 **Transfers** — Send tokens to any address
- 🔄 **Swaps** — Swap tokens across DEXs
- 📈 **Perpetuals** — Open/manage Hyperliquid positions
- ✍️ **Signing** — Sign messages and typed data
- 🤖 **AI Trading Analysis** — DeepSeek V4 Flash powered market intelligence

## Why This Matters

MetaMask named **Nous Research Hermes** as one of only 5 supported agent frameworks. With 30M+ MetaMask users and a $236B projected agent wallet market by 2034, this is a first-mover opportunity.

## Installation

```bash
# Install MetaMask Agent Wallet CLI
npm install -g @metamask/agentic-cli

# Authenticate
mm login

# Install this MCP server
pip install crypto-trading-mcp
```

## Usage

Add to your Hermes config:
```json
{
  "mcpServers": {
    "crypto-trading": {
      "command": "python3",
      "args": ["-m", "crypto_trading_mcp.server"]
    }
  }
}
```

## Tools Available

### mm_chains_list
List all supported EVM chains

### mm_wallet_balance
Check wallet balance (optionally per-chain)

### mm_transfer
Transfer tokens to any address
- `to` — Recipient address
- `amount` — Amount to send
- `token` — Token symbol/address (optional)
- `chain_id` — Chain ID (optional)

### mm_swap
Swap tokens via DEX
- `from_token` — Source token
- `to_token` — Destination token
- `amount` — Amount to swap

### mm_trade_perpetuals
Trade perpetual futures on Hyperliquid
- `action` — open/close/position
- `asset` — e.g., BTC, ETH
- `side` — long/short
- `size` — Position size

### gadgethumans_deepseek_chat
DeepSeek V4 Flash for trading analysis

## Integration with GadgetHumans API Hub

This server is a premium tool available at api.gadgethumans.com.