MCP Server
The Merx MCP (Model Context Protocol) server lets AI agents trade TRON energy and bandwidth through natural language. Compatible with Claude Desktop, Cursor, and any MCP-compatible client.
What is MCP
Model Context Protocol is an open standard that allows AI assistants to interact with external tools and data sources. The Merx MCP server exposes exchange functionality as structured tools that AI agents can call directly.
Install
bash
npm install -g @merx/mcp-serverConfigure for Claude Desktop
Add the following to your Claude Desktop configuration file (claude_desktop_config.json):
claude_desktop_config.jsonjson
{
"mcpServers": {
"merx": {
"command": "merx-mcp",
"env": {
"MERX_API_KEY": "sk_live_your_key_here"
}
}
}
}Configure for Cursor
Add the following to your Cursor MCP settings (.cursor/mcp.json):
.cursor/mcp.jsonjson
{
"mcpServers": {
"merx": {
"command": "merx-mcp",
"env": {
"MERX_API_KEY": "sk_live_your_key_here"
}
}
}
}Available tools
| Tool | Description |
|---|---|
| get_prices | Fetch current energy and bandwidth prices from all providers |
| get_balance | Check your TRX and USDT balance |
| create_order | Place an energy or bandwidth order with amount, duration, and target |
| get_history | View recent orders and transaction history |
Example conversation
Once configured, you can interact with Merx through your AI assistant using natural language:
Conversation
User: What is the cheapest energy price right now?
Assistant: [calls get_prices tool]
The cheapest energy is currently 84 SUN per unit from CatFee
for 24-hour delegation. Netts is close at 86 SUN.
User: Buy 65,000 energy for 1 day, send to TRf8kJ...QmZ1
Assistant: [calls create_order tool]
Order created successfully.
Order ID: ord_7x92ka
Amount: 65,000 energy
Duration: 24 hours
Cost: 5.46 TRX (84 SUN/unit via CatFee)
Status: FILLED
The energy has been delegated to your address.