How to Use the Clearstory MCP in LlamaIndex
Turn Clearstory project data into a searchable knowledge base for your LlamaIndex RAG apps. Get answers grounded in reality.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Clearstory MCP to LlamaIndex
Create your Vinkius account to connect Clearstory 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.
Create a Queryable Project Index
Use the Clearstory tools to pull live data, and let LlamaIndex do the rest. Run `list_construction_projects` and `list_project_contracts` to fetch all your core project information. LlamaIndex will automatically index this content into a vector store. Now you can ask questions in natural language, like "What contracts are associated with the downtown tower project?" Your RAG application will query the index of actual project data to give you an answer, not just guess.
Your RAG App, Powered by this MCP Server
Stop digging through emails for change order details. Connect this MCP server and have your agent periodically call `list_change_order_requests` and `get_cor_details`. LlamaIndex will ingest and vectorize the results. This creates a living knowledge base of all your CORs. You can then build a query engine to ask things like "show me all CORs over $10k from last month" or "what was the reason for COR-1138?". Your agent finds the answer in the data it indexed.
Ground Answers in Financials
This is how you stop hallucinations about project costs. Use the `list_construction_rates` and `list_tm_tags` tools to feed real-time financial data into your LlamaIndex vector store. When you ask your agent "what's our standard labor rate for electricians?" or "find all T&M tags submitted by Jane Doe last week," it retrieves the answer directly from the indexed results of those tool calls. It's not making things up; it's reporting on the data you fed it.
Set up Clearstory 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 Clearstory 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 Clearstory tools.",
)
response = await agent.run("List recent Clearstory data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Clearstory. 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 Clearstory MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Clearstory MCP today
We host it, we monitor it, we maintain it. You just paste one token.