How to Use the Tronscan (TRON Blockchain Explorer API) MCP in LlamaIndex
Build knowledge bases with LlamaIndex and Tronscan (TRON Blockchain Explorer API).
Works with every AI agent you already use
…and any MCP-compatible client
Connect Tronscan (TRON Blockchain Explorer API) MCP to LlamaIndex
Create your Vinkius account to connect Tronscan (TRON Blockchain Explorer API) to LlamaIndex and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
LlamaIndex: Indexing Account Details
The `get_account_detail` tool pulls all the raw data for a specific account. With LlamaIndex, you index this output so that later queries can semantically search through historical details. Later on, if you query past session notes, the agent doesn't just find a record—it retrieves and grounds an answer using actual `get_account_detail` data from your indexed knowledge base.
MCP Server: Searchable Transaction History
You can use `list_transactions` to gather a massive list of activity. LlamaIndex turns that raw output into an indexable document set. This means you can query across months of transaction data without running multiple API calls. It's ideal for historical research. Instead of asking the agent to run a filter, you ask a natural language question about the transactions, and the index answers it using the actual `list_transactions` entries.
Retrieving Contract Insights with LlamaIndex
The `get_contract_detail` tool provides static contract information. By indexing this output along with event data from `get_contract_events`, you build a searchable manual on the contract's functionality. This is huge for RAG applications. You combine documentation (text) with live API data, allowing users to ask, 'What was the purpose of the XYZ function?' and get an answer grounded in both text and the raw `get_contract_events` payload.
Set up Tronscan (TRON Blockchain Explorer API) MCP in LlamaIndex
Prerequisites
- Python 3.10+ installed
-
llama-index-tools-mcppackage - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
pip install llama-index-tools-mcp llama-index-llms-openai. The MCP tools package providesBasicMCPClientandMcpToolSpec. - 2
Connect with BasicMCPClient
Point
BasicMCPClientto your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. Supports SSE and Streamable HTTP transports. - 3
Convert to LlamaIndex tools
Call
mcp_tool_spec.to_tool_list_async()to convert all Tronscan (TRON Blockchain Explorer API) MCP tools into nativeFunctionToolobjects that any LlamaIndex agent can use. - 4
Run with any LLM
Create a
FunctionAgentwith the tools and your preferred LLM. SwapOpenAIforAnthropic,Gemini, or any LlamaIndex-supported provider.
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
# Connect to the MCP
mcp_client = BasicMCPClient(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
)
mcp_tool_spec = McpToolSpec(client=mcp_client)
# Convert MCP tools to LlamaIndex tools
tools = await mcp_tool_spec.to_tool_list_async()
# Create and run the agent
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-4o"),
system_prompt="You have access to Tronscan (TRON Blockchain Explorer API) tools.",
)
response = await agent.run("List recent Tronscan (TRON Blockchain Explorer API) data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Tronscan. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Tronscan (TRON Blockchain Explorer API) MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Tronscan (TRON Blockchain Explorer API) MCP today
We host it, we monitor it, we maintain it. You just paste one token.