io.github.Hovsteder/powersun-tron-mcp

平台与服务

by hovsteder

面向 AI agents 的 TRON Energy 与 Bandwidth 交易市场,可通过 MCP、REST 和 HTTP 402 进行买卖。

什么是 io.github.Hovsteder/powersun-tron-mcp

面向 AI agents 的 TRON Energy 与 Bandwidth 交易市场,可通过 MCP、REST 和 HTTP 402 进行买卖。

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

<a href="https://glama.ai/mcp/servers/Hovsteder/powersun-tron-mcp"> <img width="380" height="200" src="https://glama.ai/mcp/servers/Hovsteder/powersun-tron-mcp/badge" alt="PowerSun MCP server" /> </a>

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

code
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

code
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

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

Step 4: Vote & Monitor

code
MCP: trigger_vote → Vote for highest-APY Super Representative
MCP: get_onchain_status → Balance, frozen TRX, energy, votes, rewards
MCP: get_earnings → Selling earnings breakdown
MCP: 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

code
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

ResourceURL
Platformpowersun.vip
Agent Landing Pagepowersun.vip/agents
MCP Endpointpowersun.vip/mcp
OpenAPI Specpowersun.vip/openapi.json
LLM Guide (short)powersun.vip/llms.txt
LLM Guide (full)powersun.vip/llms-full.txt
Agent Descriptorpowersun.vip/.well-known/agents.json
AI Plugin Manifestpowersun.vip/ai-plugin.json
Full API Docspowersun.vip/api-docs
Blogpowersun.vip/blog

Architecture

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

常见问题

io.github.Hovsteder/powersun-tron-mcp 是什么?

面向 AI agents 的 TRON Energy 与 Bandwidth 交易市场,可通过 MCP、REST 和 HTTP 402 进行买卖。

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描116.0k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描116.0k

MCP服务构建器

by alirezarezvani

Universal
热门

从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。

帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。

平台与服务
未扫描10.7k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
83.6k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.4k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
36.5k

评论