Powersun Tron Mcp

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

已驗證Streamable HTTP可網頁執行雲端與基礎設施金融商業與電商

概覽

AI 產生的概覽

PowerSun TRON 市場的遠端 MCP 伺服器,讓助理查詢、購買和出售 TRON 能量與頻寬、兌換 TRC-20 代幣並管理出售池

可以做什麼
查詢各時長級距的能量與頻寬價格、可用量和費用估算,並查看完整市場概況與訂單限制。為目標地址購買能量,廣播已簽署的 TRON 交易並自動委託能量,追蹤訂單、餘額和儲值資訊。取得 SunSwap 兌換報價(未簽署交易),並提交已簽署兌換且自動委託能量。將 TRON 地址註冊為出售池,設定自動出售,查看池統計、收益和委託紀錄,並提取 TRX。查看鏈上池狀態、檢查平台權限、觸發超級代表投票並查看自動操作歷史。透過簽署 TRON 挑戰註冊代理並取得 API 金鑰。
適用情境
當代理需要租用 TRON 能量以降低交易費用、在 SunSwap 上兌換 TRC-20 代幣,或運作自動出售能量的池時使用。公開市場工具無需帳戶即可查詢價格和估算費用。
執行需求
遠端 Streamable HTTP 端點,無需安裝。公開市場工具無需驗證。需驗證的工具需要 X-API-Key 標頭,透過註冊 TRON 地址並用錢包私鑰簽署挑戰取得。付款可使用 TRX 餘額、HTTP 402 按次付費或 Base 上的 x402 USDC。
安裝前請注意
相關工具會動用真實資金:購買能量、兌換和廣播會從 TRX 餘額扣款或需要鏈上付款。註冊和權限流程要求代理用 TRON 私鑰簽署挑戰和交易,註冊出售池會授予平台對該地址的 DelegateResource、UnDelegateResource 及選用的 VoteWitness 權限。提領會將 TRX 轉出鏈上。簽署前請核對每筆交易。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Powersun Tron Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.Hovsteder%2Fpowersun-tron-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "powersun-tron": {
      "type": "http",
      "url": "https://powersun.vip/mcp"
    }
  }
}

README

PowerSun.vip — TRON Energy & Bandwidth MCP Server + DEX Swap Aggregator

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)


About PowerSun.vip

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.

Platform Highlights

  • Only 10% commission — competitors charge 15–30%. PowerSun.vip offers the lowest fees on the market.
  • Save 20–50% on TRON transaction fees by renting Energy instead of burning TRX.
  • DEX Token Swaps — swap any TRC-20 token pair (TRX, USDT, USDC, USDD, SUN, BTT, WIN, JST, or any contract address) via SunSwap V2 Smart Router with automatic energy delegation.
  • Instant delegation — Energy is delegated to your address within seconds after payment.
  • Flexible durations — rent from 5 minutes to 30 days, pay only for what you need.
  • Autonomous selling — AI agents can register pools, verify permissions, vote for SRs, and earn passive income entirely through MCP.
  • Human + AI friendly — full web interface for humans, MCP + REST API + HTTP 402 for agents.
  • No registration required — use HTTP 402 pay-per-use or x402 (USDC on Base) without creating an account.

Why TRON Energy Matters

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.


MCP Server — Quick Start

Connect from Claude Desktop / Cursor / any MCP client

json
{  "mcpServers": {    "powersun": {      "url": "https://powersun.vip/mcp"    }  }}

That's it — no API keys, no npm install, no Docker. The server is hosted and always available.

With authentication (for balance, orders, selling & swaps)

json
{  "mcpServers": {    "powersun": {      "url": "https://powersun.vip/mcp",      "headers": {        "X-API-Key": "ps_your_api_key_here"      }    }  }}

MCP Tools (27 total)

Onboarding Tools — 4 tools (self-service registration via MCP)

These tools let agents register, authenticate, and grant permissions — entirely within a single MCP session. No REST API needed.

ToolDescription
registerStart registration — get a challenge to sign with your TRON wallet
verify_registrationSubmit wallet signature → get API key, session upgrades automatically
build_permission_transactionBuild an unsigned AccountPermissionUpdate tx to grant platform permissions
broadcast_signed_permission_txBroadcast the signed permission tx and verify on-chain

