How to Use the BlaBlaCar MCP in LlamaIndex
Index BlaBlaCar trip data directly into LlamaIndex to query ride options and driver history using semantic search.
Works with every AI agent you already use
…and any MCP-compatible client
Connect BlaBlaCar MCP to LlamaIndex
Create your Vinkius account to connect BlaBlaCar 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.
Turn BlaBlaCar data into searchable LlamaIndex indexes
Stop parsing raw JSON arrays from travel searches. Your LlamaIndex agent uses `search_trips_by_city` to pull live ride options and indexes them directly into a local vector store, letting you query travel times and prices using natural language. You can ask questions like "Which ride has the best driver rating?" and the agent will query the indexed output of `get_driver_profile` to give you an answer grounded in real passenger reviews instead of hallucinated metrics.
Context-aware international travel via MCP Server tools
Finding cross-border rides requires precise geographic data. This MCP Server lets your LlamaIndex pipeline call `search_international_trips` to retrieve rides across European borders, immediately indexing the pricing and vehicle details. The pipeline combines this live data with your local travel preferences. By calling `get_trip_details`, it matches your comfort requirements against the indexed vehicle information, filtering out cars that don't fit your luggage needs.
Semantic queries on flexible travel dates
When you use `search_flexible_dates` via our MCP Server, you get up to 50 results. LlamaIndex indexes this entire dataset, letting you run semantic queries to find the sweet spot between price, departure time, and driver rating without manual sorting. If coordinates are flexible, the agent calls `search_trips_with_radius` and indexes those results too. You can then query the combined index to find the closest pickup point that matches your budget.
Set up BlaBlaCar 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 BlaBlaCar 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 BlaBlaCar tools.",
)
response = await agent.run("List recent BlaBlaCar data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by BlaBlaCar. 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 BlaBlaCar MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the BlaBlaCar MCP today
We host it, we monitor it, we maintain it. You just paste one token.