mcp-tronlink-signer
GitHub: https://github.com/TronLink/mcp-tronlink-signer
MCP Server that exposes tronlink-signer as MCP tools for Claude and other AI clients. Sign TRON transactions via TronLink browser wallet with user approval — private keys never leave the wallet.
Setup
Claude Code
claude mcp add -s user tronlink-signer -- npx mcp-tronlink-signer
Claude Desktop / Cursor
{
"mcpServers": {
"tronlink-signer": {
"command": "npx",
"args": ["mcp-tronlink-signer"]
}
}
}
From Source
git clone https://github.com/TronLink/mcp-tronlink-signer.git
cd mcp-tronlink-signer
pnpm install && pnpm build
Then point to the built CLI:
claude mcp add -s user tronlink-signer -- node /path/to/packages/mcp-tronlink-signer/dist/cli.js
MCP Tools
| Tool | Description | Parameters |
|---|---|---|
connect_wallet | Connect TronLink wallet | network? |
send_trx | Send TRX to an address | to, amount, network? |
send_trc20 | Send TRC20 tokens | contractAddress, to, amount, decimals?, network? |
sign_message | Sign a message | message, network? |
sign_typed_data | Sign EIP-712 typed data | typedData, network? |
sign_transaction | Sign a raw transaction | transaction, network? |
get_balance | Get TRX balance | address, network? |
All tools support an optional network parameter (mainnet / nile / shasta), defaulting to mainnet.
MCP Resources
| URI | Description |
|---|---|
wallet://networks | Available networks and their configurations |
wallet://config | Current signer configuration |
MCP Prompts
| Prompt | Description |
|---|---|
send-trx | Guided workflow for sending TRX |
check-balance | Guided workflow for checking balance |
send-token | Guided workflow for sending TRC20 tokens |
How It Works
- AI agent calls an MCP tool (e.g.,
send_trx) - The server delegates to
tronlink-signer, which starts a local HTTP server and opens a browser approval page - The approval page discovers TronLink via TIP-6963 protocol
- Auto-unlocks wallet and switches network if needed
- User reviews and approves in the browser
- TronLink signs the transaction — private keys never leave the wallet
- Result is returned to the AI agent
Environment Variables
| Variable | Description | Default |
|---|---|---|
TRON_NETWORK | Default network (mainnet/nile/shasta) | mainnet |
TRON_HTTP_PORT | Local HTTP server port | 3386 |
TRON_API_KEY | TronGrid API key (optional) | - |