# MERX

MERX — an MCP server for TRON energy and bandwidth trading, token transfers, and SunSwap V2 swaps.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 2649 installs
- Author: powersun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/powersun/merx
- Updated: 2026-03-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/merx

## What it does

Gives the agent 52 tools for TRON blockchain operations: checking energy and bandwidth prices from Merx providers, renting resources, transferring TRX and TRC-20 tokens, swapping on SunSwap V2 DEX, reading smart contracts, and querying the chain. Some tools require no authentication: `get_prices`, `get_best_price`, `analyze_prices`, `check_address_resources`, `estimate_transaction_cost` work without keys. Creating resource orders requires `MERX_API_KEY`, signing transactions requires `TRON_PRIVATE_KEY`.

\`ensure_resources` checks current resource balances on the target address and purchases only the missing amount from the cheapest provider. `transfer_trc20` and `execute_swap` estimate needed energy and rent it via Merx if the balance falls short. All transactions are signed and broadcast to TRON directly.

The server runs on `https://merx.run.tools` over HTTP transport. Getting started takes one CLI command, API keys are passed through environment variables.

## Requirements
- Remote server: `https://merx.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http merx https://merx.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add merx --url https://merx.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "merx": {
            "url": "https://merx.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "merx": {
            "type": "http",
            "url": "https://merx.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http merx https://merx.run.tools
```

## When to use it
- Check TRON energy prices across Merx providers and pick the cheapest one
- Rent energy and bandwidth for a transaction instead of burning TRX
- Transfer TRX or TRC-20 tokens with automatic resource provisioning
- Get a quote and execute a token swap on SunSwap V2
- Check balance, transaction history, and account state on TRON

## Example prompts
- Show current energy prices from Merx providers and find the cheapest one for 100,000 units for 1 day
- Check TRX balance and energy on address `TYour...Address` and buy 50,000 energy via `ensure_resources` if needed
- Transfer 100 USDT to address `TRecipient...Address` with `transfer_trc20`, rent energy automatically

## Similar
- [PowerSun](https://affpapa.org/en/nevibecode/mcp/powersun.md) — MCP server · 378 installs
- [swap-planner](https://affpapa.org/en/nevibecode/skills/swap-planner.md) — skill · 1200 installs
- [dex-execution](https://affpapa.org/en/nevibecode/skills/dex-execution.md) — skill · 479 installs
- [1inch](https://affpapa.org/en/nevibecode/skills/1inch.md) — skill · 357 installs
- [aicoin-onchain](https://affpapa.org/en/nevibecode/skills/aicoin-onchain.md) — skill · 307 installs
- [Hyperliquid Spot — 454 Tokens, Prices, Balances](https://affpapa.org/en/nevibecode/mcp/hyperliquid-spot-454-tokens-prices-balances.md) — MCP server · 3947 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
