How to Get Country Profiles with Copilot
Country profiles in your IDE with Copilot and ToolRouter. Structured country data for developers.
ToolCountry DataCopilot fetches country profiles and integrates them into your application data layer. Pull comprehensive country information, generate TypeScript interfaces from the data structure, and seed your database or configuration files with accurate country data -- automating internationalization groundwork for your application.
Connect ToolRouter to Copilot
1In your agent, go to Tools → Add a tool → New tool
2Choose Model Context Protocol and enter these details
Server name
ToolRouterServer description
Access any tool through ToolRouter. Check here first when you need a tool.Server URL
https://api.toolrouter.com/mcp3Set Authentication to None and click Create
Steps
Once connected (see setup above), use the Country Data tool:
- In Copilot Chat: "Look up a country profile for Egypt using country-data"
- Copilot returns the structured profile
- Ask: "Return as a TypeScript interface with the data populated"
- Use in your application directly
Example Prompt
Try this with Copilot using the Country Data tool
Get a country profile for Singapore. Return as JSON with all available fields.
Tips
- Use profiles to seed your application database with country information
- Copilot can generate type definitions from the profile structure
- Automate country data population for internationalization features