analyze_account
Comprehensive account overview: balance, resources, staking, voting, permissions, and delegations in a single call
addressrequired
io.github.fbsobreiraPublished by GitHub account fbsobreirav0.4.2Updated Oct 29, 2026
TRON blockchain: accounts, TRC20 tokens, staking, contracts, resources and transaction builders
GoTRON MCP lets an assistant read TRON blockchain data — accounts, TRC20 tokens, blocks, contracts, staking and governance — and build unsigned transactions.
Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.fbsobreira%2Fgotron-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Add this to your client's mcpServers config.
{
"mcpServers": {
"gotron": {
"type": "http",
"url": "https://mcp.gotron.sh/mcp"
}
}
}[Go Reference] [Go Report Card] [CI] [Coverage] [License]
MCP server for TRON blockchain — let AI agents query balances, tokens, blocks, and build transactions.
Built on the GoTRON SDK and the Model Context Protocol.
The image starts the HTTP transport. For stdio, append --transport stdio:
Published to the MCP Registry as io.github.fbsobreira/gotron-mcp on each stable release tag (vX.Y.Z), from v0.4.1, with the Docker image (stdio) and the hosted endpoint.
Connect directly to https://mcp.gotron.sh/mcp — no installation needed.
The gotron plugin bundles the hosted server with skills for USDT transfers and energy estimates. The gotron-local plugin runs the gotron-mcp binary locally and supports keystore signing.
Public marketplace installation is not available yet. To connect today, use the Claude Code MCP setup below. Plugin source and configuration details are in the directories linked above.
Choose one of the following setup options.
Project-wide local server:
User-wide local server with keystore signing:
If a project-scoped gotron entry already exists, remove it first with claude mcp remove gotron --scope project. For a local-scoped entry, use claude mcp remove gotron --scope local. Check the selected entry with claude mcp get gotron: local and project entries take precedence over user entries, and their settings are not combined. See Claude Code's scope precedence.
Save an environment-variable reference rather than the passphrase itself. Keep the single quotes so your shell does not expand the reference while registering the server:
Then launch Claude from Bash or Zsh with a hidden passphrase prompt:
The subshell limits the exported value to that Claude session. The prompt keeps the passphrase out of shell history and command-line arguments; it is still available in the environment of Claude and its MCP server. Repeat the prompt when starting a new signing session. Without a supplied passphrase, the reference expands to an empty value and wallet/signing tools stay disabled.
If you previously registered a literal passphrase with -e, it was stored in plain text in ~/.claude.json and may also remain in shell history. Remove the old user-scoped entry with claude mcp remove gotron --scope user, register it again using the reference above, and remove the old history entry. See Claude Code's environment-variable expansion documentation.
User-wide local server without keystore configuration:
Hosted server (zero install):
create_wallet(name, key_type?) accepts ecdsa (default), ml_dsa_44 or fn_dsa_512; list_wallets and signing results report key_type. sign_transaction, sign_and_broadcast, sign_and_confirm and request_limit_override accept PQ wallets with the same policy limits, Telegram approval and elicitation as ECDSA wallets.
grpc.nile.trongrid.io:50051); governance switches each scheme on or off and mainnet reports none. Use get_pq_capabilities to check the node and this build.permission_id) on the owner account. A fresh PQ address must receive TRX first.GOTRON_MCP_KEYSTORE_PASSPHRASE under <keystore-dir>/pq-keys/<name>/ (wallet-cli compatible, same layout as tronctl). Point --keystore-dir at a tronctl config root (e.g. ~/.tronctl) to reuse its keys; the passphrase must match their password. Wallet names are unique across ECDSA and PQ wallets; list_wallets flags duplicate_name: true and such a wallet cannot sign until one copy is renamed.pq_auth_sig (txid unchanged); a transaction carries at most 5 signatures, ECDSA and PQ combined. PQ transactions are about 10-22x larger than ECDSA ones (roughly 10x for FN-DSA-512, 22x for ML-DSA-44), so they use more bandwidth.-tags falcon, CGO and liboqs installed via pkg-config: CGO_ENABLED=1 go build -tags falcon ./cmd/gotron-mcp. Without it, FN-DSA create/sign returns an error pointing to the gotron-mcp-pq build; release binaries for it are planned (GOT-97).Explicit --node overrides network presets.
Contract reads require a node with vm.supportConstant = true. If a node reports that constant execution is unsupported, reads try --fallback-node when configured. TRC20 reads also use the fallback for empty results, since token reads require return data. General contract simulations can succeed without return data. The fallback must serve the same network. This fallback applies per call, independently of block health checks; contract reverts are returned as errors.
For TRX transfers to unactivated recipients, analyze_transfer_cost reads the account creation fees and bandwidth multiplier from chain parameters. Only staked or delegated bandwidth can cover account creation; free bandwidth cannot. If recipient activation or the required fee parameters cannot be determined, the tool returns an error instead of quoting zero.
Built and maintained by a CryptoChain community developer.
If you find this project useful, consider supporting TRON governance by voting for the CryptoChain Super Representative:
TKSXDA8HfE9E1y39RczVQ1ZascUEtaSToFLGPL-3.0 — same as the GoTRON SDK.
Source: README.md at commit 93f93d8
Comprehensive account overview: balance, resources, staking, voting, permissions, and delegations in a single call
addressrequiredEstimate the cost of a TRX or TRC20 transfer: energy, bandwidth, and TRX burn options
torequiredfromrequiredamountrequiredcontract_addressDecode ABI-encoded output hex from a contract call. Handles return values, revert reasons (Error(string)), and panic codes (Panic(uint256)).
datarequiredmethodrequiredcontract_addressrequiredDelegate energy or bandwidth to another address (Stake 2.0). Returns unsigned transaction hex for signing.
torequiredfromrequiredmemoamountrequiredresourcerequiredlock_periodpermission_idEstimate energy cost for a smart contract call. Requires a full node with vm.supportConstant=true and vm.estimateEnergy=true; falls back to secondary node if primary does not support it.
fromrequiredmethodrequiredparamsrequiredcontract_addressrequiredEstimate energy cost for a TRC20 transfer without creating a transaction. Dry-runs the transfer to check energy requirements.
torequiredfromrequiredamountrequiredcontract_addressrequiredStake TRX for energy or bandwidth (Stake 2.0). Returns unsigned transaction hex for signing.
fromrequiredmemoamountrequiredresourcerequiredpermission_idGet TRON account balance and details including TRX balance, bandwidth, energy, frozen resources, and account type
addressrequiredGet the permission structure of a TRON account including owner, active, and witness permissions with multi-sig keys and thresholds
addressrequiredGet energy and bandwidth usage and limits for a TRON account
addressrequiredGet current and historical bandwidth prices on the TRON network
Takes no parameters.
Get a TRON block by number or latest. Use include_transactions to get transaction details with decoded contract data (sender, receiver, amounts) and pagination.
limitoffsetblock_numbertransaction_typeinclude_transactionsGet TRON network node info and current energy/bandwidth prices
Takes no parameters.
Get the ABI of a smart contract on TRON. Automatically resolves proxy contracts (ERC-1967). Note: many TRON contracts are deployed without on-chain ABI — if empty, check TronScan for verified source code.
contract_addressrequiredGet decoded events emitted by a smart contract via TronGrid REST API. Returns a compact summary per event. Use a small limit and paginate with fingerprint to control response size
limitevent_namefingerprintmax_timestampmin_timestamponly_confirmedcontract_addressrequiredGet the maximum amount of energy or bandwidth an account can still delegate
addressrequiredresourcerequiredGet resources delegated to and from an account (Stake 2.0 delegation info)
addressrequiredGet current and historical energy prices on the TRON network
Takes no parameters.
Get current MCP server connection info: network name, node address, and latest block
Takes no parameters.
Get pending transactions for a specific address from the mempool
addressrequiredList pending transaction IDs and pool size from the mempool
limitoffsetReport which TIP-899 post-quantum signature schemes the connected node enables and this build can sign (FN-DSA-512 needs the gotron-mcp-pq build). TIP-899 is a draft live only on Nile. can_sign reflects the node and this build; signing also needs local mode with a keystore.
Takes no parameters.
Get full details of a governance proposal by ID, including the complete list of approval addresses.
proposal_idrequiredGet the current USD price of TRX or a TRC20 token. Uses CoinGecko with caching.
tokenrequiredGet transaction details by transaction ID
transaction_idrequiredGet transaction history for a TRON address via TronGrid REST API. Returns a compact summary per transaction. Use a small limit and paginate with fingerprint to control response size
limitaddressrequiredonly_toonly_fromfingerprintmax_timestampmin_timestamponly_confirmedQuery how many tokens a spender is approved to transfer on behalf of the owner. Flags unlimited approvals as high risk.
ownerrequiredspenderrequiredcontract_addressrequiredGet TRC20 token balance for an account
addressrequiredcontract_addressrequiredGet TRC20 token metadata (name, symbol, decimals, total supply)
contract_addressrequiredGet TRC20 token transfer history for a TRON address via TronGrid REST API. Returns a compact summary per transfer with token info. Use a small limit and paginate with fingerprint to control response size
limitaddressrequiredonly_toonly_fromfingerprintmax_timestampmin_timestamponly_confirmedCheck if a specific transaction is still in the pending pool (mempool)
transaction_idrequiredGet a human-readable summary of a smart contract's methods with signatures, inputs, outputs, and mutability. Auto-resolves proxy contracts.
contract_addressrequiredList governance proposals on the TRON network with pagination support. Returns a compact summary per proposal (use get_proposal for full details including approval addresses). Newest first by default.
limitorderoffsetList super representatives (witnesses) on the TRON network with pagination support.
limitoffsetBuild unsigned transaction to revoke a TRC20 token approval (sets allowance to 0)
ownerrequiredspenderrequiredfee_limitpermission_idcontract_addressrequiredCreate an unsigned TRC20 token transfer transaction. Returns transaction hex for signing.
torequiredfromrequiredamountrequiredfee_limitpermission_idcontract_addressrequiredCreate an unsigned TRX transfer transaction. Returns transaction hex for signing.
torequiredfromrequiredmemoamountrequiredpermission_idCall a read-only (view/pure) smart contract method. No transaction created, no fees. Returns decoded result. Provide either method+params OR data (pre-packed calldata).
datafrommethodparamstoken_idcall_valuetoken_valuecontract_addressrequiredCall a smart contract method. Returns unsigned transaction hex for signing. Provide either method+params OR data (pre-packed calldata).
datafromrequiredmethodparamsfee_limitcall_valuepermission_idcontract_addressrequiredReclaim previously delegated energy or bandwidth (Stake 2.0). Returns unsigned transaction hex for signing.
torequiredfromrequiredmemoamountrequiredresourcerequiredpermission_idUnstake TRX (Stake 2.0). Returns unsigned transaction hex for signing. Note: unstaked TRX has a 14-day withdrawal period.
fromrequiredmemoamountrequiredresourcerequiredpermission_idValidate a TRON address and convert supported inputs to TRON base58/hex. Accepts base58 (T...), TRON hex (41...), or Ethereum/EVM format (0x...).
addressrequiredVote for super representatives. Returns unsigned transaction hex for signing. Requires staked TRX (1 TRX staked = 1 vote).
fromrequiredmemovotesrequiredpermission_idWithdraw TRX that has completed the 14-day unstaking period (Stake 2.0). Returns unsigned transaction hex for signing.
fromrequiredmemopermission_id100% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
go install github.com/fbsobreira/gotron-mcp/cmd/gotron-mcp@latestbrew install fbsobreira/tap/gotron-mcpcurl -fsSL gotron.sh/install-mcp | shdocker run -p 8080:8080 ghcr.io/fbsobreira/gotron-mcpdocker run -i --rm ghcr.io/fbsobreira/gotron-mcp --transport stdio{ "mcpServers": { "gotron": { "command": "gotron-mcp", "args": ["--network", "mainnet"], "env": { "GOTRON_NODE_API_KEY": "your-trongrid-api-key" } } }}{ "mcpServers": { "gotron": { "command": "gotron-mcp", "args": ["--network", "mainnet"], "env": { "GOTRON_NODE_API_KEY": "your-trongrid-api-key", "GOTRON_MCP_KEYSTORE_PASSPHRASE": "your-keystore-passphrase" } } }}{ "mcpServers": { "gotron": { "url": "https://mcp.gotron.sh/mcp" } }}claude mcp add gotron --scope project -- gotron-mcp --network mainnetclaude mcp add gotron --scope user -e 'GOTRON_MCP_KEYSTORE_PASSPHRASE=${GOTRON_MCP_KEYSTORE_PASSPHRASE:-}' -- gotron-mcp --network mainnet( set +x printf 'Keystore passphrase: ' IFS= read -r -s GOTRON_MCP_KEYSTORE_PASSPHRASE || exit 1 printf '\n' export GOTRON_MCP_KEYSTORE_PASSPHRASE claude)claude mcp add gotron --scope user -- gotron-mcp --network mainnetclaude mcp add gotron --scope user --transport http https://mcp.gotron.sh/mcp# Buildmake build
# Format codemake fmt
# Run testsmake test
# Lintmake lint
# Run HTTP mode locallymake run-http