Connect your AI agent (MCP)
Claude, ChatGPT, Claude Code, Cursor and other AI agents can check prices and buy TRON energy and bandwidth for you, within the permissions and daily limit you set.
How it works
- 1
Add TronRental to your agent
One click for Claude, a server URL for ChatGPT, a command for Claude Code and Codex, a config for Cursor: all below.
- 2
Sign in and choose permissions
Sign in with TronRental in the browser, tick what the agent may do and set a daily spending limit. No API key to copy.
- 3
Ask in plain words
“Buy energy for a USDT transfer to this address.” The agent shows the price before buying and never spends more than your daily limit.
Stdio clients and the command line
For agents that cannot connect to a remote MCP server, and for scripts.
If your client supports remote MCP, connect it above: you sign in with TronRental and there is no key to copy. The npm bridge is for clients that speak only stdio. It forwards every call to the same remote server and shows the same tools.
Add the bridge to your client's MCP config, with an API key from your dashboard:
{
"mcpServers": {
"tronrental": {
"command": "npx",
"args": [
"-y",
"@tronrental-com/[email protected]"
],
"env": {
"TRONRENTAL_API_KEY": "your_key"
}
}
}
}The key's scopes decide which tools the agent sees. The version is pinned: a new release reaches your agent only when you change it.
Command line
npm install -g @tronrental-com/cli tronrental login
tronrental login signs in through the browser. On servers and in CI, set TRONRENTAL_API_KEY instead.
Sign-up without a key
Without a key the bridge offers only sign-up: the agent registers with the user's real email, asks for the 6-digit code from it and gets an API key once top-ups total 100 TRX.
Capped purchases
The agent gets a quote first and passes its total as max_price_trx, with an idempotency key — a retry with the same key never buys twice.
Upgrading from 1.x
2.0 serves the server's tool catalog instead of its own 12 tools: get_prices is now get_energy_prices, calculate_savings is now analyze_savings or estimate_energy.
Building your own integration?
REST API, API keys, code examples and pricing are on the developer page.