Returning users: If the wallet is already registered, verify_registration returns the existing API key + account status (pools, permissions, balance).

Market Tools — 4 tools (public, no auth required)

ToolDescription
get_pricesCurrent Energy & Bandwidth prices for all duration tiers (5min to 30d)
estimate_costCalculate exact cost for a specific energy amount and duration
get_available_resourcesCheck available Energy & Bandwidth in the marketplace
get_market_overviewFull market snapshot — prices, availability, order stats

Buyer Tools — 6 tools (auth recommended)

ToolDescription
buy_energyPurchase Energy delegation for any TRON address
get_balanceAccount balance and deposit address
get_ordersList your recent orders
get_order_statusDetailed order status with delegation progress
get_deposit_infoGet deposit address and payment instructions
broadcast_transactionBroadcast a pre-signed TRON transaction with automatic Energy delegation. Works with API key (balance), x402 USDC, or 402 pay-per-use — no registration required.

Swap Tools — 2 tools (auth recommended)

ToolDescription
get_swap_quoteGet a swap quote from SunSwap V2 Smart Router — returns expected output, minimum output with slippage, energy cost, and unsigned TX to sign. Supports TRX, USDT, USDC, USDD, SUN, BTT, WIN, JST, or any TRC-20 contract address.
execute_swapBroadcast a pre-signed swap transaction with automatic Energy delegation. Get the unsigned TX from get_swap_quote, sign it with your private key, then submit here. Works with API key, x402, or 402.

Swap flow: get_swap_quote → agent signs unsigned TX → execute_swap → tokens swapped with energy delegation included.

Seller Tools — 11 tools (auth required)

Pool Management
ToolDescription
register_poolRegister a TRON address as a selling pool (autonomous onboarding)
get_pool_statsPool performance and delegation statistics
get_earningsEarnings breakdown and history
get_auto_selling_configCurrent auto-selling configuration
configure_auto_sellingEnable/disable auto-selling with price settings
get_pool_delegationsActive delegations from your pool
withdraw_earningsWithdraw earned TRX to your wallet
On-Chain Operations
ToolDescription
get_onchain_statusLive blockchain state — balance, frozen TRX, energy/bandwidth, votes, claimable rewards
check_pool_permissionsVerify platform has required on-chain permissions (delegate, undelegate, vote)
trigger_voteVote for Super Representative to earn staking rewards
get_auto_action_historyView auto-action execution logs (stake, vote, claim)

Full Autonomous Onboarding

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:

Step 1: Register & Authenticate

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 session

Step 2: Grant Permissions

MCP: 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-chain

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.

Step 3: Register Pool

MCP: register_pool { paymentAddress: "TMyWallet..." }→ Pool created, auto-selling enabled

Step 4: Vote & Monitor

MCP: 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 logs

Token Swap (SunSwap DEX)

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.

Supported Tokens

TRX, USDT, USDC, USDD, SUN, BTT, WIN, JST — or any TRC-20 contract address.

Swap via MCP

MCP: 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 result

Swap via REST API

bash
curl -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..."  }'

Payment Methods

PowerSun.vip supports three payment flows — choose what's most convenient:

1. API Key + TRX Balance

Register a TRON wallet, deposit TRX, buy from balance. Best for repeat usage.

2. HTTP 402 Pay-per-use (TRX)

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.

3. x402 Protocol (USDC on Base)

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.


REST API

Full REST API available alongside MCP:

EndpointDescription
POST /api/v2/agent/registerStart wallet registration
POST /api/v2/agent/verifyVerify signature, get API key
POST /api/v2/agent/estimateEstimate cost
POST /api/v2/agent/buy-energyPurchase energy (API key, 402, or x402)
POST /api/v2/agent/swapGet swap quote from SunSwap DEX (returns unsigned TX)
POST /api/v2/agent/broadcastBroadcast signed transaction with auto Energy (API key, 402, or x402)
GET /api/v2/agent/balanceCheck balance
GET /api/v2/agent/order/{id}Order status
GET /api/v2/agent/payment-status/{id}402 payment status

