LlamaIndex Integration
Connect Thordata MCP Server to LlamaIndex agents for real-time web search, scraping, structured data retrieval, and RAG workflows.
Integrate Thordata MCP Server with LlamaIndex to give AI agents access to real-time SERP data and structured search results.
Connect LlamaIndex agents to the ThorData MCP server to add real-time web search, scraping, and structured data retrieval to your RAG and indexing pipelines.
Hosted MCP
Get your API token
Go to SERP API-API Token to create an API Token;
Copy your API Token (format as:
sk_7qBRe***************************)
Install the LlamaIndex MCP toolkit
pip install llama-index-tools-mcpConfigure your MCP server
import asyncio
from llama_index.tools.mcp import BasicMCPClient
async def main():
http_client = BasicMCPClient("https://mcp.thordata.com/API_TOKEN/mcp")
# List tools
tools = await http_client.list_tools()
print("Tools:", tools)
# Call a tool
result = await http_client.call_tool("scrape_as_markdown", {"url":"https://docs.llamaindex.ai/en/stable/examples/tools/mcp/"})
print("Result:", result)
asyncio.run(main())
Test to see if it works.
Run your LlamaIndex script using the manual tool.
You should be able to see the requested URL in Markdown.
Monitor usage
View your API usage in the ThorData SERP API usage logs.
Last updated