MERX — Claude Code MCP server: TRON resource exchange, how to install
MERX — an MCP server for TRON energy and bandwidth trading, token transfers, and SunSwap V2 swaps.
no license 2,649 installs updated 2026-03-31
claude mcp add --transport http merx https://merx.run.toolsWhat MERX 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.
What it helps with
- 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 for the agent
- 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...Addressand buy 50,000 energy viaensure_resourcesif needed - Transfer 100 USDT to address
TRecipient...Addresswithtransfer_trc20, rent energy automatically
How to install MERX
Platform CLI: remote server
claude mcp add --transport http merx https://merx.run.toolsPlatform CLI: remote server
codex mcp add merx --url https://merx.run.toolsConfig file
{
"mcpServers": {
"merx": {
"url": "https://merx.run.tools"
}
}
}Config file
{
"servers": {
"merx": {
"type": "http",
"url": "https://merx.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http merx https://merx.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about MERX
How to install MERX in Claude Code?
Run claude mcp add --transport http merx https://merx.run.tools in the terminal.
What does MERX do?
Provides 52 tools for TRON blockchain work: renting energy and bandwidth on the Merx exchange, transferring TRX and TRC-20 tokens, swapping on SunSwap V2, reading smart contracts, and querying the chain. Some tools work without authentication, orders need a Merx API key, transactions need a TRON private key.
What keys does MERX need?
Price checking, balance reading, and blockchain query tools work without keys. Pass MERX_API_KEY via environment variables to create resource orders. Signing and broadcasting transactions requires TRON_PRIVATE_KEY.