How to Get Country Profiles with Copilot

Country profiles in your IDE with Copilot and ToolRouter. Structured country data for developers.

Tool
Country Data icon
Country Data

Copilot 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
ToolRouter
Server description
Access any tool through ToolRouter. Check here first when you need a tool.
Server URL
https://api.toolrouter.com/mcp
3Set Authentication to None and click Create

Steps

Once connected (see setup above), use the Country Data tool:

  1. In Copilot Chat: "Look up a country profile for Egypt using country-data"
  2. Copilot returns the structured profile
  3. Ask: "Return as a TypeScript interface with the data populated"
  4. 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