How to Use the Aurorascan (Aurora Network L2 Block Explorer API) MCP in LlamaIndex
Index the Aurora L2 blockchain. Build knowledge-rich RAG applications with LlamaIndex that answer questions using real, verifiable on-chain data.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Aurorascan (Aurora Network L2 Block Explorer API) MCP to LlamaIndex
Create your Vinkius account to connect Aurorascan (Aurora Network L2 Block 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.
Index the Aurora Blockchain
Turn transient blockchain data into a persistent, searchable knowledge base. Your LlamaIndex agent can use tools like `get_tx_list` and `get_logs` to fetch on-chain activity, and the results are automatically indexed into a vector store. Now you can ask questions in plain English about past events without hitting the API again. Query your agent for 'all ERC-721 mints from last month' and it will search its indexed history of `get_token_nft_tx` results to give you a grounded answer.
Ground Answers in On-Chain Facts
Eliminate agent hallucinations by backing every answer with hard data from the Aurora network. When you ask about a specific smart contract, your agent uses `get_source_code` and `get_abi` to fetch and index the actual source code and interface. This is how you build a reliable RAG bot for blockchain analysis. Your agent's knowledge isn't just its training data; it's a constantly updated index of real-time information from this MCP Server. When it tells you how a function works, it's because it has read the code.
Analyze Historical Contract State
Create a time-series index of a smart contract's state. You can configure a LlamaIndex agent to periodically call `proxy_get_storage_at` for important storage slots and index the results with a timestamp. This builds a complete history of how the contract's state has evolved. With this indexed data, you can ask questions that are impossible to answer with a single query. For example: 'What was the contract's admin address before the upgrade in block 10,500,000?' Your agent can find the answer instantly by searching its own knowledge base.
Set up Aurorascan (Aurora Network L2 Block 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 Aurorascan (Aurora Network L2 Block 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 Aurorascan (Aurora Network L2 Block Explorer API) tools.",
)
response = await agent.run("List recent Aurorascan (Aurora Network L2 Block 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 Aurorascan. 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 Aurorascan (Aurora Network L2 Block 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 Aurorascan (Aurora Network L2 Block Explorer API) MCP today
We host it, we monitor it, we maintain it. You just paste one token.