@dennisk2025/country-info-lookup
v1.0.0
Published
Provides detailed information about any country, including population, capital, region, flag, and more, using real-time open data.
Readme
country-info-lookup
A Model Context Protocol (MCP) server that provides detailed, real-time information about any country using public open data sources.
Features
- Look up any country by name for comprehensive details: population, capital, region, official languages, currency, flag URL, and neighboring countries.
- List all globally recognized countries with their names, region, and flag.
Installation
You can use this server via npx (zero install):
npx @dennisk2025/country-info-lookupOr install locally with npm:
npm install @dennisk2025/country-info-lookupAdding to Claude Desktop
To use this MCP server with Claude Desktop, add the following configuration to your claude_desktop_config.json file.
{
"mcpServers": {
"countryinfo": {
"command": "npx",
"args": ["@dennisk2025/country-info-lookup"]
}
}
}Path:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Usage Examples
1. get_country_info
Fetch detailed information about a specific country.
Parameters:
country(string, required): Name of the country (e.g., "France", "Brazil", "United States")
Example call:
{
"name": "get_country_info",
"arguments": {
"country": "Norway"
}
}Example result:
{
"name": "Norway",
"region": "Europe",
"population": 5421241,
"capital": "Oslo",
"languages": ["Norwegian Bokmål", "Norwegian Nynorsk", "Sami"],
"currencies": ["Norwegian krone"],
"flagUrl": "https://flagcdn.com/no.svg",
"borders": ["Sweden", "Finland", "Russia"]
}2. list_all_countries
List all recognized countries with basic info.
Parameters: None
Example call:
{
"name": "list_all_countries",
"arguments": {}
}Example result:
[
{
"name": "Japan",
"region": "Asia",
"flagUrl": "https://flagcdn.com/jp.svg"
},
{
"name": "Brazil",
"region": "Americas",
"flagUrl": "https://flagcdn.com/br.svg"
}
// ...
]Available Tools
get_country_info
- Description: Fetches comprehensive information for a specific country, such as population, capital city, official languages, currency, flag URL, region, and bordering countries.
- Input Schema:
country(string, required): Name of the country (common or official).
list_all_countries
- Description: Returns a list of all recognized countries with basic info (name, region, flag).
- Input Schema: None (call with an empty object).
MCP server maintained by Dennis K.
