mcp

v1.3.3
@tronenergy/mcp Checked 1 day ago Published 29 days ago

MCP server for TRON Energy Rentals: prices, energy needs, orders, and (opt-in) opening an account or buying energy.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

products

Current prices for every rental duration, the smallest and largest order, and the energy the pool can serve right now. No key needed. Call this before quoting a price. Never guess one. Prices are quoted PER ENERGY UNIT, so a total is price_trx_per_unit x energy_units; the returned `max_units` is the real per-order ceiling (the raw API reports it as null and hides the true value in another field), and `max_units_capped_by_stock_now` is the most you can buy at this moment.

estimate

Energy needed for a TRC-20 (USDT) transfer AND its cost here, in one call. Pass `to_address`; `contract_address` defaults to USDT on the served network. No key needed. USE THIS when the buyer asks what a transfer will COST. Use `energyNeeded` when they only ask HOW MUCH ENERGY is required; the two overlap, and this one includes the price.

ParameterTypeDescription
to_address *stringTRON address that will RECEIVE the transfer (T...34 chars)
amount_sunstringtransfer amount in SUN; defaults to 1
contract_addressstringTRC-20 contract; defaults to USDT

energyNeeded

How much energy a specific address needs for a USDT transfer, based on whether it already holds USDT (a wallet that has never held it costs roughly double). No key needed. USE THIS when the question is about ENERGY ONLY. If the buyer asks what it COSTS, use `estimate`, which returns both the energy and the price.

ParameterTypeDescription
to_address *stringthe receiving TRON address

order

The LIVE state of one order by its public reference (ord_...): status, whether the energy is delegated, and the transaction to look up. No key needed: order refs are unguessable and this reveals nothing about who owns it. CHOOSE BETWEEN THE THREE LOOKUP TOOLS: this one needs a reference starting `ord_`. If the buyer has an ADDRESS, use ordersByPayer. If they have a numeric rental id and an API key, use rental.

ParameterTypeDescription
ref *stringthe order reference, e.g. ord_abc123

ordersByPayer

The orders a given TRON address has placed, newest first. No key needed. USE THIS WHEN THE BUYER GIVES AN ADDRESS rather than a reference, as it is the only lookup that works without one, so it answers "did my rental go through?" for a walk-up buyer. It does NOT show prepaid-account rentals; those live under `account`.

ParameterTypeDescription
payer *stringthe payer TRON address (T...34 chars)
limitnumberhow many to return; the API caps it

account

YOUR account: prepaid balance in TRX and SUN, deposit address, status, and recent rentals. Needs TRONENERGY_API_KEY. Balance is credit spendable only on energy, and it cannot be withdrawn.

rental

The live state of ONE of your rentals by id (queued / delegating / active), with the delegation transaction. Needs TRONENERGY_API_KEY. A rental belonging to another account answers exactly as if it did not exist. USE THIS when the buyer has a numeric rental id and a configured API key. THIS IS FOR PREPAID-ACCOUNT RENTALS. It needs a numeric id, not an order reference; for an `ord_...` reference use `order`, and for a payer address use ordersByPayer.

ParameterTypeDescription
id *stringthe rental id returned when you bought