get_prices
Get Current Prices
Get current TRON Energy and Bandwidth minimum prices for all duration tiers. Returns price per unit in SUN for each available duration.
resourceType
io.github.Hovsteder由 GitHub 账号 Hovsteder 发布v1.3.0更新于 Oct 24, 2026
TRON Energy marketplace + DEX swap aggregator for AI agents. 27 MCP tools.
发布方自己的服务:MERX - TRON Resource Exchange
PowerSun TRON 市场的远程 MCP 服务器,让助手查询、购买和出售 TRON 能量与带宽、兑换 TRC-20 代币并管理出售池
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.Hovsteder%2Fpowersun-tron-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"powersun-tron": {
"type": "http",
"url": "https://powersun.vip/mcp"
}
}
}The first TRON Energy marketplace and DEX swap aggregator for AI agents. Buy energy, sell resources, swap tokens on SunSwap DEX, and earn passive income — fully autonomous via MCP, REST API, or HTTP 402. Only 10% commission — the lowest on the market.
[MCP] [Tools] [OpenAPI] [Commission] [License: MIT]
[PowerSun MCP server]MCP Endpoint: https://powersun.vip/mcp
Transport: Streamable HTTP (remote — no installation required)
Auth: Optional X-API-Key header (public tools work without authentication)
PowerSun.vip is a full-featured TRON Energy & Bandwidth marketplace and DEX swap aggregator where users and AI agents can buy and sell network resources required for TRON transactions, and swap any TRC-20 tokens via SunSwap V2 Smart Router.
Every TRON transaction (USDT transfers, smart contract calls) requires Energy. Without it, TRX tokens are burned as fees. For example, a single USDT transfer burns 27 TRX ($7) without Energy. With PowerSun.vip, the same transfer costs as little as ~$1.
That's it — no API keys, no npm install, no Docker. The server is hosted and always available.
These tools let agents register, authenticate, and grant permissions — entirely within a single MCP session. No REST API needed.
Returning users: If the wallet is already registered,
verify_registrationreturns the existing API key + account status (pools, permissions, balance).
Swap flow:
get_swap_quote→ agent signs unsigned TX →execute_swap→ tokens swapped with energy delegation included.
AI agents can go from "I have a TRON wallet with a private key" to "I'm earning passive income" — in a single MCP session:
Security: Agent permissions are limited to delegate, undelegate, and vote only. No access to FreezeBalanceV2 or WithdrawBalance. Staking and reward claiming are managed by the platform automatically.
PowerSun integrates with SunSwap V2 Smart Router to provide non-custodial token swaps on the TRON network. Energy is automatically delegated for the swap transaction, so you save on gas compared to burning TRX.
TRX, USDT, USDC, USDD, SUN, BTT, WIN, JST — or any TRC-20 contract address.
PowerSun.vip supports three payment flows — choose what's most convenient:
Register a TRON wallet, deposit TRX, buy from balance. Best for repeat usage.
No registration needed. Works with all endpoints: buy-energy, broadcast, and swap. Request → receive 402 response with platform deposit address and unique TRX amount → send exact amount to the platform wallet on TRON → poll for completion. Payment is matched by unique amount. Fully autonomous.
No registration needed. Works with all endpoints: buy-energy, broadcast, and swap. Request → receive 402 with x402 payment requirements → sign EIP-3009 transferWithAuthorization → resend with X-PAYMENT header → instant settlement. Cross-chain payments powered by Coinbase x402.
Full REST API available alongside MCP:
Bandwidth prices follow a 10x ratio (e.g. 800 SUN for 5 min, 500 SUN for 30 days).
Available durations: 5min, 10min, 15min, 30min, 1h, 6h, 1d, 7d, 30d
Swap energy cost: When swapping tokens, PowerSun automatically delegates 5-minute Energy for the swap transaction. The energy cost is included in the swap quote — no separate purchase needed.
tron tron-energy tron-bandwidth mcp mcp-server ai-agent blockchain trx usdt energy-rental bandwidth http-402 x402 rest-api crypto defi passive-income staking sunswap dex-swap token-swap
MIT License. See LICENSE for details.
The PowerSun.vip platform is a hosted service available at powersun.vip.
来源:README.md,提交 0b12b00
Get Current Prices
Get current TRON Energy and Bandwidth minimum prices for all duration tiers. Returns price per unit in SUN for each available duration.
resourceTypeEstimate Cost
Calculate the cost of purchasing TRON Energy or Bandwidth. Provide transaction count and type to get the energy needed and cost in TRX.
txTypetxCount必填resourceTypetargetAddressresourceAmountdurationMinutesGet Available Resources
Get total available Energy and Bandwidth across all active pools. Shows how much resource can be purchased right now.
resourceTypedurationMinutesMarket Overview
Comprehensive market overview: prices, availability, allowed durations, order constraints, and transaction types. Useful for agents to understand what they can purchase.
无需输入参数。
Get Balance
Get your current TRX balance and deposit information. Requires API key authentication.
无需输入参数。
Buy Energy
Purchase TRON Energy for a target address. Creates a MARKET order that will be filled by available pools. Deducts cost from your balance.
txTypetxCount必填resourceTypetargetAddress必填durationMinutesBroadcast Transaction
Broadcast a pre-signed TRON transaction with auto energy delegation. Send your signed transaction data and PowerSun will delegate energy before broadcasting. Works with API key (balance deduction) or x402 USDC payment. Without authentication, returns cost estimate.
txData必填Get Orders
Get your order history with optional status filter. Returns recent orders sorted by creation time.
limitstatusGet Order Status
Get detailed status of a specific order including delegation progress.
orderId必填Get Deposit Info
Get the deposit address to top up your account balance with TRX.
无需输入参数。
Get Swap Quote
Get a price quote and unsigned transaction for swapping tokens on SunSwap DEX. Returns an unsigned TX for client-side signing. After signing, submit via execute_swap. Requires API key.
toToken必填amountIn必填fromToken必填slippageBpsExecute Swap
Execute a pre-signed swap transaction with automatic energy delegation. Get the unsigned TX from get_swap_quote, sign it, and submit here. Energy is delegated before broadcast. Works with API key (balance deduction) or x402 USDC payment.
txData必填Pool Statistics
Get comprehensive statistics for your energy/bandwidth pools: delegations, revenue, utilization, APY. Requires API key.
无需输入参数。
Get Earnings
Get earnings breakdown by pool: total earned, pending payout, paid out. Optionally filter by date range.
endDatestartDateAuto-Selling Config
Get current auto-selling configuration for your pools. Shows which resources are being sold, duration constraints, and reserves.
无需输入参数。
Configure Auto-Selling
Update auto-selling configuration for a pool. Toggle energy/bandwidth selling, set reserves, duration constraints. Pass the configId from get_auto_selling_config.
activeconfigId必填sellEnergymaxDurationminDurationallowRenewalssellBandwidthreservedEnergyreservedBandwidthPool Delegations
Get active delegations from your pools. Shows who received energy/bandwidth and when delegations expire.
poolAddressWithdraw Earnings
Withdraw TRX from your account balance to your wallet. Minimum withdrawal: 100 TRX. Withdrawal is processed on-chain and may take a few minutes.
amount必填Register Selling Pool
Register a TRON address as an energy/bandwidth selling pool on PowerSun. This creates a pool and auto-selling configuration. After registering, you must grant active permissions to the platform address (DelegateResource, UnDelegateResource, VoteWitness) so the platform can delegate resources to buyers and vote on your behalf. Use check_pool_permissions to verify permissions after granting them. Requires API key.
autoVotesellEnergysellBandwidthpaymentAddress必填On-Chain Pool Status
Get live blockchain state for your pool: TRX balance, frozen resources (Energy/Bandwidth), voting status, claimable rewards, and delegated resources. Data is fetched directly from TRON blockchain. Requires API key.
poolAddressCheck Pool Permissions
Verify that the platform has the required active permissions on your pool address. Required: DelegateResource (to sell energy), UnDelegateResource (to reclaim). Optional: VoteWitness (to vote for SRs and earn rewards). Run this after granting permissions to confirm the platform can operate your pool. Requires API key.
poolAddressVote for SR
Vote for the best Super Representative (SR) with the highest APY to earn voting rewards. The platform automatically selects the SR with the best return. Requires VoteWitness permission granted to the platform. Voting rewards accumulate and can be claimed automatically if auto-claim is enabled. Requires API key.
poolAddressAuto-Action History
View execution history of automatic actions (stake, vote, claim) for your pool. Shows status (success/failed/skipped), amounts, transaction hashes, and timestamps. Requires API key.
limitactionTypepoolAddressRegister Agent
Start agent registration by providing your TRON address. Returns a challenge string that you must sign with your TRON private key using tronWeb.trx.signMessageV2(). After signing, call verify_registration with the signature to receive your API key. No authentication required.
address必填Verify Registration
Complete agent registration by verifying your signed challenge. Returns an API key and upgrades the current session to authenticated. After verification, all authenticated tools (buy_energy, get_balance, register_pool, etc.) will work in this session without needing to reconnect. No authentication required.
address必填signature必填challengeId必填Build Permission Transaction
Build an AccountPermissionUpdate transaction that grants the PowerSun platform permission to delegate/undelegate resources and optionally vote on your behalf. Returns an unsigned transaction that you must sign with your private key and then broadcast using broadcast_signed_permission_tx. All existing account permissions are preserved. Requires authentication.
includeVotepoolAddress必填Broadcast Signed Permission Transaction
Broadcast a signed AccountPermissionUpdate transaction to the TRON blockchain. After broadcasting, verifies that the platform permissions were correctly applied. Use this after signing the transaction from build_permission_transaction. Requires authentication.
poolAddress必填signedTransaction必填已满足适用检查项的 100%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
{ "mcpServers": { "powersun": { "url": "https://powersun.vip/mcp" } }}{ "mcpServers": { "powersun": { "url": "https://powersun.vip/mcp", "headers": { "X-API-Key": "ps_your_api_key_here" } } }}MCP: register { address: "TMyWallet..." }→ challengeId + challenge text
Agent signs: tronWeb.trx.signMessageV2(challenge, privateKey)
MCP: verify_registration { challengeId, address, signature }→ API key + balance + session upgraded→ All authenticated tools now work in this sessionMCP: build_permission_transaction { poolAddress: "TMyWallet..." }→ unsigned AccountPermissionUpdate transaction→ Grants: DelegateResource(57), UnDelegateResource(58), VoteWitness(4)
Agent signs: tronWeb.trx.sign(unsignedTx, privateKey)
MCP: broadcast_signed_permission_tx { signedTransaction, poolAddress }→ txHash + permissions verified on-chainMCP: register_pool { paymentAddress: "TMyWallet..." }→ Pool created, auto-selling enabledMCP: trigger_vote → Vote for highest-APY Super RepresentativeMCP: get_onchain_status → Balance, frozen TRX, energy, votes, rewardsMCP: get_earnings → Selling earnings breakdownMCP: get_auto_action_history → Auto-action execution logsMCP: get_swap_quote { fromToken: "TRX", toToken: "USDT", amountIn: "10000000", // 10 TRX in SUN slippageBps: 50, // 0.5% senderAddress: "TMyWallet..."}→ quote (expected output, minimum output, price impact)→ energy (cost, savings vs burn)→ unsignedTx (raw transaction to sign)
Agent signs: tronWeb.trx.sign(unsignedTx, privateKey)
MCP: execute_swap { signedTransaction: "..." }→ txHash + swap resultcurl -X POST https://powersun.vip/api/v2/agent/swap \ -H "X-API-Key: ps_your_key" \ -H "Content-Type: application/json" \ -d '{ "fromToken": "TRX", "toToken": "USDT", "amountIn": "10000000", "slippageBps": 50, "senderAddress": "TYourAddress..." }'┌─────────────────────────────────────────────┐│ AI Agent / LLM ││ (Claude, GPT, custom agent) │└──────────┬──────────────┬───────────────────┘ │ MCP │ REST API ▼ ▼┌──────────────────────────────────────────────┐│ PowerSun.vip Server ││ ││ ┌─────────┐ ┌──────────┐ ┌──────────────┐ ││ │27 MCP │ │ REST API │ │ HTTP 402 │ ││ │Tools │ │ Endpoints│ │ + x402 USDC │ ││ └────┬────┘ └────┬─────┘ └──────┬───────┘ ││ └───────────┴──────────────┘ ││ │ ││ ┌────────────┴────────────┐ ││ │ Order Engine + │ ││ │ Pool Management + │ ││ │ SunSwap Router + │ ││ │ Auto-Actions │ ││ └────────────┬────────────┘ │└────────────────────┼─────────────────────────┘ │ ┌────────────┴────────────┐ ▼ ▼ TRON Mainnet Base (EVM) (Energy + Swaps) (USDC settlement)