Purpose
TronSave MCP Server is the official MCP server from TronSave, with the goal of enabling AI agents to directly complete TRON energy and bandwidth leasing, purchasing, and account management. It wraps TronSave's capabilities into 53 typed tools for MCP-compatible clients to call.
Main capabilities
- Two payment paths: The market path provides public quotes, and orders can be managed via on-chain payment or wallet signing; the internal balance path (tronsave_internal_*) uses an API key to pay from a pre-funded TronSave balance, aimed at bots and backends. Each tool description explains when to use the corresponding tool on the other path.
- Agent-native design: initialize returns the authentication model, units, purchase flow, and security rules; each tool has an operation-oriented description, a strict inputSchema, an outputSchema, and MCP annotations (readOnlyHint, destructiveHint, idempotentHint).
- No out-of-band setup required: Agents log in via tool calls, and login is automatically bound to the MCP connection; static clients can use the Authorization: ApiKey request header. tronsave_get_session_status can tell the agent which operations are currently available.
- Actionable errors: Failures are returned as isError results containing {"error":{"code","message","retryable","hint"}}, and hint indicates the tool to call next.
- Safe writes: Write operations are not automatically retried to avoid duplicate orders; write timeouts are reported as "result unknown, please verify first"; successful writes do not become errors due to response schema drift.
- Keys never enter the model: API keys are redacted in tool outputs and never logged; signing always happens in the user's wallet.
- Resources and prompts: Provides the tronsave://guide/agent resource and the buy_resource / account_overview prompts.
Usage
- Remote connection: Any client that accepts a remote MCP URL can use https://mcp.tronsave.io/mcp。支持 OAuth applications (Claude, ChatGPT, Cursor, VS Code) can use https://mcp.tronsave.io/oauth/mcp,用户在 The TronSave page logs in with an API key or TronLink. When no request headers are present, the agent can still use all public tools and log in via tronsave_login.
- Run it yourself: requires Node.js ≥ 22 and Redis ≥ 6.2. HTTP endpoints include POST|DELETE /mcp and POST|DELETE /testnet/mcp; after configuring PUBLIC_BASE_URL, they also include /oauth/mcp, /oauth/testnet/mcp, and OAuth endpoints (/.well-known/oauth-authorization-server, /.well-known/oauth-protected-resource/*, /authorize, /token, /register, /revoke, /oauth/signin), as well as GET / (server information), GET /healthz, GET /readyz, GET /metrics (Prometheus), GET /quickstart, and the legacy GET /sse + POST /messages.
- Local stdio: npm ci && npm run start:stdio (or node dist/stdio.js; npm ci builds dist/ via prepare), providing the same 53 tools over stdio for a single local client, with no Redis required (REDIS_URL defaults to in-memory; logs go to stderr). The hosted endpoint requires no installation and is the recommended connection method; stdio is for self-hosting and testing.
- Streamable HTTP endpoints: each request is stateless; session continuity (transport token + login) is stored in Redis, so any number of replicas can serve the same client without sticky sessions, and restarts are transparent to clients. Only the legacy SSE endpoint requires sticky routing.
When to use it
Suitable for developers, bots, or backend services that need to let AI agents automate the acquisition of TRON energy/bandwidth, as well as for teams that want to connect TronSave capabilities to Claude, Cursor, VS Code, OpenAI Agents, or self-built runtimes..
Limitations and security considerations
- Never send private keys or mnemonic phrases to the server or the agent; all signing is done on the client side.
- The mcp-session-id of a logged-in session is a bearer credential until it expires or DELETE /mcp / tronsave_logout is called.
- Redis should run on a private network with authentication/TLS enabled, because it stores session credentials.
- Logs redact keys, signatures, and session IDs; tool request bodies are logged only at debug level, and never for tronsave_generate_api_key.
- The project uses the MIT license.
- Specific business information such as fees and pricing is not provided in the materials.