@dennisk2025/european-rest-countries-lookup
v1.0.0
Published
Returns detailed information about any European country, such as capital, population, languages, currencies, and region, using the public REST Countries API.
Readme
European Rest Countries Lookup MCP Server
Returns detailed information about any European country such as capital, population, languages, currencies, and region using the public REST Countries API.
Installation & Usage
Install globally or run instantly:
Via npm: npm install -g @dennisk2025/european-rest-countries-lookup european-rest-countries-lookup
Via npx: npx @dennisk2025/european-rest-countries-lookup
This will start the MCP server and listen for Model Context Protocol requests via stdio.
Adding to Claude Desktop
Add the following block to your claude_desktop_config.json file at one of these locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"european-rest-countries": {
"command": "npx",
"args": ["@dennisk2025/european-rest-countries-lookup"]
}
}
}Restart Claude Desktop for changes to take effect.
Available Tool(s)
get_european_country_info
Fetches general country information for a specified European country by name (e.g., "France", "Germany").
Parameters
country(string, required): The English name of a European country, such as "France", "Italy", or "Hungary".
Returns (JSON)
name: Official common country namecapital: Capital city (string)region: "Europe"subregion: Subregion (e.g., "Northern Europe")area: Country area (number, km²)population: Population (number)flag: SVG or PNG URL to the country's flagcurrencies: Array of currency objects:{ code, name, symbol }languages: Array of language names
Example Tool Call
{
"name": "get_european_country_info",
"arguments": {
"country": "Hungary"
}
}Example Tool Response
{
"name": "Hungary",
"capital": "Budapest",
"region": "Europe",
"subregion": "Central Europe",
"population": 9749763,
"area": 93028,
"flag": "https://restcountries.com/data/hun.svg",
"currencies": [
{ "code": "HUF", "name": "Hungarian forint", "symbol": "Ft" }
],
"languages": ["Hungarian"]
}Notes
- If you provide a country name outside of Europe or with a typo, a clear error will be returned.
- This MCP server uses the public https://restcountries.com API. No authentication or API key is required.
- For best results, use the English name of the country (as used at restcountries.com).
- Typical response time: under 2 seconds for most queries.
License
MIT