Pricing

Energy Prices

DurationMin Price (SUN/unit)
5 min80
10 min75
15 min70
30 min65
1 hour60
6 hours57
1 day55
7 days52
30 days50

Bandwidth prices follow a 10x ratio (e.g. 800 SUN for 5 min, 500 SUN for 30 days).

CommissionOnly 10% — lowest on the market
Savings20–50% vs TRX burn

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.

Commission Comparison

PlatformCommission
PowerSun.vip10%
Competitor A15–20%
Competitor B20–30%

SDKs

PackageLanguageInstallTools
@powersun/mcp-clientTypeScriptnpm i @powersun/mcp-clientEnergy + Swap
langchain-powersunPythonpip install langchain-powersun12 LangChain tools
crewai-powersunPythonpip install crewai-powersun9 CrewAI tools
Hovsteder/tron-energy-actionGitHub Actionuses: Hovsteder/tron-energy-action@v1CI/CD energy rental

Supported Networks

NetworkAssetUsage
TRON mainnetTRXNative payment + resource delegation + token swaps
Base (EVM)USDCx402 payment via Coinbase facilitator

Use Cases

  • Wallet agents — Automatically rent Energy before sending USDT/TRX, reducing fees by 20–50%
  • Trading bots — Bulk Energy purchases for high-frequency TRON transactions
  • DEX swap agents — Swap any TRC-20 token pair on SunSwap DEX with automatic energy delegation and slippage protection
  • DApp backends — Provide free transactions to users by delegating Energy
  • Multi-chain agents — Pay with USDC on Base, receive Energy on TRON
  • Autonomous sellers — Register a pool via MCP, vote for SRs, earn staking + selling rewards with zero manual intervention

Discovery & Documentation


Architecture

┌─────────────────────────────────────────────┐│              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)

GitHub Topics

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


Links


License

MIT License. See LICENSE for details.

The PowerSun.vip platform is a hosted service available at powersun.vip.

來源:README.md,提交 0b12b00

工具

27

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

estimate_cost

Estimate 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必填resourceTypetargetAddressresourceAmountdurationMinutes

get_available_resources

Get Available Resources

Get total available Energy and Bandwidth across all active pools. Shows how much resource can be purchased right now.

輸入參數resourceTypedurationMinutes

get_market_overview

Market 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 Balance

Get your current TRX balance and deposit information. Requires API key authentication.

無需輸入參數。

buy_energy

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必填durationMinutes

broadcast_transaction

Broadcast 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 Orders

Get your order history with optional status filter. Returns recent orders sorted by creation time.

輸入參數limitstatus

get_order_status

Get Order Status

Get detailed status of a specific order including delegation progress.

輸入參數orderId必填

get_deposit_info

Get Deposit Info

Get the deposit address to top up your account balance with TRX.

無需輸入參數。

get_swap_quote

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必填slippageBps

execute_swap

Execute 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必填

get_pool_stats

Pool Statistics

Get comprehensive statistics for your energy/bandwidth pools: delegations, revenue, utilization, APY. Requires API key.

無需輸入參數。

get_earnings

Get Earnings

Get earnings breakdown by pool: total earned, pending payout, paid out. Optionally filter by date range.

輸入參數endDatestartDate

get_auto_selling_config

Auto-Selling Config

Get current auto-selling configuration for your pools. Shows which resources are being sold, duration constraints, and reserves.

無需輸入參數。

configure_auto_selling

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必填sellEnergymaxDurationminDurationallowRenewalssellBandwidthreservedEnergyreservedBandwidth

get_pool_delegations

Pool Delegations

Get active delegations from your pools. Shows who received energy/bandwidth and when delegations expire.

輸入參數poolAddress

withdraw_earnings

Withdraw 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_pool

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必填

get_onchain_status

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.

輸入參數poolAddress

check_pool_permissions

Check 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.

輸入參數poolAddress

trigger_vote

Vote 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.

輸入參數poolAddress

get_auto_action_history

Auto-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.

輸入參數limitactionTypepoolAddress

register

Register 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

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 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_tx

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必填

版本歷史

1
  1. v1.3.0最新Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Merx 整合