How to Use the Country Data Resolver MCP in LlamaIndex
Index accurate, localized country data directly into your LlamaIndex vector stores for reliable semantic search.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Country Data Resolver MCP to LlamaIndex
Create your Vinkius account to connect Country Data Resolver 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 Standardized Country Names in LlamaIndex
The `resolve_country` tool converts raw alpha-2 codes into structured country profiles that you can index for search. This prevents your RAG pipeline from missing relevant documents just because one used "DE" and another used "Germany". By feeding uniform alpha-3 and numeric codes into your index, your search queries become far more reliable. Your agent retrieves documents based on actual matching metadata rather than guessing.
Build Localization-Aware RAG Pipelines
The `resolve_country` tool provides localized names in four languages to help your LlamaIndex pipelines map data using this MCP Server. This ensures your search engine matches "Spain" and "España" to the same underlying entity. Your agent queries the vector store using the correct localized string retrieved from the server. This eliminates language barriers in your international knowledge bases.
Clean Ingestion Pipelines with this MCP Server
The `resolve_country` tool acts as an ingestion-time data normalizer for your document parsers. It intercepts raw metadata and replaces obscure two-letter codes with full, verified country profiles. This step keeps your index clean from day one. You save money on embedding tokens by storing clean, uniform metadata instead of messy raw inputs.
Set up Country Data Resolver 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 Country Data Resolver 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 Country Data Resolver tools.",
)
response = await agent.run("List recent Country Data Resolver data") Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by i18n-iso-countries. 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 Country Data Resolver MCP in LlamaIndex
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Country Data Resolver MCP today
We host it, we monitor it, we maintain it. You just paste one token.