https://mcp.tronrental.com/mcp. Any MCP SDK or LLM platform that supports remote MCP servers can use it.
- Stateless: every request is a plain
POST; there are no sessions to keep. - Tools follow the credential:
tools/listreturns only the tools the key or connection may call. - Same rules as REST: each tool is a REST API route behind the scenes, with the same prices, checks and error codes.
Choose how to authenticate
API key — your own server
For your backend, scripts and agents that act on your account. Send the key as
Authorization: Bearer <key> or X-API-Key: <key>. No daily cap, max_price_trx optional, withdrawals possible with the withdraw scope.OAuth — your users' accounts
For apps where each user connects their own TronRental account. The user approves the consent screen; you get a token with the permissions and the daily cap they chose. See OAuth for MCP clients.
Pick an example
TypeScript
MCP client over Streamable HTTP with the official TypeScript SDK.
Python
MCP client over Streamable HTTP with the official Python SDK.
OpenAI Agents SDK
Hosted MCP tool and a local MCP client for OpenAI agents.
Claude API
The MCP connector in a Messages API request.
MCP or REST?
Use MCP when a language model decides which call to make: the model reads the tool list and their descriptions and picks the tool. Use the REST API when your code already knows what to do — for example, “buy 65,000 energy before each payout”. It is one HTTP request with no MCP layer, and the webhooks tell you when an order is done. Both use the same API key, so you can mix them.Before you go live
- Quote, then buy. Pass the quote’s
total_trxasmax_price_trx. See Spending and errors. - Retry safely. Generate an
idempotency_key(a UUID) per action and reuse it on retries. - Show the cost. Tell the user what a call costs before calling a tool that spends — every such tool is marked
destructiveHint: true. - Check the result. Orders are delivered on-chain within seconds; read
get_orderor wait for theorder.updatedwebhook.